2025-11-11 3:40 AM
Hey!
I'm trying to get USB up and running on a STM32U595VJT6. From the reference manual, it says it's supported.
However, when in STM32CubeMX, the USB_OTG_HS is grayed out.
This is on a fresh project, so there's no pin conflicts or similar.
This is how it looks:
Do you have any ideas what the problem might be?
2025-11-11 4:00 AM
Hello,
This is what the pop up is saying:
You need to Select HSE as source clock.
So go to RCC and enable HSE. USB_OTG_HS will appear.
2025-11-11 4:03 AM
Thank you!
How did you get that to pop up? I'm having problems not getting any of these messages on mac.
As for RCC, what settings would be correct?
I currently enabled 'Crystal/Ceramic Resonator'. Does that mean we should use an extenral crystal (we have one connected to the mcu), or do I need to set anything else?
2025-11-11 5:19 AM - edited 2025-11-11 5:23 AM
@bartosz_ wrote:
Thank you!
How did you get that to pop up? I'm having problems not getting any of these messages on mac.
I don't know for Mac, I have windows but I assume it's the same thing. Pass the mouse over the USB_OTG_HS link:
Here:
@bartosz_ wrote:
As for RCC, what settings would be correct?
I currently enabled 'Crystal/Ceramic Resonator'. Does that mean we should use an external crystal (we have one connected to the mcu), or do I need to set anything else?
Yes. for USB you need any of the external accurate clock sources either with an external crystal or using a crystal oscillator (XO) or another source using Bypass mode.