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

HOW TO RESOLVE THESE ERRORS

Hi,

I am using nrf51822  in my project.So we are using keil5 u vision project and sdk 12.3  version so here the problem is i have imported the example program from the sdk version 12.3 but i am getting these errors ..it is showing cant able to open the header file ..so plz can you tell me how to resolve these error and also when i have tried to open the function it is showing like this below i have attached the file  and errors.

Rebuild target 'nrf51422_xxac'
assembling arm_startup_nrf51.s...
compiling main.c...
..\..\..\..\..\..\components\drivers_nrf\hal\nrf51.h(119): error: #5: cannot open source input file "core_cm0.h": No such file or directory
#include "core_cm0.h" /*!< Cortex-M0 processor and core peripherals */
..\..\..\main.c: 0 warnings, 1 error
compiling system_nrf51.c...
..\..\..\..\..\..\components\drivers_nrf\hal\nrf51.h(119): error: #5: cannot open source input file "core_cm0.h": No such file or directory
#include "core_cm0.h" /*!< Cortex-M0 processor and core peripherals */
..\..\..\..\..\..\components\toolchain\system_nrf51.c: 0 warnings, 1 error
compiling nrf_delay.c...
..\..\..\..\..\..\components\drivers_nrf\hal\nrf51.h(119): error: #5: cannot open source input file "core_cm0.h": No such file or directory
#include "core_cm0.h" /*!< Cortex-M0 processor and core peripherals */
..\..\..\..\..\..\components\drivers_nrf\hal\nrf_delay.c: 0 warnings, 1 error
".\_build\nrf51422_xxac.axf" - 3 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed: 00:00:02

Related