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": 39, "requestCorrelationId": "f54410451b0d4ecf9e03afa93922885d"}