Skip to main content
Associate III
Solved

USB_OTG_FS and USART1 Async on same board

Hi! I'm using an STM32F401RET6 and was planning on using both USART1 in Asynchronous mode and USB_OTG_FS peripherals.

In STM32CubeIDE when they are configured at the same time there is an error. I've tried PA9/10 and PB6/7 for TX/RX for USART1 but the same warning/error shows. 

I wonder if there is some pin configuration interference that it isn't showing or if maybe some interference with the boot modes (Section 3.12 of DS9716).

Can I use USART1 and and USB_OTG_FS at the same time?

jlaufer_0-1742146271064.png

 

This topic has been closed for replies.
STTwo-32
STTwo-32Best answer
ST Technical Moderator

Yes, it is just impossible to configure the  Hardware Flow Control (RS232) since it will need an additional pin that is already used for USB_OTG_FS. That’s why we have the warning sign next to USART1 and red sign on the Hardware Flow Control (RS232) configuration menu.

Best Regards.

STTwo-32

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

3 replies

STTwo-32
ST Technical Moderator

Hello @jlaufer 

What I see is that you are able to use Both USART1 and USB_OTG_FS on your .ioc file without problems. Could you please tell me what is the problem you are having on your configuration.

Best Regards.

STTwo-32

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
jlauferAuthor
Associate III

@STTwo-32 Thanks for the response. I'm concerned about the yellow warning sign next to USART1 and the red highlighted "Hardware Flow Control (RS232)". Does this just mean I can't use in the Hardware Flow Control feature?

STTwo-32
STTwo-32Best answer
ST Technical Moderator

Yes, it is just impossible to configure the  Hardware Flow Control (RS232) since it will need an additional pin that is already used for USB_OTG_FS. That’s why we have the warning sign next to USART1 and red sign on the Hardware Flow Control (RS232) configuration menu.

Best Regards.

STTwo-32

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.