EasyManua.ls Logo

Abatron BDI1000 - 5.3 Download to Flash Memory

Abatron BDI1000
38 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
bdiRDI
JTAG interface for RDI Debuggers, BDI1000 User Manual 29
© Copyright 1999-2003 by ABATRON AG V 1.10
5.3 Download to Flash Memory
The BDI supports download and debugging of code that runs out of flash memory. To automate the
process of downloading to flash memory, the BDI looks for two command files in the working direc-
tory.
PRELOAD.CMD This command file is executed just before download begins
POSTLOAD.CMD This command file is executed after download is terminated.
Following is an example used to download into the flash memory of the PID7T board (socket U12
with a AMD flash Am29F010).
PRELOAD.CMD:
;Reset target
target.reset
;
;Define used flash memory: AM29F010
flash.setup type=am29f size=0x20000 bus=8 workspace=0x00001000
;
;Erase sector 0 to 7 of flash memory bank
flash.erase addr=0x04000000
flash.erase addr=0x04004000
flash.erase addr=0x04004000
flash.erase addr=0x04008000
flash.erase addr=0x0400C000
flash.erase addr=0x04010000
flash.erase addr=0x04014000
flash.erase addr=0x04018000
flash.erase addr=0x0401C000
;
;Enable loading into flash
flash.load addr=0x04000000 size=0x200000
POSTLOAD.CMD:
flash.idle
Note:
Some Intel flash chips (e.g. 28F800C3, 28F160C3, 28F320C3) power-up with all blocks in locked
state. In order to erase/program those flash chips, use the init list to unlock the appropriate blocks.
WM16 0xFFF00000 0x0060 unlock block 0
WM16 0xFFF00000 0x00D0
WM16 0xFFF10000 0x0060 unlock block 1
WM16 0xFFF10000 0x00D0
....
WM16 0xFFF00000 0xFFFF select read mode

Related product manuals