| 1 |
### Update the bootloader |
| 2 |
|
| 3 |
Before deploying any firmware images, make sure the board is running the |
| 4 |
updated Arduino Nano 33 BLE bootloader (which is relocated to the end of |
| 5 |
the flash), otherwise the bootloader will be overwritten by the softdevice. |
| 6 |
For more information on how to update the bootloader, see the |
| 7 |
[Getting Started with OpenMV/MicroPython](https://docs.arduino.cc/tutorials/nano-33-ble/getting-started-omv) tutorial. |
| 8 |
|
| 9 |
### Via Arduino bootloader and BOSSA |
| 10 |
|
| 11 |
Download the latest BOSSA flash programmer from the |
| 12 |
[Arduino BOSSA fork](https://github.com/arduino/BOSSA/releases/latest). |
| 13 |
Note this version adds support for nRF devices, and must be used with the |
| 14 |
Nano 33 BLE. Double tap the reset button to enter the bootloader, and run |
| 15 |
the following command: |
| 16 |
|
| 17 |
```bash |
| 18 |
bossac -e -w --offset=0x16000 --port=ttyACM0 -i -d -U -R build-arduino_nano_33_ble_sense-s140/firmware.bin |
| 19 |
``` |
| 20 |
|
| 21 |
### Via nrfprog |
| 22 |
|
| 23 |
This board can also be programmed via nrfjprog (with Jlink for example), from MicroPython source repository: |
| 24 |
|
| 25 |
```bash |
| 26 |
make -j8 BOARD=arduino_nano_33_ble_sense SD=s140 deploy |
| 27 |
``` |