; ---------------------------------------------- ; bdiGDB configuration for Keil STM32 Eval 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, ; ; ; Download to flash with GDB monitor commands: ; -------------------------------------------- ; With a simple GDB user command you can directly load the ; ELF image into the STM32 on-chip flash and run to main. ; For example: ; ; User command startstm32: ; delete ; monitor reset ; monitor erase ; monitor prog 0 M:/temp/fibo.x elf ; break main ; jump start ; ; [INIT] WGPR 13 0x20004ffc ;set SP to top of internal SRAM [TARGET] CPUTYPE CORTEX-M3 CLOCK 4 ;BDI3000: JTAG clock 8 MHz ;CLOCK 2 ;BDI2000: JTAG clock 8 MHz POWERUP 3000 ;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 immediatelly at the reset vector ;STARTUP RUN ;let boot ROM setup the system ENDIAN LITTLE ;memory model (LITTLE | BIG) BREAKMODE HARD ;SOFT or HARD MEMACCESS AHB 2 ;memory access via AHB (32 TCK's access delay) ; SCANPRED 1 5 ;count for TMC TAP SCANSUCC 0 0 ; ; [HOST] IP 151.120.25.112 FILE E:/temp/dump16k.bin FORMAT BIN 0x20000000 PROMPT STM32> [FLASH] ; programming speed = 25kByte/sec WORKSPACE 0x20000000 ;workspace in internal SRAM CHIPTYPE STM32F10 CHIPSIZE 0x20000 BUSWIDTH 16 FILE E:/temp/dump16k.bin FORMAT BIN 0x08010000 ERASE 0x08010000 0x400 16 [REGS] FILE $regSTM32.def