Skip to content

Commit 74b1156

Browse files
Fix PicoProbe CMSIS restart of second core (#1689)
For some reason `program ... reset" causes OpenOCD to leave the chip in a state where the 2nd core does not come up properly, leading to problems in FreeRTOS and others. Use a separate reset sequence after programming to work around the issue. Fixes #1687
1 parent 6ac7ee1 commit 74b1156

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platform.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ tools.picoprobe_cmsis_dap.cmd={runtime.platform.path}/system/openocd
209209
tools.picoprobe_cmsis_dap.upload.protocol=picoprobe_cmsis_dap
210210
tools.picoprobe_cmsis_dap.upload.params.verbose=
211211
tools.picoprobe_cmsis_dap.upload.params.quiet=
212-
tools.picoprobe_cmsis_dap.upload.pattern="{cmd}/bin/openocd" -f "interface/cmsis-dap.cfg" -f "target/rp2040.cfg" -s "{cmd}/share/openocd/scripts" -c "adapter speed 5000" -c "program {{build.path}/{build.project_name}.elf} verify reset exit"
212+
tools.picoprobe_cmsis_dap.upload.pattern="{cmd}/bin/openocd" -f "interface/cmsis-dap.cfg" -f "target/rp2040.cfg" -s "{cmd}/share/openocd/scripts" -c "adapter speed 5000" -c "program {{build.path}/{build.project_name}.elf} verify" -c "reset init" -c "resume" -c "exit"
213213

214214
#tools.picodebug.cmd={runtime.tools.pqt-openocd.path}
215215
tools.picodebug.cmd={runtime.platform.path}/system/openocd

0 commit comments

Comments
 (0)