Skip to content

Commit ea885d5

Browse files
committed
reduce s3 baudrate to prevent usb isssue, reset rp2040 usb for board test example
1 parent 37158ed commit ea885d5

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

hw/bsp/rp2040/family.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,12 @@ void board_init(void)
166166
#if CFG_TUH_ENABLED
167167
// set portfunc to host !!!
168168
#endif
169+
170+
#if !CFG_TUD_ENABLED && !CFG_TUH_ENABLED
171+
// board test exxample, reset usb controller
172+
reset_block(RESETS_RESET_USBCTRL_BITS);
173+
unreset_block_wait(RESETS_RESET_USBCTRL_BITS);
174+
#endif
169175
}
170176

171177
//--------------------------------------------------------------------+

test/hil/hil_pi4.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
],
1616
"flasher": "esptool",
1717
"flasher_sn": "461cb8d7decdeb119be9b506e93fd3f1",
18-
"flasher_args": "-b 1500000"
18+
"flasher_args": "-b 921600"
1919
}
2020
]
2121
}

0 commit comments

Comments
 (0)