Skip to content

Commit 79c9095

Browse files
authored
Upload: Fix GDB restart command for pyOCD (#350)
PyOCD debug restart can be failed without this somehow. It appears the device under debug must be halted after MBED_UPLOAD_RESTART_COMMANDS, but this is broken. Change to "monitor reset halt" to fix it.
1 parent ac57d4c commit 79c9095

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/cmake/upload_methods/UploadMethodPYOCD.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,5 @@ set(UPLOAD_LAUNCH_COMMANDS
5959
"tbreak main"
6060
)
6161
set(UPLOAD_RESTART_COMMANDS
62-
"monitor reset"
62+
"monitor reset halt"
6363
)

0 commit comments

Comments
 (0)