add stm32g0 (fsdev 2k) to hil pool

remove esp32s3 since cp210x cause usb bus issue in the long run
This commit is contained in:
hathach
2024-08-01 13:00:38 +07:00
parent c60934eedc
commit 5fa03dd906
4 changed files with 48 additions and 33 deletions

View File

@@ -138,10 +138,15 @@ def flash_jlink(board, firmware):
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_stflash(board, firmware):
ret = run_cmd(f'st-flash --serial {board["flasher_sn"]} write {firmware}.bin 0x8000000')
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
@@ -378,7 +383,8 @@ def main():
if not os.path.exists(fw_dir):
fw_dir = f'examples/cmake-build-{name}/device/{test}'
fw_name = f'{fw_dir}/{test}'
print(f' {test} ...', end='')
print(f' {test} ... ', end='')
sys.stdout.flush()
if not os.path.exists(fw_dir):
print('Skip')