This example is a template VSCode project demonstrating how to develop applications using Zephyr RTOS for nRF52832 devices outside of the Zephyr repo tree.
Copy your source files into src
and add the required KConfig options into prj.conf
.
- You must have a Zephyr repository somewhere on your PC. However,
West
is not required to build/run/debug this project. - ZEPHYR_BASE, BOARD and CONF_FILE are set locally in the CMakeLists.txt file.
- Building: CMake/Ninja.
- Debug: JLinkGDBServerCLExe (
.vscode/launch.json
) and Cortex-Debug - Terminal I/O: JLinkRTTClient (run in terminal before starting debugger)
- Direct flash program: JLinkExe (
jlink/flash.sh
).
Note, RTT monitor config in CMakeLists.txt
and jlink/jlink_rtt.conf
. More info: Serial output with JLinkRTTClient on the nRF52-DK with Zephyr