{"id":22914715,"url":"https://github.com/foxmd/cube_ide_cmake_c_f303","last_synced_at":"2025-06-23T05:36:19.412Z","repository":{"id":42039879,"uuid":"471098089","full_name":"FoxMD/cube_ide_cmake_c_f303","owner":"FoxMD","description":"CMake example project for VSCode and STM32F303 in C","archived":false,"fork":false,"pushed_at":"2022-04-16T10:00:57.000Z","size":13380,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-01T11:54:10.602Z","etag":null,"topics":["cmake","stm32f303","vscode"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FoxMD.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-03-17T18:27:49.000Z","updated_at":"2022-03-18T14:34:15.000Z","dependencies_parsed_at":"2022-08-12T03:10:17.348Z","dependency_job_id":null,"html_url":"https://github.com/FoxMD/cube_ide_cmake_c_f303","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/FoxMD/cube_ide_cmake_c_f303","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FoxMD%2Fcube_ide_cmake_c_f303","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FoxMD%2Fcube_ide_cmake_c_f303/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FoxMD%2Fcube_ide_cmake_c_f303/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FoxMD%2Fcube_ide_cmake_c_f303/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FoxMD","download_url":"https://codeload.github.com/FoxMD/cube_ide_cmake_c_f303/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FoxMD%2Fcube_ide_cmake_c_f303/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261422765,"owners_count":23156035,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cmake","stm32f303","vscode"],"created_at":"2024-12-14T05:16:12.712Z","updated_at":"2025-06-23T05:36:14.400Z","avatar_url":"https://github.com/FoxMD.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# About\nSmall example to run a STM32F303 under VSCode with CMake and Ninja. \u003c/br\u003e\nIf you need a teplate with settings without STM32CUBE files go to:\n[Template](https://github.com/FoxMD/VSCode-STM32-template)\n### Used tools:\n- arm-none-eabi-gcc\n- STM32CubeProgrammer\n- ST-Link_gdbserver[^1]\n- CMake\n- Ninja [Ninja build system](https://github.com/ninja-build/ninja/releases)\n\n### Used VSCode plugins/tools:\n- ms-vscode.cpptools: [Syntax highlighting and other core features for C/C++ development](https://github.com/microsoft/vscode-cpptools)\n- ms-vscode.cmake-tools: [CMake core tools, build system generator tool](https://github.com/microsoft/vscode-cmake-tools)\n- twxs.cmake: [CMake color highlighting](https://github.com/zyxar/Sublime-CMakeLists)\n- marus25.cortex-debug: [Cortex-M debugging extension, mandatory for STM32 debug from VSCode ](https://github.com/Marus/cortex-debug)\n- dan-c-underwood.arm: [ARM Assembly syntax highlighter ](https://github.com/dan-c-underwood/vscode-arm)\n- zixuanwang.linkerscript: [GCC Linker script syntax highlighter ](https://github.com/TheNetAdmin/vscode-linkerscript)\n\nFor a good exaple with F7 and a walktrough visit: [Tilen Majerle](https://github.com/MaJerle/stm32-cube-cmake-vscode)\n\n# Comparison to CubeIDE\n### Size:\nGenerated .hex is bigger with VSCode even with the same settings\n- CubeIDE: 18,9KB - RAM: 1587 B, FLASH: 6850 B\n- VSCode: 50,8KB - RAM: 2064 B, FLASH: 18496 B \n\n### Performace:\nFor now it seems to be comparable, will see on DSP applications (updates will come)\n### Debug:\nComparable, some options are better on VSC some on STMCubeIDE\n### Easy to use:\nFor 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...  \n\n# ToDo:\n- Include files path error highligting (c_cpp_properties.json needs to be adjusted)\n\n# Known issues\n[^1]: Some AV delete ST-Link_servergdb.exe and let the .bat file exist, while trying to debug your project, you get an error:\n`Debugger error: Client: Error: read ECONNRESET` \u003c/br\u003e\n**Solution:** Just install it again and put a exception in your AV for the exe file before you run it again[^1].\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoxmd%2Fcube_ide_cmake_c_f303","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffoxmd%2Fcube_ide_cmake_c_f303","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoxmd%2Fcube_ide_cmake_c_f303/lists"}