mirror of
https://github.com/hathach/tinyusb.git
synced 2025-04-16 23:43:23 +00:00
bump up pio-usb to 0.6.1, enable dual hil test for pico
This commit is contained in:
parent
c46adc7ba8
commit
6fdf206f11
@ -39,6 +39,9 @@ import fs
|
|||||||
|
|
||||||
ENUM_TIMEOUT = 30
|
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
|
# get usb serial by id
|
||||||
def get_serial_dev(id, vendor_str, product_str, ifnum):
|
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):
|
if not os.path.exists(fw_dir):
|
||||||
fw_dir = f'examples/cmake-build-{name}/{test}'
|
fw_dir = f'examples/cmake-build-{name}/{test}'
|
||||||
fw_name = f'{fw_dir}/{os.path.basename(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):
|
if not os.path.exists(fw_dir):
|
||||||
print('Skip')
|
print('Skip')
|
||||||
@ -432,11 +435,11 @@ def test_board(board):
|
|||||||
print('OK')
|
print('OK')
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
err_count += 1
|
err_count += 1
|
||||||
print('Failed')
|
print(STATUS_FAILED)
|
||||||
print(f' {e}')
|
print(f' {e}')
|
||||||
else:
|
else:
|
||||||
err_count += 1
|
err_count += 1
|
||||||
print('Flash failed')
|
print(f'Flash {STATUS_FAILED}')
|
||||||
return err_count
|
return err_count
|
||||||
|
|
||||||
|
|
||||||
@ -463,10 +466,13 @@ def main():
|
|||||||
else:
|
else:
|
||||||
config_boards = [e for e in config['boards'] if e['name'] in boards]
|
config_boards = [e for e in config['boards'] if e['name'] in boards]
|
||||||
|
|
||||||
err_count_list = []
|
|
||||||
with Pool(processes=os.cpu_count()) as pool:
|
with Pool(processes=os.cpu_count()) as pool:
|
||||||
err_count_list = pool.map(test_board, config_boards)
|
err_count = sum(pool.map(test_board, config_boards))
|
||||||
err_count = sum(err_count_list)
|
|
||||||
|
print()
|
||||||
|
print("-" * 30)
|
||||||
|
print(f'Total failed: {err_count}')
|
||||||
|
print("-" * 30)
|
||||||
sys.exit(err_count)
|
sys.exit(err_count)
|
||||||
|
|
||||||
|
|
||||||
|
@ -49,7 +49,6 @@
|
|||||||
"flasher_sn": "E6614103E72C1D2F",
|
"flasher_sn": "E6614103E72C1D2F",
|
||||||
"flasher_args": "-f interface/cmsis-dap.cfg -f target/rp2040.cfg -c \"adapter speed 5000\"",
|
"flasher_args": "-f interface/cmsis-dap.cfg -f target/rp2040.cfg -c \"adapter speed 5000\"",
|
||||||
"tests": {
|
"tests": {
|
||||||
"skip": ["dual/host_info_to_device_cdc"],
|
|
||||||
"dual_attached": [{"vid_pid": "1a86_55d4", "serial": "52D2002470"}]
|
"dual_attached": [{"vid_pid": "1a86_55d4", "serial": "52D2002470"}]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -58,7 +58,7 @@ deps_optional = {
|
|||||||
'144f1eb7ea8c06512e12f12b27383601c0272410',
|
'144f1eb7ea8c06512e12f12b27383601c0272410',
|
||||||
'kinetis_k kinetis_k32l2 kinetis_kl lpc51 lpc54 lpc55 mcx imxrt'],
|
'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',
|
'hw/mcu/raspberry_pi/Pico-PIO-USB': ['https://github.com/sekigon-gonnoc/Pico-PIO-USB.git',
|
||||||
'7902e9fa8ed4a271d8d1d5e7e50516c2292b7bc2',
|
'fe9133fc513b82cc3dc62c67cb51f2339cf29ef7',
|
||||||
'rp2040'],
|
'rp2040'],
|
||||||
'hw/mcu/renesas/fsp': ['https://github.com/renesas/fsp.git',
|
'hw/mcu/renesas/fsp': ['https://github.com/renesas/fsp.git',
|
||||||
'd52e5a6a59b7c638da860c2bb309b6e78e752ff8',
|
'd52e5a6a59b7c638da860c2bb309b6e78e752ff8',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user