Skip to main content
MVV.1
Associate II
October 2, 2021
Question

hUsbDeviceHS.dev_state not working properly on my custom board !!!

I'm using usb vcp for my project on STM32F407VET6.

I had a XCORE407i board with a STM32F407IGt6 and when I connected it's HS usb to the PC, the "hUsbDeviceHS.dev_state" was changed to "USBD_STATE_CONFIGURED" and after disconnecting the cable, the state was changed to "USBD_STATE_SUSPENDED".

but now I designed my own board and the problem is most of the time, the STM32F407VET6 can't find out the disconnection of the USB and the state is stock on "USBD_STATE_CONFIGURED".

I checked my schematic with the XCORE407i and the only difference is the mic2075 ic that i don't use because my device is only a device on the bus. can somebody help me with this?

I don't know if it is a hardware problem or i have done something wrong !

0693W00000FBFlTQAX.png0693W00000FBFlEQAX.png

This topic has been closed for replies.

2 replies

ST Technical Moderator
October 4, 2021

Hello @MVV.1​ ,

Referring to the reference manual of your product and check the following config:

0693W00000FBPlsQAH.jpg 

Hope this helps you!

Please keep us informed about your update.

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
ST Technical Moderator
November 1, 2021

Hi @MVV.1​ ,

Were you able to resolve the issue you described here? If yes, it will be interesting to share with us the solution you found.

Then please mark the answer as best to close this post, as this will help other users find that answer faster.

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks