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 (Choose the option for the ZSWatch version you have):
Erase external flash vX
Upload Raw FS vX
Note: This requires ZSWatch already flashed with functional firmware supporting BLE.
Go to https://zswatch.dev/update and follow the instructions.
Below for ZSWatch v5. Take a look in tasks.json for the exact lines needed for specific ZSWatch version.
west upload_fs --erase --ini_file app/qspi_mx25u51245.ini
west upload_fs --type raw --ini_file app/qspi_mx25u51245.ini
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.