Skip to content

Commit 26a8f37

Browse files
authored
Merge pull request #17 from adafruit/fix-s3-otg-uploading
fix S3 cannot reset to bootrom with USB OTG
2 parents 9398e48 + b03028c commit 26a8f37

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cores/esp32/esp32-hal-tinyusb.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,12 @@ typedef struct {
6161

6262
static bool usb_otg_deinit(void * busptr) {
6363
// Once USB OTG is initialized, its GPIOs are assigned and it shall never be deinited
64+
// except when S3 swithicng usb from cdc to jtag while resetting to bootrom
65+
#if CONFIG_IDF_TARGET_ESP32S3
66+
return true;
67+
#else
6468
return false;
69+
#endif
6570
}
6671

6772
static void configure_pins(usb_hal_context_t *usb)

0 commit comments

Comments
 (0)