stm32 maple mini usb hacks
Go to file
2021-09-30 17:01:56 +03:00
libopencm3 git subrepo clone https://github.com/libopencm3/libopencm3 2021-09-30 16:34:10 +03:00
openocd init 2021-09-30 16:33:59 +03:00
RTT init 2021-09-30 16:33:59 +03:00
src init 2021-09-30 16:33:59 +03:00
.editorconfig init 2021-09-30 16:33:59 +03:00
.gitignore init 2021-09-30 16:33:59 +03:00
CMakeLists.txt Build libopencm3 2021-09-30 17:01:56 +03:00
CMakePresets.json init 2021-09-30 16:33:59 +03:00
generated.STM32F103C8T6.ld init 2021-09-30 16:33:59 +03:00
README.md Build libopencm3 2021-09-30 17:01:56 +03:00
toolchain-STM32F1.cmake init 2021-09-30 16:33:59 +03:00

Build

First time:

  1. git submodule update --init
  2. make -C libopencm3
  3. cmake -S . --preset=default

or older cmake:

  1. 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