Skip to main content
Senior III
August 5, 2026
Solved

CubeMx does not generate USART1 Init

The CubeMx project does not generate the Usart Init in main .c file. I can add manually but just verifying if any problem with my CubeMx software. Request to please verify. I mean it is not called from the main.c file.

Souhaib MAZHOUDBest answer
ST Technical Moderator
August 5, 2026

Hello ​@STuser2 

You should uncheck the “Do not generate function call” under advanced settings in Project manager: 

BR, Souhaib

To give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.

1 reply

Souhaib MAZHOUDBest answer
ST Technical Moderator
August 5, 2026

Hello ​@STuser2 

You should uncheck the “Do not generate function call” under advanced settings in Project manager: 

BR, Souhaib

To give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.