I want implement my bluepill as a midi controller from scratch(like register twiddling or using cmsis max in a text-editor with gnu-arm toolchain and makefiles) and I have been trying to find out resources on working with the usb peripheral. After extensively searching through the data sheets, I cannot find any proper resource on using the usb of the mcu. I even tried looking at the usb protocol specifications but I could not find much apart from intimidation due to information overload...
Tl:dr can't find any resource on how to implement usb on stm32f103c8t6 from scratch.
otgfs_usb_driverr
tost_usbfs_v1_usb_driver
it should be very close to working on a BluePill. The easiest project setup is with PlatformIO. \$\endgroup\$