; ======================================================== ; bdiGDB configuration for STMicro STM32F4-Discovery board ; ======================================================== ; ; Info about the JTAG clock frequency: ; ------------------------------------ ; BDI2000: ; 0=Adaptive, ; 1=16MHz, 2=8MHz, 3=4MHz, ; 4= 1MHz, 5=500kHz, 6=200kHz, 7=100kHz, 8=50kHz, ; 9=20kHz, 10=10kHz, 11=5kHz, 12=2kHz, 13=1kHz ; BDI3000: ; 0=Adaptive, ; 1=32MHz, 2=16MHz, 3=11MHz, 4=8MHz, 5=5MHz, 6=4MHz, ; 7=1MHz, 8=500kHz, 9=200kHz, 10=100kHz, 11=50kHz, ; 12=20kHz, 13=10kHz, 14=5kHz, 15=2kHz, 16=1kHz, ; [INIT] WGPR 13 0x2000fffc ;set SP to internal SRAM ; [TARGET] CPUTYPE CORTEX-M4 ;CLOCK 2 ;BDI2000: JTAG clock 8MHz CLOCK 4 ;BDI3000: JTAG clock 8MHz POWERUP 2000 ;start delay after power-up detected in ms RESET HARD 100 ;assert reset for 100 ms WAKEUP 100 ;wait after reset released STARTUP HALT ;halt immediately at the reset vector ENDIAN LITTLE ;memory model (LITTLE | BIG) BREAKMODE SOFT ;SOFT or HARD MEMACCESS AHB 2 ;memory access via AHB (16 TCK's access delay) ; ;SCANPRED 1 5 ;count for TMC TAP (remove this line for SWD) ;SCANSUCC 0 0 ;no device after ARM core (remove this line for SWD) [HOST] PROMPT STM32F4> FILE E:/temp/dump16k.bin FORMAT BIN 0x20000000 [FLASH] WORKSPACE 0x20000000 ;workspace in internal SRAM CHIPTYPE STM32F4 CHIPSIZE 0x100000 ;1 MB FLASH BUSWIDTH 32 ;x32 Program/Erase parallelism (2.7V - 3.6V) ;FILE E:/Cygwin/home/bdidemo/arm11/stm32f4.bin ;FORMAT BIN 0x08000000 ;ERASE 0x08000000 ;erase 16 kB sector ;ERASE 0x08004000 ;erase 16 kB sector 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 [REGS] FILE $regSTM32F4.def