Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 628e608

Browse files
committedOct 12, 2023
reintroduce debug.server.openocd.script to keep backward compatibility
this way using old cli version with an updated platform should work if the cli is >= 0.35.0 and the platform is old it will work the old way
1 parent 6c30f9c commit 628e608

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed
 

‎boards.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ nano_33_iot.build.board=SAMD_NANO_33_IOT
249249
nano_33_iot.build.core=arduino
250250
nano_33_iot.build.extra_flags=-DCRYSTALLESS -D__SAMD21G18A__ {build.usb_flags}
251251
nano_33_iot.build.ldscript=linker_scripts/gcc/flash_with_bootloader.ld
252+
nano_33_iot.build.openocdoldscript=openocd_scripts/arduino_zero.cfg
252253
nano_33_iot.build.openocdscript=openocd_scripts/openocd.cfg
253254
nano_33_iot.build.variant=nano_33_iot
254255
nano_33_iot.build.vid=0x2341

‎platform.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ debug.server=openocd
138138
debug.server.openocd.path={runtime.tools.openocd-0.10.0-arduino7.path}/bin/openocd
139139
debug.server.openocd.scripts_dir={runtime.tools.openocd-0.10.0-arduino7.path}/share/openocd/scripts/
140140
build.openocdinterface=interface/{programmer.protocol}.cfg
141+
debug.server.openocd.script={runtime.platform.path}/variants/{build.variant}/{build.openocdoldscript}
141142
debug.server.openocd.scripts.0={build.openocdinterface}
142143
debug.server.openocd.scripts.1={runtime.platform.path}/variants/{build.variant}/{build.openocdscript}
143144
debug.svd_file={build.svd_file}

0 commit comments

Comments
 (0)
Please sign in to comment.