bdi
GDB
for GNU Debugger, BDI2000 (ARM)
User Manual
33
© Copyright 1997-2005 by ABATRON AG Switzerland
V 1.17
ERASE addr [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.
address
Address of the flash sector, block or chip 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, the entry is
also part of the unlock list. This unlock list is processed
if the Telnet UNLOCK command is entered without any
parameters.
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
RECOVER clkd
If this entry is present, the BDI automatically executes a "JTAG lockout re-
covery" during reset processing if the MAC7100 flash is secured. Use this
entry only if you really need to recover a secured a MAC7100 device.
clkd
The value for the CFMCLKD register used during the
JTAG lockout recovery. Calculate this entry based on the
reset system frequency (PLL disabled).
Example:
RECOVER 19 ; CLKD for 8 MHz system clock
Example for the ARM PID7T board (AM29F010 in U12):
[FLASH]
WORKSPACE 0x00000000 ;Workspace in target RAM for faster programming algorithm
CHIPTYPE AM29F ;Flash type
CHIPSIZE 0x20000 ;The size of one flash chip in bytes (e.g. AM29F010 = 0x20000)
BUSWIDTH 8 ;The width of the flash memory bus in bits (8 | 16 | 32)
FILE C:\gdb\pid7t\bootrom.hex ;The file to program
ERASE 0x04000000 ;erase sector 0 of flash SIMM
ERASE 0x04004000 ;erase sector 1 of flash SIMM
ERASE 0x04008000 ;erase sector 2 of flash SIMM
ERASE 0x0400C000 ;erase sector 3 of flash SIMM
ERASE 0x04010000 ;erase sector 4 of flash SIMM
ERASE 0x04014000 ;erase sector 5 of flash SIMM