The .VS Code folder contains configuration files for developing InfiniTime with VS Code. Effort was made to have these rely on Environment variables instead of hardcoded paths.
To support as many setups as possible the VS Code configuration files expect there to be certain environment variables to be set.
Variable | Description | Example |
---|---|---|
ARM_NONE_EABI_TOOLCHAIN_PATH | path to the toolchain directory | export ARM_NONE_EABI_TOOLCHAIN_PATH=/opt/gcc-arm-none-eabi-9-2020-q2-update |
NRF5_SDK_PATH | path to the NRF52 SDK | export NRF5_SDK_PATH=/opt/nRF5_SDK_15.3.0_59ac345 |
We leverage a few VS Code extensions for ease of development.
- C/C++ - C/C++ IntelliSense, debugging, and code browsing.
- CMake Tools - Extended CMake support in Visual Studio Code
Cortex-Debug - ARM Cortex-M GDB Debugger support for VS Code
Cortex-Debug is only required for interactive debugging using VS Codes built in GDB support.
The .devcontainer folder contains the configuration and scripts for using a Docker dev container for building InfiniTime
Using the Remote-Containers extension is recommended. It will handle configuring the Docker virtual machine and setting everything up.
More documentation is available in the readme in .devcontainer