bdi
GDB
for GNU Debugger, BDI2000 (ARM11 / Cortex)
User Manual
38
© Copyright 1997-2014 by ABATRON AG Switzerland
V 1.21
Freescale Kinetis Internal Flash Memory:
The BDI supports programming of the Freescale Kinetis internal flash memory (FTFL).
[FLASH]
CHIPTYPE FTFL
WORKSPACE 0x20000000
FILE E:/temp/dump64k.bin
FORMAT BIN 0x00020000
ERASE 0x00020000 0x800 32 ;erase 32 x 2kB sectors
STM32F2 / STM32F4 Internal Flash Memory:
The BDI supports programming of the STM32F2 and STM32F4 internal flash memory. Mass and
Sector Erase of the Main Flash memory is supported. The BUSWIDTH parameter defines the used
Program/Erase Parallelism (see STM32F2 and STM32F4 Flash programming manual). Option byte
programming is not directly supported but can be done manually via Telnet mm/md commands.
[FLASH]
WORKSPACE 0x20000000
;workspace in internal SRAM
CHIPTYPE STM32F2
CHIPSIZE 0x100000
;1 MB FLASH
BUSWIDTH 32
;x32 Program/Erase parallelism (2.7V - 3.6V)
FILE E:/temp/dump512k.bin
FORMAT BIN 0x08008000
ERASE 0x08008000
;erase 16 kB sector
ERASE 0x0800C000
;erase 16 kB sector
ERASE 0x08010000
;erase 64 kB sector
ERASE 0x08020000 0x20000 7
;erase all 7 128 kB sectors
Mass erase via Telnet:
BDI> erase 0x08000000 mass