tobozo / ESP32-USB-Soft-Host

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

Connections made before powering cause error invalid header #43

Closed Ssabaker closed 10 months ago

Ssabaker commented 10 months 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 10 months 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 10 months ago

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