This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Why isnt the Keil compiler finding core_cm0.h?

There are 10000 posts with this problem. I have imported someone else's project, and the file exists at Keil_v5\ARM\Packs\ARM\CMSIS\5.7.0\CMSIS\Core\Include exactly where it should be and the device packs are installed. Even reinstalled them a couple of times to no effect. I will say the link to the Keil site for the nrf51822 displayed in the Pack Installer is broken.

There MUST be something in the IDE that points the compiler to its installation directory but I cannot find it. Otherwise its very hard to fix an error that states

..\..\..\..\..\..\Include\nrf51.h(119): error:  #5: cannot open source input file "core_cm0.h": No such file or directory when that is clearly wrong. (the error is pointing to the nordic header file which has the core_cm0.h include in it.

One can add the path to the list of include directories, but this is a system file and that makes no sense to me. The compiler should know about itself, and how many other system features are needed?

Related