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

nrf51-ble-app-lbs

i downloaded source code from github.com/.../nrf51-ble-app-lbs. and i am getting error like C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_DeviceFamilyPack\8.2.0\Device\Include\nrf51.h(119): error: #5: cannot open source input file "core_cm0.h": No such file or directory. can you tell me how to solve this error?

Parents
  • if you open the project in keil go to -> pack installer. Check if u have installed all the packs or if you can update them. you need to download all the device specific and generic packs for you're Nordic chip. if you have installed them all. go to the tap examples. Copy the example you want to use for you're project.

    Check if you can compile them now without errors.

  • The compiler can't find the right source en header files. Can you check if you have all the necessary packs in your project? Go to the manage run-time environment. In the error message you can read all the components that are missing like "nrf_drv_common, and nrf_drv_gpiote". Select all the necessary components for your project until you are error free. If you add them check if the components got green, otherwise you can see at the validation output which other files are necessary for the component to work properly. I hope you get the project running like this.

    Can you otherwise check my project if that one will work http://we.tl/YgKO2IZCr2

Reply
  • The compiler can't find the right source en header files. Can you check if you have all the necessary packs in your project? Go to the manage run-time environment. In the error message you can read all the components that are missing like "nrf_drv_common, and nrf_drv_gpiote". Select all the necessary components for your project until you are error free. If you add them check if the components got green, otherwise you can see at the validation output which other files are necessary for the component to work properly. I hope you get the project running like this.

    Can you otherwise check my project if that one will work http://we.tl/YgKO2IZCr2

Children
No Data
Related