I'm using STM32F401CBUX
I have a USB HID that works well
But when I call HAL_UART_Transmit_IT/HAL_UART_Transmit_DMA/HAL_UART_Transmit, there's a USB cliff on the host side
What could be the matter? I don't understand anything
Tx on PA9 and VBUS sensing in USB on?
Yes. Can I fix the problem without changing the board? Why is this happening? Will the same problem be with the usual GPIO?
The VBUS pin can be freed by disabling the V BUS sensing option. This is done by setting theNOVBUSSENS bit in the OTG_FS_GCCFG register. In this case the V BUS is consideredinternally to be always at V BUS valid level (5 V).
There probably will be a #define or a configuration setting in the library you are using to achieve this. Please report back with your findings.
Thank you! This helped
Retrieving data ...