diff options
| author | Ha Thach <[email protected]> | 2024-07-31 21:42:29 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-07-31 21:42:29 +0700 |
| commit | c60934eedcc363f320cb66695f0034312094bfd8 (patch) | |
| tree | c396579b8759e8868be26570e47ab7dcb5b97a8d /test | |
| parent | cfbdc44a8d099240ad5ef208bd639487c2f28153 (diff) | |
| parent | 332f75cd44b58d340d36f30dbeb64742767a521c (diff) | |
Merge pull request #2739 from hathach/enhance-fsdev
Enhance fsdev
Diffstat (limited to 'test')
| -rw-r--r-- | test/hil/hil_test.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/test/hil/hil_test.py b/test/hil/hil_test.py index 158841687..e2a2f01a0 100644 --- a/test/hil/hil_test.py +++ b/test/hil/hil_test.py @@ -137,6 +137,11 @@ def flash_jlink(board, firmware): return ret +def flash_stlink(board, firmware): + #ret = run_cmd(f'st-flash --serial {board["flasher_sn"]} write {firmware}.bin 0x08000000') + ret = run_cmd(f'STM32_Programmer_CLI --connect port=swd sn={board["flasher_sn"]} --write {firmware}.elf --go') + return ret + def flash_openocd(board, firmware): ret = run_cmd(f'openocd -c "adapter serial {board["flasher_sn"]}" {board["flasher_args"]} -c "program {firmware}.elf reset exit"') return ret @@ -338,8 +343,10 @@ def main(): # all possible tests: board_test is added last to disable board's usb all_tests = [ 'cdc_dual_ports', - 'cdc_msc', 'cdc_msc_freertos', - 'dfu', 'dfu_runtime', + 'cdc_msc', + 'cdc_msc_freertos', + 'dfu', + 'dfu_runtime', 'hid_boot_interface', 'board_test' ] |
