Closed bhxxwx closed 5 months ago
Your usb low level init is incorrect, thanks.
Do you think all of usb registers are all zero? No.
Thank you for your reminder. The usb_glue_esp.c
file is missing from the component I downloaded. Now the program can recognize the USB insertion, but fails to obtain the descriptor, prompting -116 which is TimeOut, how can i fix this?
thank you very much again.
[I/USB] cherryusb, version: 0x001001
[I/USB] ========== dwc2 hcd params ==========
[I/USB] CID:00000000
[I/USB] GSNPSID:4f54400a
[I/USB] GHWCFG1:00000000
[I/USB] GHWCFG2:224dd930
[I/USB] GHWCFG3:00c804b5
[I/USB] GHWCFG4:d3f0a030
[I/USB] dwc2 has 8 channels
[I/USB] New full-speed device on Hub 1, Port 1 connected
[E/USB] Failed to get device descriptor,errorcode:-116
[E/USB] Port 1 enumerate fail
I have said, use my demo repo, thanks.
-116 is very normal because of incorrect dwc2 config.
If you do not use my demo repo, do not reply for this.
ok, thanks again
Default dwc2 config need 4K fifo, but esp32 only has 1K, so it cannot work.Do not use old version.
Hi, I transplanted the program to the ESP32-S3 chip, and an error occurred when running:
[E/USB] This dwc2 version does not support dma, so stop working
Above this message, I found that the information of dwc2 hcd could not be obtained normally, output below:My esp32-S3 chip version is V0.2, build in ESP-IDF V5.2.1 I'm wondering if the ESP changes the address of the USB peripheral? In this program:
#define USB_BASE 0x60080000