Skip to content

Commit e3c163b

Browse files
committed
Upload: PyOCD: Halt device after UPLOAD_LAUNCH_COMMANDS
For pyocd debug, it appears the device under debug must be halted after UPLOAD_LAUNCH_COMMANDS, or debugger will become abnormal.
1 parent 3cb82bf commit e3c163b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/cmake/upload_methods/UploadMethodPYOCD.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ set(UPLOAD_LAUNCH_COMMANDS
5757
"monitor reset halt"
5858
"load"
5959
"tbreak main"
60+
61+
# It appears the device under debug must be halted after UPLOAD_LAUNCH_COMMANDS,
62+
# or debugger will become abnormal.
63+
"monitor reset halt"
6064
)
6165
set(UPLOAD_RESTART_COMMANDS
6266
"monitor reset halt"

0 commit comments

Comments
 (0)