STM32F407 USB FS (Device Mode) not recognized. "Unknown USB Device (Device Descriptor Request Failed)" Error!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-06-26 12:48 AM
I've seen many topics similar to my problem and went through their solutions but they didn't work for me so I'm asking here with details related to my problem. I've made a PCB and implemented USB 2 FS on it using STM32F407 PHY in device mode. here is the schematic:
I've removed two 22 ohm resistors according to this video from ST official channel (around 4:30):
https://www.youtube.com/watch?v=vwlXUOY7KY0
the DM and DP lines are routed differentially and are about 15.4 mm long and Impedance (Zdiff) is about 105.32 (from Altium Designer calculations). there is no specific code yet. I just want PC to be able to recognize it (for now win 10). Device is self powered and VBUS sensing is activated (I've checked without it also and yet no result). Class for FS IP is virtual port com (setting initial values using CubeMX). There is an 8 MHz Crystal on the board and here is the Clock Configuration:
Minimum Heap and Stack sizes are increased to 0x2000 and 0x4000 respectively. MCU is not stucked since it works fine for some check codes. for example making an LED blink. Also checking USB initializations in debug mode, all checks are passed. I've uploaded the same settings into discovery board and it works fine and USB is recognized on PC. So there are 2 possibilities I can see. Either there is a HW problem which I cannot see or the MCU is fake.
Any help is much appreciated.
Regards
- Labels:
-
STM32F4 Series
-
USB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-06-27 5:24 AM
Hi, a few months ago I had also problems with getting usb to work. Here are topics that helped me:
https://community.st.com/s/question/0D53W000019bjlSSAQ/stm32f4-usb-composite-device-driver-missing
https://community.st.com/s/question/0D53W000019bjlSSAQ/stm32f4-usb-composite-device-driver-missing
And one question, do you have drivers installed?
https://www.st.com/en/development-tools/stsw-stm32102.html
Hope that will help you :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-06-27 7:13 AM
Hi, thank you very much :) . I will check them. And about drivers. For win 10 I think windows inbox drivers are ok although I'm not sure!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-03-23 6:39 AM
Make sure you have USB interrupts enabled
