cancel
Showing results for 
Search instead for 
Did you mean: 

USART3 selection disabled in CubeMx

syedhashmiraza
Associate II

I need UART to use printf, but it's showing as disabled. How can I enable it, and I also need an example code for printf.

 

syedhashmiraza_0-1732538343982.png

 

9 REPLIES 9
SofLit
ST Employee

Again, please put a correct title for your posts. "uart" doesn't make any sense.

For your question: Look at the warning. It seems there is a GPIO conflict between USART3 and something else ..

Please share your ioc file.

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.

hello iam using stm32f429i-disc1 in this how to enable usart1?

syedhashmiraza_0-1732539504339.png

 

I've already said there is a conflict in your config and I've requested to share your ioc file. 

 

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.
 

If you pass the mouse on USART3, you will get the warning and the information about the issue:

SofLit_0-1732540636778.png

There are IO conflicts with FMC or/and LTDC.

So you need to go to the pinout view and type USART3. All USART3 pins will toggle. Then select the pin that you need to use for UART3.

SofLit_1-1732540915673.png

Attached a project where I configured USART3 on PB10 and PB11.

But becarefull, for this discovery you need to use USART1 not USART3 over STLINK Virtual comport as said in this thread for printf:

https://community.st.com/t5/stm32-mcus-embedded-software/how-to-use-printf/td-p/733254

And if you need to use USART3 you need to check the HW and manage the conflicts on the board by referring to the schematics.

Hope that answers your question.

 

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.

yes iam using USART1 but in UASRT1 is not enabling ,how i enable usart1?

You need just to go to USART1 and select "Asynchronous":

SofLit_0-1732542292222.png

USART1 is on PA9 (Tx) and PA10 (Rx) which is inline with the schematics:

SofLit_1-1732542371962.png

 

 

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.

I tried  this pin, but UART is not working And I am checking it in the H-terminal by connecting a CP2102. I need example code of usart.

Please take a photo of your board (Top and Bottom) with a good resolution and share it with us. 

Forget about CP2102. You can use directly the STLINK module as virtual comport connected to this USB connector:

SofLit_0-1732611504745.png

Check your device manager. You must have STLINK Virtual COM Port listed in Ports list like the following:

SofLit_1-1732611776902.png

 

PS: we cannot help you with an answer like: "this is not working". It's working but I'm sure there is something wrong in your project or your environment.

You need to tell what you have done in details so we can converge rapidly to the solution.

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.