This commit is contained in:
CarlWachter 2025-03-26 16:26:04 +01:00
parent d6cf8a384e
commit 4582737c96

View File

@ -12,4 +12,10 @@ cmake --build build
My `STM32_CUBE_F4_PATH` on MacOS is: `/var/root/STM32Cube/Repository/STM32Cube_FW_F4_V1.28.1` and on MacOS I had to configure and build using sudo since var is protected. My `STM32_CUBE_F4_PATH` on MacOS is: `/var/root/STM32Cube/Repository/STM32Cube_FW_F4_V1.28.1` and on MacOS I had to configure and build using sudo since var is protected.
Code generation can be done through CubeMX (Note that we only use the core as the drivers are loaded via cmake from an existing toolchain) and flashing through CubeProgrammer or CubeCLI. Code generation can be done through CubeMX (Note that we only use the core as the drivers are loaded via cmake from an existing toolchain) and flashing through CubeProgrammer or CubeCLI.
### *OR*
Use the `STM32 VS Code Extension` and hit import CMake Project. In this case I already did it, hence the `.vscode` folder.
Now all you have to do is adjust the `STM32_CUBE_F4_PATH` setting in your `CMakePresets.json` to your needs and hit build.