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

Trouble building example file ble_app_uart

Hi, I am unable to build this example in Keil Uvision5. I am getting following error:

"no source": Error: #5: cannot open source input file "......\main.c": No such file or directory. I had the same trouble with another example.

I have used the .zip files for SDK and I am using V10. I am just trying to build the example code and I haven't attached my nrf51 dk yet. I dont think that should make a difference?

Please help! Absolutely new with this technology!

Parents Reply
  • Alright I'm able to reproduce your error. This happens when the path from the project file to the main file changes, the easiest way to work around it is to unzip the SDK again. Make sure to use an unzip tool that supports long paths, I recommend 7-zip.

    If this does not work you can add the files by this method

    You need to add the include path, to do this for a .zip style architecture do the following:

    • Click Options for Project(1)

    • Select the C/C++ header(2)

    • Click ... (3)

    image description

    • Add the path to the header you want to include

    • Click OK

    Hopefully this works for you, best regards,

    Øyvind

Children
No Data
Related