cancel
Showing results for 
Search instead for 
Did you mean: 

USB_OTG_HS grayed out for STM32U595VJT6

bartosz_
Associate II

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:

bartosz__0-1762861209869.png

 

Do you have any ideas what the problem might be?

 

3 REPLIES 3
mƎALLEm
ST Employee

Hello,

This is what the pop up is saying:

mALLEm_0-1762862371620.png

You need to Select HSE as source clock.

So go to RCC and enable HSE. USB_OTG_HS will appear.

 

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

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?

bartosz__0-1762862559652.png

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?


@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:

mALLEm_1-1762867110086.png

 


@bartosz_ wrote:

As for RCC, what settings would be correct?

bartosz__0-1762862559652.png

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.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.