tobozo / ESP32-USB-Soft-Host

An Arduino wrapper to @sdima1357's usb_soft_host esp-idf example
GNU Affero General Public License v3.0
293 stars 44 forks source link

Connections made before powering cause error invalid header #43

Closed Ssabaker closed 1 year ago

Ssabaker commented 1 year ago

I'm having an issue in which a device that is connected to the circuit prior to booting the board will cause the below to repeatedly print. The problem is resolved by unplugging the USB peripheral and plugging it back in while the program is running. Has anyone else had this issue come up?

My project is for an embedded device so I'll be unable to just unplug and plug in the USB device.

rst:0x7 (TG0WDT_SYS_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT) invalid header: 0xffffffff invalid header: 0xffffffff invalid header: 0xffffffff invalid header: 0xffffffff invalid header: 0xffffffff invalid header: 0xffffffff invalid header: 0xffffffff invalid header: 0xffffffff invalid header: 0xffffffff invalid header: 0xffffffff invalid header: 0xffffffff invalid header: 0xffffffff invalid header: 0xffffffff invalid header: 0xffffffff

tobozo commented 1 year ago

hi,

you're probably using a reserved pin for D+/D-, use a different set of pins and make sure the pin numbers follow each other (e.g. 16, 17 or 21,22)

Ssabaker commented 1 year ago

Thanks! That did the trick although not all consecutive pin combinations seemed to work for whatever reason.