To use build-test-build-test-build-test: 1. Start connect-to-device-via-stlink 2. Start open-gdb-via-stlink and peridically do 'restart' command there In order to see output from stm32 (via serial interface on GPIOA) run 'open-stlink-console' To flash production firmware start 'open-stlink-console' and type 'make' and then 'write'. You can also use 'write' in gdb mode.
akshaal/akstm32led
Base project (led) that show how to work with stm32 (STM32F103) by levering gcc with flto, cube, gdb-debugging (with python dashboard), stlink, uart, openocd, freertos and stuff
C