Skip to main content
DWeng.2
Visitor II
July 9, 2020
Question

How to initialize USB_OTG_FS in CubeMX?

  • July 9, 2020
  • 1 reply
  • 915 views

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

This topic has been closed for replies.

1 reply

mleo
Visitor II
July 10, 2020

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