I've managed to pinpoint my issue to this line (tusb_cfg is identical to the example code):
Code: Select all
tinyusb_driver_install(&tusb_cfg);
By commenting out lines of code I find that this function is causing the problem:
Code: Select all
components/espressif_tinyusb/src/portable/espressif/esp32sx/dcd_esp32sx.c:
// connect by enabling internal pull-up resistor on D+/D-
void dcd_connect(uint8_t rhport) {
(void)rhport;
USB0.dctl &= ~USB_SFTDISCON_M;
}
Code: Select all
tinyusb_driver_install > tusb_init > tud_init > dcd_init