Skip to main content
qua
Associate III
May 24, 2022
Solved

Can't configure USB FS on STM32F429ZI

  • May 24, 2022
  • 2 replies
  • 2444 views

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?

This topic has been closed for replies.
Best answer by Khouloud OTHMAN

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.

2 replies

Khouloud OTHMAN
Associate
May 24, 2022

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.

qua
quaAuthor
Associate III
May 24, 2022

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

Khouloud OTHMAN
Khouloud OTHMANBest answer
Associate
May 24, 2022

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.

Piranha
Principal III
May 24, 2022

You probably meant "prompt reply". :)