Skip to content

Assigning new PID with Espressif VID to TinyUSB stack with Arduino ESP32 Core #8299

@James-4DSystems

Description

@James-4DSystems

Board

ESP32-S3R8 SoC

Device Description

Custom products we are building, using the ESP32-S3R8 SoC

Hardware Configuration

Many things are connected, including display, IO Expander, RTC, RTP/CTP touch.
D+/D- are going to a USB-C connector.
Hardware is working nicely and we can program it from the Arduino IDE (both 1.x and 2.x) without any problems, using the USB-C as well as the UART in conjunction with RESET and GPIO0 etc.

Version

v2.0.9

IDE Name

Arduino IDE

Operating System

Windows 10 / 11

Flash frequency

80Mhz

PSRAM enabled

yes

Upload speed

921600

Description

Not a problem as such, looking for directions as to how to set the Espressif allocated PID (ref: https://github.com/espressif/usb-pids) alongside the Espressif VID, to the TinyUSB Stack, so our products are identified as our own, rather than using the standard 0x1001 PID, and our board showing up as random other products which also use the ESP32.
I have already made contact with Espressif Support, and they suggested I raise the issue with you on this Github directly.
Their email response:

[ESP]You can configure and build one of the following USB example. and you may learn How to build ESP-IDF example first. and then you can find the related options in menuconfig of ESP-IDF USB example:

image

BTW, if you still want to use Arduino, since arduino-esp32 is maintained by another espressif team, it would be helpful if you could raise the issue on arduino-esp32 github directly. Thanks for your understanding and cooperation.

Is it possible to set the PID of the TinyUSB via the Arduino ESP32 core, or do we have to go about figuring out how to use the IDF and do it that way?
We are looking for a solution to be able to do this in production of our products. We have not used the IDF directly before, we are only using the Arduino ESP32 core, currently v2.0.9

It has been suggested to trying things such as USB.PID(0x8999) to set it, however this does not work.
(ref: espressif/usb-pids#101)

Please can you detail if its possible to set the PID using the Arduino ESP32 core, as we just cannot find the information required to do this. If we need to do it via the IDF directly, please indicate this, so we can focus our efforts there instead.

Sketch

N/A

Debug Message

N/A

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

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