Setting up the Toolchain
1. Install Required Tools
- nRF Util
→ Add to yourPATH - nRF Command Line Tools
→ Add to yourPATH - SEGGER J-Link
2. Set Up VS Code
-
Install the nRF Connect VSCode Extension Pack
-
In the extension:
Install/Manage toolchain → Install SDK → Download 3.1.0
3. Clone the ZSWatch project
git clone https://github.com/ZSWatch/ZSWatch.git --recursive
Now open the cloned project in VSCode.
4. Initialize the Project
Open an nRF Connect Terminal (not a regular) in VS Code:
(ctrl + shift + p) -> nRF Connect: Create Shell Terminal)
Then run:
west init -l app
west update
Next, install the required Python packages. Both lines are needed. The first installs Zephyr's dependencies, the second installs ZSWatch-specific scripts (image upload tools, etc.).
- Linux / macOS
- Windows
pip install -r zephyr/scripts/requirements.txt
pip install -r app/scripts/requirements.txt
pip install -r zephyr/scripts/requirements.txt
pip install --no-build-isolation -r app/scripts/requirements.txt
note
The --no-build-isolation flag on Windows works around a pip build environment issue when compiling pynrfjprog from source.