bdi
GDB
for BDI3000 (QorIQ P3/P4/P5)
User Manual
31
© Copyright 1997-2012 by ABATRON AG Switzerland
V 1.03
ERASE addr [increment count] [mode [wait]]
The flash memory may be individually erased or unlocked via the Telnet
interface. In order to make erasing of multiple flash sectors easier, you can
enter an erase list. All entries in the erase list will be processed if you enter
ERASE at the Telnet prompt without any parameter. This list is also used
if you enter UNLOCK at the Telnet without any parameters. With the "in-
crement" and "count" option you can erase multiple equal sized sectors
with one entry in the erase list.
address
Address of the flash sector, block or chip to erase
increment
If present, the address offset to the next flash sector
count
If present, the number of equal sized sectors to erase
mode
BLOCK, CHIP, UNLOCK
Without this optional parameter, the BDI executes a sec-
tor erase. If supported by the chip, you can also specify
a block or chip erase. If UNLOCK is defined, this entry is
also part of the unlock list. This unlock list is processed
if the Telnet UNLOCK command is entered without any
parameters.
Note:
Chip erase does not work for large chips because
the BDI time-outs after 3 minutes. Use block erase.
wait
The wait time in ms is only used for the unlock mode. Af-
ter starting the flash unlock, the BDI waits until it pro-
cesses the next entry.
Example:
ERASE 0xff040000 ;erase sector 4 of flash
ERASE 0xff060000 ;erase sector 6 of flash
ERASE 0xff000000 CHIP ;erase whole chip(s)
ERASE 0xff010000 UNLOCK 100 ;unlock, wait 100ms
ERASE 0xff000000 0x10000 7 ; erase 7 sectors
Example for the ADS8260 flash memory:
[FLASH]
CHIPTYPE I28BX8 ;Flash type
CHIPSIZE 0x200000 ;The size of one flash chip in bytes (e.g. AM29F010 = 0x20000)
BUSWIDTH 32 ;The width of the flash memory bus in bits (8 | 16 | 32 | 64)
WORKSPACE 0x04700000 ;workspace in dual port RAM
FILE E:\gnu\demo\ads8260\bootrom.hex ;The file to program
ERASE 0xFF900000 ;erase sector 4 of flash SIMM (LH28F016SCT)
ERASE 0xFF940000 ;erase sector 5 of flash SIMM
ERASE 0xFF980000 ;erase sector 6 of flash SIMM
ERASE 0xFF9c0000 ;erase sector 7 of flash SIMM
the above erase list maybe replaces with:
ERASE 0xFF900000 0x40000 4 ; erase sector 4 to 7 of flash SIMM