diff options
| author | hathach <[email protected]> | 2023-12-11 20:43:59 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2023-12-11 20:43:59 +0700 |
| commit | bd1009e135239cfd8be83fb220a241a4a1d87abd (patch) | |
| tree | 98d0bde15747a08c480ba09a413cfc0b52b4c0b9 | |
| parent | aa9dce09a17ac80c8d92a9d757378b7d89cf1e1c (diff) | |
tweak openocd flash command
| -rw-r--r-- | test/hil/hil_test.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/hil/hil_test.py b/test/hil/hil_test.py index 9cb009264..8f8a3aa65 100644 --- a/test/hil/hil_test.py +++ b/test/hil/hil_test.py @@ -115,7 +115,7 @@ def flash_jlink(board, firmware): def flash_openocd(board, firmware): ret = subprocess.run( - f'openocd -c "adapter serial {board["flasher_sn"]}" {board["flasher_args"]} -c "program {firmware} reset exit"', + f'openocd -c "adapter serial {board["flasher_sn"]}" {board["flasher_args"]} -c "program {firmware}" -c "reset init" -c "resume" -c "exit"', shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) return ret |
