Skip to main content
Associate
July 2, 2026
Solved

MCU Package for STM32H7 code generation misses files, and project generation bug

  • July 2, 2026
  • 1 reply
  • 65 views

STM32CubeMX v6.17.0
STM32CubeIDE v2.1.1

With STM32Cube MCU Package for STM32H7 v1.12.1, STM32CubeMX does not copy USART files to Drivers project folder, when I deactivated BSP and activated one USART.

I had to import them manually from STM32Cube\Repository\STM32Cube_FW_H7_V1.12.1/Drivers/STM32H7xx_HAL_Driver in Src and Inc, respectively: stm32h7xx_hal_usart_ex.c, stm32h7xx_hal_usart.c; and stm32h7xx_hal_usart.h, stm32h7xx_hal_usart_ex.h.

(Even though I only want to use UART capabilities, so they are not imported to CM7 Drivers folder.)

Also, I reverted  MCU Package back to version v1.12.1, because, with MCU Package for STM32H7 v1.13.0, STM32CubeMX v6.17.0 did not create the dual core project structure correctly and so was not interpreted correctly by STM32CubeIDE v2.1.1. It didn't create the subproject files and were displayed like usual folders, while on creation, I explicitly used STM32CubeIDE project and on import used the new import for STM32CubeIDE v2

Best answer by Mahmoud Ben Romdhane

Hello ​@kurykon-grey9 

I generated the code with STM32CubeMX 6.18 and STM32H7 v1.13.0.

Stm32h7xx_hal_usart_ex.c, stm32h7xx_hal_usart.c; and stm32h7xx_hal_usart.h, stm32h7xx_hal_usart_ex.h

are well generated.

You need to set the Mode to Synchronous Master

I will be waiting for your feedback.

Thanks.

Mahmoud

 

1 reply

ST Technical Moderator
July 3, 2026

Hello ​@kurykon-grey9 

For more investigation, could you please provide your Ioc.File.

Thanks.

Mahmoud

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.
Associate
July 4, 2026

Here it is

ST Technical Moderator
July 6, 2026

Hello ​@kurykon-grey9 

I generated the code with STM32CubeMX 6.18 and STM32H7 v1.13.0.

Stm32h7xx_hal_usart_ex.c, stm32h7xx_hal_usart.c; and stm32h7xx_hal_usart.h, stm32h7xx_hal_usart_ex.h

are well generated.

You need to set the Mode to Synchronous Master

I will be waiting for your feedback.

Thanks.

Mahmoud

 

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.