Maybe someone can help me here with the #ch32v208 chip I'm trying to program. I'm trying the official examples from the #openwch repository, and they all work on the 203, but I can't get any of the USB device examples to work on the 208. They compile and run, and I get all the serial debugging messages correctly, but the USB device never enumerates. Nothing in dmesg. On the same board, I have #TinyUSB examples working, so the hardware seems to be fine.

https://github.com/deshipu/ch32v208-mite-test

GitHub - deshipu/ch32v208-mite-test

Contribute to deshipu/ch32v208-mite-test development by creating an account on GitHub.

GitHub
Making some progress, turns out with the pins I have connected to the USB socket on that board, PA11 and PA12, I should be using the USBD peripheral, not the USBFS one, that uses PB6 and PB7. Now I'm getting some enumeration and descriptor read errors, so at least I know the pins are right. But still can't get the device enumerated. The same code works on ch32v203.