This repository proposes some scripts on top of openocd to flash and debug seamlessly official STM32 development board (Nucleo, Discovery and Eval series)
- Functional gdb
$ ./bootstrap
$ ./configure --enable-maintainer-mode --enable-stlink
$ make
- Update setlocal.sh script with your local path to arm gdb, then source local script
$ source setlocal.sh
- Plug your STM32 board to any available USB port
- For a STM32 L4 board (eg: nucleo_l476rg)
$ stm32_flsh l4 binary.bin
- For a STM32 L4 board (eg: nucleo_l476rg)
$ stm32_dbg l4 binary.elf
For ease of use, following command could be defined in a local .gdbinit
define
rst monitor reset halt
end
This version support following families:
- F1, F2, F3, F4, L0, L1, L4
Current openocd version is 0.10.0. Check README for more information
Thanks to @jamike for his initial work and support