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
2022-06-27 05: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 :)
2022-06-27 07: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!
2023-03-23 06:39 AM
Make sure you have USB interrupts enabled