Skip to content

Commit bd1009e

Browse files
committed
tweak openocd flash command
1 parent aa9dce0 commit bd1009e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/hil/hil_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def flash_jlink(board, firmware):
115115

116116
def flash_openocd(board, firmware):
117117
ret = subprocess.run(
118-
f'openocd -c "adapter serial {board["flasher_sn"]}" {board["flasher_args"]} -c "program {firmware} reset exit"',
118+
f'openocd -c "adapter serial {board["flasher_sn"]}" {board["flasher_args"]} -c "program {firmware}" -c "reset init" -c "resume" -c "exit"',
119119
shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
120120
return ret
121121

0 commit comments

Comments
 (0)