diff options
| author | hathach <[email protected]> | 2023-12-11 17:48:27 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2023-12-11 17:48:27 +0700 |
| commit | ea885d5c83c5052930e2515b259e29c165569432 (patch) | |
| tree | 1740378c0fe922a84d8e7aabaf46f411dcef5c6f | |
| parent | 37158eddcbba188dd77dbb17d77a0631a32713d0 (diff) | |
reduce s3 baudrate to prevent usb isssue, reset rp2040 usb for board test example
| -rw-r--r-- | hw/bsp/rp2040/family.c | 6 | ||||
| -rw-r--r-- | test/hil/hil_pi4.json | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/hw/bsp/rp2040/family.c b/hw/bsp/rp2040/family.c index aa9d00c23..5facd271f 100644 --- a/hw/bsp/rp2040/family.c +++ b/hw/bsp/rp2040/family.c @@ -166,6 +166,12 @@ void board_init(void) #if CFG_TUH_ENABLED // set portfunc to host !!! #endif + +#if !CFG_TUD_ENABLED && !CFG_TUH_ENABLED + // board test exxample, reset usb controller + reset_block(RESETS_RESET_USBCTRL_BITS); + unreset_block_wait(RESETS_RESET_USBCTRL_BITS); +#endif } //--------------------------------------------------------------------+ diff --git a/test/hil/hil_pi4.json b/test/hil/hil_pi4.json index e9a6721ea..fd2c5c432 100644 --- a/test/hil/hil_pi4.json +++ b/test/hil/hil_pi4.json @@ -15,7 +15,7 @@ ], "flasher": "esptool", "flasher_sn": "461cb8d7decdeb119be9b506e93fd3f1", - "flasher_args": "-b 1500000" + "flasher_args": "-b 921600" } ] } |
