fix warning, change hil jlink for feather nrf52840

This commit is contained in:
hathach
2026-04-26 23:15:49 +07:00
parent cf50ea245b
commit 3792a9a387
3 changed files with 6 additions and 5 deletions

View File

@ -99,9 +99,9 @@ void tud_msc_inquiry_cb(uint8_t lun, uint8_t vendor_id[8], uint8_t product_id[16
const char vid[] = "TinyUSB";
const char pid[] = "Mass Storage";
const char rev[] = "1.0";
memcpy(vendor_id, vid, strlen(vid));
memcpy(product_id, pid, strlen(pid));
memcpy(product_rev, rev, strlen(rev));
(void) strncpy((char*) vendor_id, vid, 8);
(void) strncpy((char*) product_id, pid, 16);
(void) strncpy((char*) product_rev, rev, 4);
}
bool tud_msc_test_unit_ready_cb(uint8_t lun) {

View File

@ -782,7 +782,8 @@ def test_device_cdc_msc_throughput(board):
pass
# Put tty in raw mode so dd sees pure binary throughput.
run_cmd(f'stty -F {tty} raw -echo')
rs = run_cmd(f'timeout 30 stty -F {tty} raw -echo')
assert rs.returncode == 0, f'stty failed: {rs.stdout.decode()}'
# Payload aim: ~5 s per direction at FS (~830 kB/s), much less at HS.
msc_count = 2 if is_fs else 16 # bs=1M

View File

@ -43,7 +43,7 @@
},
"flasher": {
"name": "jlink",
"uid": "000682804350",
"uid": "681295394",
"args": "-device nrf52840_xxaa"
}
},