Follow the guide on MCU On Eclipse to set up and install required tools.
- ARM Toolchain
- CMake
- Ninja (Place
ninja.exe
inside CMake/bin
directory) - Segger
To install VS Code extensions run the following:
code --install-extension ms-vscode.cpptools
code --install-extension marus25.cortex-debug
code --install-extension twxs.cmake
code --install-extension dan-c-underwood.arm
code --install-extension zixuanwang.linkerscript
- Create a directory
/build
- Inside this build directory run the command:
cmake -DCMAKE_MAKE_PROGRAM=ninja.exe -G "Ninja" ..
(this creates the build files) - Run
ninja
, or use the VS Code build task to create build executables
VS Code Run/Debug should work out of the box