Skip to content

ESP32-P4 USB Serial Port Failure (IDFGH-16942) #18003

@jingyuan2017

Description

@jingyuan2017

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.

5.5.1

Espressif SoC revision.

esp32p4

Operating System used.

Windows

How did you build your project?

VS Code IDE

If you are using Windows, please specify command line type.

None

Development Kit.

P4 development board

Power Supply used.

USB

What is the expected behavior?

Hello, I am testing with the tusb_serial_device code from the official example, using ESP-IDF version 5.5.1.

The development board has a USB port connected to pins 24/25, which is normally used for JTAG. However, when I tried to use it as a full-speed USB serial port, it failed.

What is the actual behavior?

After setting the RHPORT of TinyUSB to FS (otg1.1) in menuconfig and compiling for testing, I connected the USB port to the computer as a full-speed USB port, but the computer displayed “Unrecognized USB device.”

Steps to reproduce.

No other code was modified.
Only the following settings were changed in menuconfig:
Set USB Peripheral to otg1.1.
Disabled JTAG and JTAG log output.

Debug Logs.

I (271) main_task: Started on CPU0
I (281) main_task: Calling app_main()
I (281) example: USB initialization
W (281) tusb_desc: No Device descriptor provided, using default.
W (291) tusb_desc: No FullSpeed configuration descriptor provided, using default.
W (291) tusb_desc: No String descriptors provided, using default.
I (301) tusb_desc: 
.................................
USBD init on controller 0, speed = Full
sizeof(usbd_device_t) = 84
sizeof(dcd_event_t) = 12
sizeof(tu_fifo_t) = 20
sizeof(tu_edpt_stream_t) = 112
CDC init
guid, gsnpsid, ghwcfg1, ghwcfg2, ghwcfg3, ghwcfg4
0x00000000, 0x4F54400A, 0x00000000, 0x224DD930, 0x00C804B5, 0xD3F0A030
Fullspeed PHY init
DMA = 1
I (491) TinyUSB: TinyUSB Driver installed
I (501) example: USB initialization DONE

Diagnostic report archive.

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions