bdi
GDB
for GNU Debugger, BDI2000 (ARM11 / Cortex)
User Manual
35
© Copyright 1997-2014 by ABATRON AG Switzerland
V 1.21
STM32F10xx Internal Flash Memory:
The BDI supports programming of the STM32F10xx internal flash memory. Mass and Sector Erase
of the Main Flash memory is supported. 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 STM32F10
CHIPSIZE 0x20000
BUSWIDTH 16
FILE E:/temp/dump16k.bin
FORMAT BIN 0x08010000
ERASE 0x08010000 0x400 16 ;erase 16 sectors
Mass erase via Telnet:
BDI> erase 0x08000000 mass
STM32L15xx Internal Flash Memory:
The BDI supports programming of the STM32L15xx internal flash memory. Option byte programming
is not directly supported but can be done manually via Telnet mm/md commands.
[FLASH]
CHIPTYPE STM32L15
CHIPSIZE 0x20000
;128 kB FLASH
BUSWIDTH 32
;32 bit flash access
FILE E:/temp/dump16k.bin
FORMAT BIN 0x08010000
ERASE 0x08010000 256 64
;erase 64 x 256 byte pages
Stellaris LM3S Internal Flash Memory:
The BDI supports programming of the Luminary Micro Stellaris LM3S internal flash memory. Mass
and Sector Erase of the Flash memory is supported. Before Erasing/Programming make sure the
correct value is loaded into the Flash USec Reload register (USECRL).
[INIT]
.....
WM32 0x400FE140 49 ;USECRL: Flash USec Reload for 50 MHz
;
[FLASH]
WORKSPACE 0x20000000 ;workspace in internal SRAM
CHIPTYPE LM3S
CHIPSIZE 0x40000
BUSWIDTH 32
FILE E:/temp/dump16k.bin
FORMAT BIN 0x00030000
ERASE 0x00030000 0x400 16
Mass erase via Telnet:
BDI> erase 0x00000000 mass