Page 2 of 2

Re: Anybody using this F4 board and got the USB working?

Posted: Mon Oct 09, 2017 8:11 pm
by RogerClark
Its possibly a hardware fault on the board e.g a dry joint on the USB connector. This is very common on the Blue Pill etc

[Solved]Re: Anybody using this F4 board and got the USB working?

Posted: Mon Oct 09, 2017 8:39 pm
by flodejr
@steve, @roger,

Thanks! I got it working now. My error was that I only defined the USB OTG FS CDC device and the internal pull ups previously

To make it work, I will need to define a UART device + CDC Comm port and pull up on the D+ line in CubeMX. Although I don't have to do anything on the UART side, it kind of automatically links the UART to the CDC device. Now I can see the /dev/ttyACM0 serial device on my linux box.

Also no terminating resistors required based on the specs.
2.2.30 Universal serial bus on-the-go full-speed (OTG_FS)
The STM32F405xx and STM32F407xx embed an USB OTG full-speed device/host/OTG
peripheral with integrated transceivers. The USB OTG FS peripheral is compliant with the
The USB 2.0 specification and with the OTG 1.0 specification. It has software-configurable
endpoint setting and supports suspend/resume. The USB OTG full-speed controller
requires a dedicated 48 MHz clock that is generated by a PLL connected to the HSE
oscillator. The major features are:
• Combined Rx and Tx FIFO size of 320 × 35 bits with dynamic FIFO sizing
• Supports the session request protocol (SRP) and host negotiation protocol (HNP)
• 4 bidirectional endpoints
• 8 host channels with periodic OUT support
• HNP/SNP/IP inside (no need for any external resistor)
• For OTG/Host modes, a power switch is needed in case bus-powered devices are