USB Error while transmitting UART
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-11-08 03:38 AM
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
#usb-hid #custom-hid #uart- Labels:
-
UART-USART
-
USB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-11-08 09:03 AM
Tx on PA9 and VBUS sensing in USB on?
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-11-09 12:56 AM
Yes.
Can I fix the problem without changing the board? Why is this happening? Will the same problem be with the usual GPIO?- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-11-09 01:53 AM
From RM:
The VBUS pin can be freed by disabling the V BUS sensing option. This is done by setting the
NOVBUSSENS 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.
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-11-13 04:14 AM
Thank you! This helped