/SAMD21_FreeRTOS_Demo

Basic FreeRTOS project for the SAMD21 microcontroller

Primary LanguageC

Setup

Follow the guide on MCU On Eclipse to set up and install required tools.

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

Generating Build Files

  1. Create a directory /build
  2. Inside this build directory run the command: cmake -DCMAKE_MAKE_PROGRAM=ninja.exe -G "Ninja" .. (this creates the build files)
  3. Run ninja, or use the VS Code build task to create build executables

Debugging

VS Code Run/Debug should work out of the box