Getting image resources into the watch
Many images and icons are placed in external flash and not part of the ZSWatch firmware. There are three ways to do it upload them. Choose the one suiting you best.
- In VSCode
- Over BLE
- From terminal
Press Ctrl + Shift + P and run the following tasks (if using older legacy zswatch v4 use the other named Legacy):
Erase external flash
Upload Raw FS
Note: This requires ZSWatch already flashed with functional firmware supporting BLE.
Go to https://zswatch.dev/update and follow the instructions.
Below for later ZSWatch no need to specify anything else. But for older version sucn as legacy v4 take a look in tasks.json for the exact lines needed for specific ZSWatch version.
west upload_fs --erase
west upload_fs --type raw
Troubleshooting
If you see No connected debuggers found
but nrfjprog --ids
and JLink finds the debugger, try this fix:
export LD_LIBRARY_PATH=/opt/nrf-command-line-tools/lib:$LD_LIBRARY_PATH
# or add it to your ~/.bashrc
If you get missing pip packages make sure to run pip install app/scripts/requirements.txt
. If you use VSCode Tasks:Run Task it uses the nRF Connect Terminal, so make sure to run the pip install app/scripts/requirements.txt
using the nRF Connect Terminal instead.