Basic example of libopencm3 on a STM32F103 "blue pill" board.
- ARM toolchain (Debian/Ubuntu:
sudo apt install gcc-arm-none-eabi
) - ARM GDB (Debian/Ubuntu:
sudo apt install gdb-multiarch
) - OpenOCD (Debian/Ubuntu:
sudo apt install openocd
) - Python (for libopencm3)
- Build:
make
- Build with alternate toolchain:
make TARGET_PREFIX=arm-something-else-
- Build with alternate toolchain:
- Flash:
make flash
- Flash with alternate programmer:
make OPENOCD_INTERFACE=interface/ftdi/dp_busblaster.cfg flash
- Flash with alternate programmer:
- Start OpenOCD debug server:
make run-debug-server
- Connect GDB in TUI mode:
make run-debug-client
- Use alternate GDB:
make TARGET_GDB=some-other-gdb run-debug-client
- Use alternate GDB:
libopencm3 is licensed under LGPL v3.
All other code is licensed under CC0.