Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Building with the Makefile

  • GCC/G++ version 6.3.1
    • Relies on newlib
  • Line added to linker option
    • "-specs=nosys.specs"
      • Adds function definitions for missing adds stubs for some libc syscalls
      • These functions can be retargeted
      • "_write" is retargeted in Core/Src/write.c
      • printf uses this version of _writeretargeted 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

...