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

Example Project building error in Keil.

I am trying to run one of the examples in the SDK (...\nRF5_SDK_11.0.0_89a8197\examples\peripheral\blinky\pca10028\s130\arm4) with the name "blinky_s130_pca10028" but its not building and give some errors once i click on build. I am trying to load the hex file generated after this building this project using Keil.

Kindly help in this regard.

Parents
  • The SDK should have an include folder that contains the header file. For example on one of my older keil based projects I have the following include path:

    ......\Nordic FW and SDK\nRF51 SDK_v5.2.0.39364\Nordic\nrf51822\Include\gcc

    Which picks up that header file for me. So you should be able to locate the file in your project and add the appropriate path. Now that I look at that, the gcc folder might not be the correct one as I think Keil uses ARMCC, but its working so no harm no foul.

  • You just need to add a path to the file in the project. It looks like you are using Keil, so to do that you click the "Options for target" button on the toolbar (its hard to describe but it looks like a magic wand and a diagram). Then select the "C/C++" tab. About 2/3 of the way down the window will be a text box with "Include paths", click the button to the right of the text box, this will pop up an editor that will allow you to add the path.

Reply
  • You just need to add a path to the file in the project. It looks like you are using Keil, so to do that you click the "Options for target" button on the toolbar (its hard to describe but it looks like a magic wand and a diagram). Then select the "C/C++" tab. About 2/3 of the way down the window will be a text box with "Include paths", click the button to the right of the text box, this will pop up an editor that will allow you to add the path.

Children
No Data
Related