STM32F407 blink example using STM32F4XX M board. Special thanks to FastBit Embedded Brain Academy.
Build the binary.
$ make
Flash.
$ make flash
Enjoy watching the LED blink!
Build semihosting binary.
$ make semi
Run OpenOCD.
$ make debug
Flash, enable semihosting and reset.
$ arm-none-eabi-gdb
(gdb) target extended-remote :3333
(gdb) monitor flash write_image erase blink_semi.elf
(gdb) monitor arm semihosting enable
(gdb) monitor reset
Watch OpenOCD console print.
Application is running...
Toggle count: 1
Toggle count: 2
Toggle count: 3
...