bump up pio-usb to 0.6.1, enable dual hil test for pico

This commit is contained in:
hathach 2024-08-28 11:43:14 +07:00
parent c46adc7ba8
commit 6fdf206f11
No known key found for this signature in database
GPG Key ID: 26FAB84F615C3C52
3 changed files with 13 additions and 8 deletions

View File

@ -39,6 +39,9 @@ import fs
ENUM_TIMEOUT = 30
STATUS_OK = "\033[32mOK\033[0m"
STATUS_FAILED = "\033[31mFailed\033[0m"
STATUS_SKIPPED = "\033[33mSkipped\033[0m"
# get usb serial by id
def get_serial_dev(id, vendor_str, product_str, ifnum):
@ -411,7 +414,7 @@ def test_board(board):
if not os.path.exists(fw_dir):
fw_dir = f'examples/cmake-build-{name}/{test}'
fw_name = f'{fw_dir}/{os.path.basename(test)}'
print(f'{name:30} {test:20} ... ', end='')
print(f'{name:25} {test:30} ... ', end='')
if not os.path.exists(fw_dir):
print('Skip')
@ -432,11 +435,11 @@ def test_board(board):
print('OK')
except Exception as e:
err_count += 1
print('Failed')
print(STATUS_FAILED)
print(f' {e}')
else:
err_count += 1
print('Flash failed')
print(f'Flash {STATUS_FAILED}')
return err_count
@ -463,10 +466,13 @@ def main():
else:
config_boards = [e for e in config['boards'] if e['name'] in boards]
err_count_list = []
with Pool(processes=os.cpu_count()) as pool:
err_count_list = pool.map(test_board, config_boards)
err_count = sum(err_count_list)
err_count = sum(pool.map(test_board, config_boards))
print()
print("-" * 30)
print(f'Total failed: {err_count}')
print("-" * 30)
sys.exit(err_count)

View File

@ -49,7 +49,6 @@
"flasher_sn": "E6614103E72C1D2F",
"flasher_args": "-f interface/cmsis-dap.cfg -f target/rp2040.cfg -c \"adapter speed 5000\"",
"tests": {
"skip": ["dual/host_info_to_device_cdc"],
"dual_attached": [{"vid_pid": "1a86_55d4", "serial": "52D2002470"}]
}
},

View File

@ -58,7 +58,7 @@ deps_optional = {
'144f1eb7ea8c06512e12f12b27383601c0272410',
'kinetis_k kinetis_k32l2 kinetis_kl lpc51 lpc54 lpc55 mcx imxrt'],
'hw/mcu/raspberry_pi/Pico-PIO-USB': ['https://github.com/sekigon-gonnoc/Pico-PIO-USB.git',
'7902e9fa8ed4a271d8d1d5e7e50516c2292b7bc2',
'fe9133fc513b82cc3dc62c67cb51f2339cf29ef7',
'rp2040'],
'hw/mcu/renesas/fsp': ['https://github.com/renesas/fsp.git',
'd52e5a6a59b7c638da860c2bb309b6e78e752ff8',