2023-11-08 09:19 AM
When I tried to compile a new project using the latest firmware lib function (in keil MDK-ARM uVision), I got these warnings:
whether compiling my own project or the template project.
It seems like stm32f4xx.h has a lot of incompatible redefinitions? How can I fix this?
Solved! Go to Solution.
2023-11-08 10:40 AM
After review it, I know that in v1.8.1 stm32f4xx.h there is only one redefinition like this. So I delete the below section.
2023-11-08 09:25 AM
Yes, you're pulling content from two different include files. Perhaps you created with the Wizard?
Need to look very carefully at what Keil is pulling in vs what's in the ST libraries. Particularly CMSIS
ST's old SPL should have example MDK projects that should be more usable, and clone-able. With new MDK versions they'll want to use the version 6.xx compiler. most of the examples will expect 5.xx
2023-11-08 09:51 AM
No I think the redefinitions only happened in stm32f4xx.h itself... like the second picture above.
2023-11-08 10:40 AM
After review it, I know that in v1.8.1 stm32f4xx.h there is only one redefinition like this. So I delete the below section.