This repository proposes some scripts on top of openocd to flash and debug seamlessly official STM32 development board (Nucleo, Discovery and Eval series)
$ ./bootstrap
$ ./configure --enable-maintainer-mode --enable-stlink
$ make
$ source setlocal.sh
$ stm32_flsh l4 binary.bin
$ 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:
Current openocd version is 0.10.0. Check README for more information
Thanks to @jamike for his initial work and support