Will Merges (RIT Student)
Generating the initial project
- STM32CubeMX
- Makefile project
- Use HAL libraries
Building with the Makefile
- GCC/G++ version 6.3.1
- Line added to linker option
- "-specs=nosys.specs"
- adds stubs for some libc syscalls
- retargeted functions in lib/sys/sys.c
- Makefile also modified to use g++ and build C++ sources
- run "make" to build
- make all → builds all code
- make flash → flashes latest built binary using st-link (requires st-link debugger)
- make erase → erases flash on chip
- make program → build all code and then flash it
- make -B → forces a new build regardless of updates
Using the serial monitor
- Run "cu -l /dev/ttyACM0 -s 115200" or "screen /dev/ttyACM0 115200"
- Any serial monitor will work
{"serverDuration": 13, "requestCorrelationId": "88517e6bb10e494ea240eee185606408"}