2021-05-04 03:46 PM
What's with this warning, and how do I avoid it (apart from commenting it out). Is there something that I'm doing in error in STM32CubeMX?
I'm using Keil uVision V5.33.0.0 with an STM32F7 processor.
Solved! Go to Solution.
2021-05-05 03:53 AM
It's exactly what it says: At that point, you already had a definition of "USE_HAL_DRIVER" - and you've re-defined it as something different.
The build output should also tell you where the previous definition was.
So look at the two definitions, and decide which one is the one you want.
2021-05-05 03:53 AM
It's exactly what it says: At that point, you already had a definition of "USE_HAL_DRIVER" - and you've re-defined it as something different.
The build output should also tell you where the previous definition was.
So look at the two definitions, and decide which one is the one you want.
2021-05-05 08:24 AM
I guess that makes sense, but the problem is that apparently STM32CubeMX dumps it into the project options when the code gets generated. The only other place it occurs is in Pre_Include_Global.h.
I'll just rip it out of the project options and go from there.
Thanks
2021-05-07 02:50 AM
So looks like a bug in Cube's Keil project generation, then.
Perhaps @mattias norlander could comment? Or suggest someone on the appropriate team?
Do you get the same when generating for the CubeIDE ?
What is the actual definition in Pre_Include_Global.h ?
2021-05-12 03:37 AM
Hi @BLill.2 ,
Besides to what was suggested by @Andrew Neil and in order to go ahead with the investigation of this issue, it will be helpful to share your .ioc file in order to reproduce the problem easily.
I add @Khouloud ZEMMELI on the loop to follow-up this case.
-Amel
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.
2021-05-12 03:54 AM
Yes Amel I confirm, it'll be helpful to use @BLill.2's ioc to check more his case.
Khouloud
2021-11-08 03:54 AM
I have the same problem with Keil uVision V5.36.0.0, STM32H7 processor (with package DFP v 2.8.0) and STM32CubeMX 6.3.0.
I don't see the warning if I downgrade DFP back to version 2.7.0.
Is there any news?
Do you need STCubeGenerated.ioc file?
2021-11-08 10:02 AM
@vix - "Do you need STCubeGenerated.ioc file?"
as @BLill.2 seems to have gone away without providing her/his IOC file, and @Khouloud ZEMMELI said it would be helpful in diagnosing the issue, I guess yours would be helpful instead?
2021-11-08 11:00 PM