File tree 1 file changed +27
-0
lines changed
libraries/Nano33_System/examples/Nano33_updateBootloader
1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change
1
+ /*
2
+ * This sketch will allow to support SoftDevices on Nano 33 BLE.
3
+ * To be able to support them, the bootloader needs to be updated.
4
+ * Before uploading this sketch to the board, follow this procedure:
5
+ *
6
+ * - Convert your SoftDevice binary to a SoftDevice.h .
7
+ * The nRF5-SDK website provides a SoftDevice.hex, so run the following commands:
8
+ *
9
+ * objcopy --input-target=ihex --output-target=binary --gap-fill 0xff SoftDevice.hex SoftDevice.bin
10
+ * xxd -i SoftDevice.bin > SoftDevice.h
11
+ *
12
+ * - Copy the content of the generated header file to SoftDevice.h
13
+ *
14
+ * - Upload this sketch to a Nano33BLE and make your selection through the Serial monitor:
15
+ * you can choose wheter to update only the SoftDevice or the full bootloader.
16
+ * After completion, the board will reboot and enter the bootloader mode.
17
+ *
18
+ * - Now you can upload your sketch.
19
+ * You can upload a sketch that uses the SoftDevice at 0x26000, using the following bossac command
20
+ *
21
+ * /path/to/bossac -d --port=yourPort --offset=0x16000 -U -i -e -w /path/to/sketch.bin -R
22
+ *
23
+ * Or you can still upload a standard sketch from the IDE at 0x10000. This will of course overwrite the SoftDevice.
24
+ * So if you want to run a SoftDevice-related sketch, always remember to upload this sketch before.
25
+ *
26
+ */
27
+
1
28
#include " FlashIAP.h"
2
29
#include " SoftDevice.h"
3
30
#include " bootloader.h"
You can’t perform that action at this time.
0 commit comments