Skip to main content
Associate III
August 8, 2025
Solved

Wrong stm32h7xx_hal.h include file in generated STM32H7R3 project

  • August 8, 2025
  • 1 reply
  • 488 views

We develop firmware on STM32H7R3L8HxH.

STM32CubeIDE version is 1.19.0

MxCube version is 6.15.0

The problem is that code generator creates additional wrong include file for "regular" H7 MCUs:

#include "stm32h7rsxx_hal.h"
#include "stm32h7xx_hal.h"

As this second file does not exist, compiler gives error:

fatal error: stm32h7xx_hal.h: No such file or directory

In application project it appears in main.h

In bootloader project the issue does not appear, but there is a blank line instead.

In extmemloader project it appears in extmemloader_init.h

 

Had same problem already STM32CubeIDE v1.18 and we have been manually fixing it (by removing bad include) so far, but it appears that it won't get fixed by itself so I report the issue now.

Best answer by STTwo-32

Using your .ioc file, i'm able to reproduce it. I've escalated for correction on the future (under internal ticket number 215537). Thank you so much for reporting this behavior.

Best Regards.

STTwo-32

 

1 reply

STTwo-32
Technical Moderator
August 8, 2025

Hello @mkrk 

I'm not able to reproduce this on my side (using the STM32CubeIDE version is 1.19.0 and the STM32CubeMX version is 6.15.0). Could you please send your .ioc file for more details.

Best Regards.

STTwo-32 

mkrkAuthor
Associate III
August 8, 2025

Hello @STTwo-32 , here is an obfuscated version of it. I tried creating new project out of it and see the same problem.

STTwo-32
STTwo-32Best answer
Technical Moderator
August 8, 2025

Using your .ioc file, i'm able to reproduce it. I've escalated for correction on the future (under internal ticket number 215537). Thank you so much for reporting this behavior.

Best Regards.

STTwo-32