stm32 maple mini usb hacks
libopencm3 | ||
openocd | ||
RTT | ||
src | ||
.editorconfig | ||
.gitignore | ||
CMakeLists.txt | ||
CMakePresets.json | ||
generated.STM32F103C8T6.ld | ||
README.md | ||
toolchain-STM32F1.cmake |
Build
First time:
git submodule update --init
make -C libopencm3
cmake -S . --preset=default
or older cmake:
cmake -S . -B build -DCMAKE_TOOLCHAIN_FILE=toolchain-STM32F1.cmake -G Ninja
Build libopencm3
cmake --build build --verbose -t libopencm3
Build project elf
cmake --build build --verbose
RTT debug console
run this while openocd
is running
while true; do if nc -z localhost 9090; then telnet localhost 9090; else sleep 1; fi; done