File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
libraries/Nano33_System/examples/Nano33_updateBootloader Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 6
6
#define MBR_ADDR (0x0 )
7
7
#define SOFTDEVICE_ADDR (0xA0000 )
8
8
#define BOOTLOADER_ADDR (0xE0000 )
9
- #define SOFTDEVICE_INFO_ADDR (0xFFFF0 )
9
+ #define SOFTDEVICE_INFO_ADDR (0xFF000 )
10
10
11
11
const unsigned int magic = 0x5f27a93d ;
12
12
@@ -27,7 +27,7 @@ void setup() {
27
27
flash.init ();
28
28
Serial.println (" Flasing MBR..." );
29
29
applyUpdate (MBR_ADDR);
30
- Serial.println (" Storing SoftDevice length info at 0xF0000 ..." );
30
+ Serial.println (" Storing SoftDevice length info at 0xFF000 ..." );
31
31
writeSoftDeviceLen (SOFTDEVICE_INFO_ADDR);
32
32
Serial.println (" Flasing SoftDevice..." );
33
33
applyUpdate (SOFTDEVICE_ADDR);
@@ -36,6 +36,7 @@ void setup() {
36
36
flash.deinit ();
37
37
Serial.println (" Bootloader update complete. You may now disconnect the board." );
38
38
confirmation = true ;
39
+ NVIC_SystemReset ();
39
40
break ;
40
41
case ' n' :
41
42
case ' N' :
You can’t perform that action at this time.
0 commit comments