I recommend using a J-Link programmer to flash the bootloader. If you want to use another programmer, I suggest checking out Joric’s wiki for instructions:
https://github.com/joric/nrfmicro/wiki/Bootloader
- Follow Step 2 in this guide:
https://learn.adafruit.com/bluefruit-nrf52-feather-learning-guide/flashing-the-bootloader - BUT use the bootloader from here instead:
https://github.com/4pplet/Adafruit_nRF52_Bootloader/releases
If your PCB already has the bootloader flashed (either from the factory or previously), you can update it by dragging the UF2 update file from the release.
Be sure to use the correct update file for your PCB revision.
- Install
nrfjprog(via nRF Command Line Tools) - Download the bootloader (
.hexfile):
https://github.com/4pplet/Adafruit_nRF52_Bootloader/releases
Make sure it matches your Cyber60 revision.
Revisions A and B use the same bootloader.
Look for the letter under the "cyber60" name on the PCB. - Open a terminal and navigate to the bootloader directory.
- Connect power to the PCB (USB or battery), and connect your programmer (via tag-connect or 2.54 header).
- Flash using:
nrfjprog --program [bootloader_name].hex --chiperase -f nrf52 --verify --reset
- If you get a "device is locked" error:
Then retry the flashing command.
nrfjprog --recover
[ #################### ] 0.218s | Erase file - Done erasing
[ #################### ] 1.293s | Program file - Done programming
[ #################### ] 1.337s | Verify file - Done verifying
Applying system reset.
Run.
- If successful, your PCB should show up as a USB drive named
CYBER_<Revision>.
If it doesn’t, try:- Unplugging and replugging USB + battery
- Double-clicking the reset button to enter bootloader mode
- Install nRF Command Line Tools
- Install J-Link drivers
- Download the appropriate bootloader
.hexfile from:
https://github.com/4pplet/Adafruit_nRF52_Bootloader/releases
Again: use the version that matches your PCB revision. - Either:
- Copy the bootloader to your
nrf-command-line-toolsfolder (e.g.C:\Program Files (x86)\Nordic Semiconductor\nrf-command-line-tools\bin\) - OR copy
nrfjprog.exeinto the folder where the.hexfile is
- Copy the bootloader to your
- Open Command Prompt
- Navigate to the correct directory
- Connect USB/power to the PCB and attach your programmer
- Run:
nrfjprog.exe --program [bootloader_name].hex --chiperase -f nrf52 --verify --reset
- If you get a "device is locked" error:
Then retry the flashing command.
nrfjprog.exe --recover
[ #################### ] 0.218s | Erase file - Done erasing
[ #################### ] 1.293s | Program file - Done programming
[ #################### ] 1.337s | Verify file - Done verifying
Applying system reset.
Run.
- If all goes well, you should see a removable device named
CYBER_<Revision>.
If not:- Unplug USB and battery, then reconnect
- Double-tap the reset button to enter bootloader mode