File tree Expand file tree Collapse file tree 2 files changed +10
-9
lines changed
boards/microbit_v2-bootloader Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ OPENOCD_OPTIONS=-f openocd.cfg
15
15
# Upload the kernel over JTAG
16
16
.PHONY : flash
17
17
flash : $(TOCK_ROOT_DIRECTORY ) target/$(TARGET ) /release/$(PLATFORM ) .bin
18
- $(OPENOCD ) $(OPENOCD_OPTIONS ) -c " program $<; verify_image $<; reset; shutdown;"
18
+ $(OPENOCD ) $(OPENOCD_OPTIONS ) -c " program $<; verify_image $<; reset halt ; shutdown;"
19
19
20
20
.PHONY : flash
21
21
flash-debug : $(TOCK_ROOT_DIRECTORY ) target/$(TARGET ) /debug/$(PLATFORM ) .bin
22
- $(OPENOCD ) $(OPENOCD_OPTIONS ) -c " program $<; verify_image $<; reset; shutdown;"
22
+ $(OPENOCD ) $(OPENOCD_OPTIONS ) -c " program $<; verify_image $<; reset halt ; shutdown;"
Original file line number Diff line number Diff line change @@ -2,10 +2,11 @@ source [find interface/cmsis-dap.cfg]
2
2
transport select swd
3
3
source [find target/nrf52.cfg]
4
4
5
- set WORKAREASIZE 0x40000
6
-
7
- $_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $WORKAREASIZE -work-area-backup 0
8
-
9
- flash bank $_CHIPNAME.flash nrf51 0x00000000 0 1 1 $_TARGETNAME
10
- flash bank $_CHIPNAME.uicr nrf51 0x10001000 0 1 1 $_TARGETNAME
11
-
5
+ # necessary to be backward compatible with openocd 0.10
6
+ if { [flash list] == " " } {
7
+ set WORKAREASIZE 0x40000
8
+ $_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $WORKAREASIZE -work-area-backup 0
9
+
10
+ flash bank $_CHIPNAME.flash nrf51 0x00000000 0 1 1 $_TARGETNAME
11
+ flash bank $_CHIPNAME.uicr nrf51 0x10001000 0 1 1 $_TARGETNAME
12
+ }
You can’t perform that action at this time.
0 commit comments