Skip to main content
Associate
June 2, 2025
Solved

stm32cubemx usart code not generated for STM32F207ZGTx

  • June 2, 2025
  • 2 replies
  • 339 views

The code for USART6 is not generated by STM32CubeMX tool for STM32F207ZGT6 MCU. I am trying to generate the baremetal code.

 

I have created a default IOC file for this MCU, and configured USART6 as Ascychronous mode. After this I wanted to configure the clock for the USART, but the clock configuration is not visible for USART6.

I tried generating the code after this, this step was successful. However, I don't find any code related to USART eg., initialization, RX/TX functions. 

 

I have tried configuring the USART6 for Synchronous mode, this also doesn't generated the USART code.

I have aswell tried the other USART/UART interfaces for Asynchronous and other modes, the result is the same. Clock configuration not visible, and the related code is not generated.

 

Can you please let me know if any additional configuration to be done in addition.

 

Best answer by mƎALLEm

Hello,

Check if what you are looking for is generated in stm32f2xx_hal_msp.c 

Otherwise attach your ioc file so we can check.

2 replies

TDK
Super User
June 2, 2025

Please include the IOC file you are having issues with. Ensure your software is up to date.

"If you feel a post has answered your question, please click ""Accept as Solution""."
mƎALLEm
mƎALLEmBest answer
Technical Moderator
June 2, 2025

Hello,

Check if what you are looking for is generated in stm32f2xx_hal_msp.c 

Otherwise attach your ioc file so we can check.

"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."