Skip to content

FoxMD/cube_ide_cmake_c_f303

Repository files navigation

About

Small example to run a STM32F303 under VSCode with CMake and Ninja.
If you need a teplate with settings without STM32CUBE files go to: Template

Used tools:

Used VSCode plugins/tools:

For a good exaple with F7 and a walktrough visit: Tilen Majerle

Comparison to CubeIDE

Size:

Generated .hex is bigger with VSCode even with the same settings

  • CubeIDE: 18,9KB - RAM: 1587 B, FLASH: 6850 B
  • VSCode: 50,8KB - RAM: 2064 B, FLASH: 18496 B

Performace:

For now it seems to be comparable, will see on DSP applications (updates will come)

Debug:

Comparable, some options are better on VSC some on STMCubeIDE

Easy to use:

For a beginner STMCubeIDE would be to recommend, but for advanced users VSCode is nice, it gives you one editor for more languages for testing scripts, GUI, frontend, etc...

ToDo:

  • Include files path error highligting (c_cpp_properties.json needs to be adjusted)

Known issues

Footnotes

  1. Some AV delete ST-Link_servergdb.exe and let the .bat file exist, while trying to debug your project, you get an error: Debugger error: Client: Error: read ECONNRESET
    Solution: Just install it again and put a exception in your AV for the exe file before you run it again1. 2

About

CMake example project for VSCode and STM32F303 in C

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages