cmac4603

ESP32-C5 Programmable Usb

TL;DR: it can’t be done.

The USB peripheral on ESP32-C5 is non-programmable and only supports serial/JTAG (unless they release a new MCU).