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

Parents
  • it is showing cant able to open the header file

    So think about what reasons could possibly cause that:

    • Does that file actually exist at all?
    • If it does exist, is it in a location where your project is expecting to find it?

    also when i have tried to open the function it is showing like this below

    The "Browse Information" is what Keil uses internally to find definitions so that you can use the "Go To Definition" feature.

    Unfortunately, the Browse Information is only created as part of a successful build - so you can't use the browsing features until after you have done a successful build!

    Since your build is failing, you cannot use the browsing features until you fix it.

Reply
  • it is showing cant able to open the header file

    So think about what reasons could possibly cause that:

    • Does that file actually exist at all?
    • If it does exist, is it in a location where your project is expecting to find it?

    also when i have tried to open the function it is showing like this below

    The "Browse Information" is what Keil uses internally to find definitions so that you can use the "Go To Definition" feature.

    Unfortunately, the Browse Information is only created as part of a successful build - so you can't use the browsing features until after you have done a successful build!

    Since your build is failing, you cannot use the browsing features until you fix it.

Children
No Data
Related