CSSE4011: nRF Dongle: Zephyr Board Guide
1.0 Prerequisites
Complete following OS tutes
- Getting Started
- First Program
1.1 Test Hardware
- nRF Dongle
2.0 Tools
For flashing this board, we need to install nrfutil
.
Usage: nrfutil [OPTIONS] COMMAND [ARGS]...
Options:
-v, --verbose Increase verbosity of output. Can be specified
more than once (up to -v -v -v -v).
-o, --output <filename> Log output to file
--help Show this message and exit.
2.1 TTY Permissions for Flashing
TTY permissions are required to load the binary by nrfutil
. An easy way to do this is to add the current user to the 'dialout' group.
You will typically need to log out and log in or reboot to see this effect.
3.0 nRF Dongle (nRF52840) - Zephyr
To build an application, from within the application directory
Package the application for the bootloader using nrfutil
:
nrfutil pkg generate --hw-version 52 --sd-req=0x00 \
--application build/zephyr/zephyr.hex \
--application-version 1 blinky.zip
Now, put the device into bootloader mode, by pressing the sideways push button (next to the white pushbutton). You should see the red led steadily blinky.
4.0 Troubleshooting
If you get a permissions error when flashing, it is likely because you did not log out/in after updating groups.
If it fails to flash, it could be because the VM does not see the DFU Bootloader
.
Run:
If not, you will need to edit VM settings and passthrough this USB from the host to the VM.