cancel
Showing results for 
Search instead for 
Did you mean: 

Wrong stm32h7xx_hal.h include file in generated STM32H7R3 project

mkrk
Associate III

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.

1 ACCEPTED SOLUTION

Accepted Solutions

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

 

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.

View solution in original post

4 REPLIES 4
STTwo-32
ST Employee

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 

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 @STTwo-32 , here is an obfuscated version of it. I tried creating new project out of it and see the same problem.

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

 

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.

Thanks @STTwo-32 !