Renesas FLASH Development Toolkit 3.07 Manual de usuario Pagina 69

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 146
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 68
55
4.6 Wait For Script – Example Script File
What follows is an example of how a script file for FDT may look. This highlights some of the available
commands and gives an idea of how they might be used:
# EXAMPLE SCRIPT FILE
# open this workspace and associated project
# (for which the flash project wizard must have completed successfully)
workspace C:\Workspaces\2215usbdirect\2215UsbDirect.AWS
# Ensure that comms is closed (in case previous attempt failed and didn’t
disconnect)
disconnect
# connect over the USB to the device with this Product ID + Bus ID
connect USB|0x000D|0
# do an initial blank check
blankcheck
# download the file "C:\2215uAuto.mot" and verify that programming was OK
# (script processing will stop if this verify fails)
download C:\2215uAuto.mot|user|verify
# upload data from address 0 to address 0x1000 and save to file “upload.mot”
upload c:\UPLOADS\upload.mot|0x0|0x1000
# erase all blocks
erase device
# do a blank check (and stop if the user area is dirty)
blankcheck stoponwritten
# rebuild the user area image
RebuildImage user
# download the user image
download image|user
# get the checksum for the user area of the device
checksum device
# pause for 100 milliseconds
pause 100
# disconnect from the device
disconnect
Vista de pagina 68
1 2 ... 64 65 66 67 68 69 70 71 72 73 74 ... 145 146

Comentarios a estos manuales

Sin comentarios