cancel
Showing results for 
Search instead for 
Did you mean: 

How to initialize USB_OTG_FS in CubeMX?

DWeng.2
Associate

Hello,

I am currently initializing my STM32MP157CAC3 (TFBGA361) with CubeMX.

The processor's datasheet lists USB_OTG_FS functionality as additional functions on PA11 / PA12 but there is no such selection inside CubeMX.

In general, there is no USB_OTG_FS functionality listed (only USB_OTG_HS, which I can't use because the pins are already used by USB_HS2).

Is it possible to configure this peripheral inside CubeMX?

MPU: STM32MP157CAC3

CubeMX Version: 5.6.0.202002181639

MPU Firmware Package: V1.2.0

1 REPLY 1
mleo
Senior II

Hello @Community member​ ,

You are right about missing USB_OTG_FS functionality in CubeMX. Unfortunately this feature hasn't yet been implemented.

So in CubeMX you need to assure that pins PA11 and PA12 aren't assigned any other funcionality that could interfere with USB signals.

And then manually update the generated DT according the examples on:

https://wiki.st.com/stm32mpu/wiki/OTG_device_tree_configuration

Best regards,

Milan