cancel
Showing results for 
Search instead for 
Did you mean: 

Can't configure USB FS on STM32F429ZI

qua
Associate III

When I set up the USB_OTG_FS peripheral in CubeMX I get the following error:

0693W00000NqZGUQA3.png 

Looking at CubeMX I can't see anything wrong.

0693W00000NqZGZQA3.png 

The only thing I noticed is that I can't enable VBUS Sensing. The only option is "disabled". It has a pin assigned for it, the box is ticked, but the drop down (highlighted above) only has "disabled" as the single option.

Edit: I should add that I have the correct 48MHz clock. This is the NUCLEO board.

Is the lack of VBUS detection the issue? The device is self powered. How can I figure out what the error message is referring to?

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @qua​ ,

Thanks for your prompt reply.

Oddly I can't reproduce the issue from my side even starting the project based on your .ioc.

In fact, in the attached .ioc Activate_VBUS is unchecked and VBUS sensing is set t Disabled.

Setting Activate_VBUS will simultaneously enable VBUS sensing.

0693W00000NqaGVQAZ.png 

However, I can see that you're using an old STM32CubeMX/ STM32CubeIDE versions:

0693W00000NqaGzQAJ.png 

Can you please try with latest STM32CubeMX version ?

Khouloud.

View solution in original post

5 REPLIES 5

Hello @qua​ ,

First let me welcome you to the STM32 Community and thank you for having reported :smiling_face_with_smiling_eyes:

Normally when checking Activate_VBUS checkbox in USB_OTG_FS Mode panel, VBUS sensing will be set automatically to enabled and couldn't be disabled (only Enabled option is available).

It is a bit odd that you're setting Activate_VBUS and that VBUS sensing is always disabled (as far as I can see from the attached screenshots).

Could you please share your .ioc file for further check from my side.

Thanks in advance.

Khouloud.

Sure, please find the .ioc file attached. Thanks for your assistance.

Hi @qua​ ,

Thanks for your prompt reply.

Oddly I can't reproduce the issue from my side even starting the project based on your .ioc.

In fact, in the attached .ioc Activate_VBUS is unchecked and VBUS sensing is set t Disabled.

Setting Activate_VBUS will simultaneously enable VBUS sensing.

0693W00000NqaGVQAZ.png 

However, I can see that you're using an old STM32CubeMX/ STM32CubeIDE versions:

0693W00000NqaGzQAJ.png 

Can you please try with latest STM32CubeMX version ?

Khouloud.

You probably meant "prompt reply". :)

Thanks Khouloud, that fixed it. Should have tried that first. I didn't realize that the version of CubeMX was tied to the version of the support files for that MCU, I'm used to other IDEs where they always download the latest one.