Hi, Im using uVision 5.12.0.0 and have a STM32F291-DISCO development board (the one with a ftf screen)
I've downloaded the Discovery firmware version 1.01 and a few of the peripheral example projects won't compile. I get the same error >> .\..\..\..\..\Libraries\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h(463): error: #5: cannot open source input file "core_cm4.h": No such file or directory
I've googled this error and it has something to do with the project being for the older uVision version 4 or something. How can I fix this please?
Please don't be to concise on the instructions (I'm new to this)
Thanks
Make sure you have the include paths specified properly, ie where, and what order, the compiler searches for an #include
Options -> C/C++ -> Include Paths (uv4 at least)
C:\Keil\ARM\Examples\ST\STM32F429I-Discovery_FW_V1.0.1\Libraries\CMSIS\Include
or wherever you installed it.
STM32F429I-Discovery_FW_V1.0.1\Libraries\CMSIS\Include\core_cm4.h
Thanks for the reply. Yes I figured it was something to do with the include path but gave when I tried the following. I opened a default project that would compile and copied the include paths and pasted it in the paths of the project that doesn't compile but I got the same error.
Paths are relative to the project directory, so must be copied at same depth. Alternatively use the navigate tool and go back up the tree, and down the library/cmsis tree to the location of the file.
Thanks, that sorted it. It was missing ..\..\..\Libraries\CMSIS\Include for some reason.