2017-04-21 11:12 PM
Do i need a pullup 1.5K resistor on D+ for USB Full Speed when the USB is configured as a Device (peripheral)? I recently build a custom circuit board without the 1.5K pullup and the PC didn't detect it? unfortunately I damaged the circuit board so i cannot retest it with the 1.5K resistor.
My connections:
D- = PA11 (with 22 ohm resistor in series),
D+ = PA12 (with 22 ohm resistor in series),
V_USB is not configured.
I use the same code on my STM32F407 discovery board and it works fine therefor it cannot be the code. I am using the HAL lib with STMCube).
2017-04-22 04:20 AM
Don't have the anser as there are few generations of USB peripheral, and newer ones avoid the need to put external resistor.
Unless someone has the answer right away, dig by finding on-line the discovery board schematic for the same STM32 Family, open the schematic and check out the USB FS lines.
2017-04-23 12:14 PM
You custom board also has a '407? Or a '405?
No, you don't need a 1.5k pullup. The discovery board hooks up VBUS to PA9. If you don't do that, it can be a bit tricky to figure out how to disable the check for vbus. The symptoms are exactly as you describe: PC doesnot see any device.