2025-03-16 10:30 AM - edited 2025-03-16 10:31 AM
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?
Solved! Go to Solution.
2025-03-16 12:34 PM
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.
2025-03-16 11:50 AM
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.
2025-03-16 12:20 PM
@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?
2025-03-16 12:34 PM
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.