alambe94 / I-CUBE-USBD-Composite

Create STM32 USB Composite devices with ease.
MIT License
153 stars 34 forks source link

Support for L4 non-OTG devices #11

Open jacky4566 opened 2 years ago

jacky4566 commented 2 years ago

Does this pack support L4 non-OTG devices?

Trying to compile with STM32L433CC and getting errors about OTG

../Middlewares/Third_Party/AL94_USB_Composite/COMPOSITE/Target/usbd_conf.c:31:10: fatal error: usb_otg.h: No such file or directory

alambe94 commented 2 years ago

Tick F1 device and generate cube code as pair of .c/.h

ucahmetuc commented 9 months ago

Tick F1 device and generate cube code as pair of .c/.h

This method works on STM32L053C8T6. But no matter what I did, it didn't work on STM32L433VCT6.

ucahmetuc commented 9 months ago

I solved the problem. Add "HAL_PWREx_EnableVddUSB();" to the top of the "MX_USB_PCD_Init" function. When you added the line, it started working smoothly.