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
  • Hi,

    Are you able to build any other examples?

    How are you accessing the project files?

    Did you change the file structure after unzipping? The path to the different header files will be changed and needs to be updated in that case.

    Best regards,

    Øyvind

  • 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

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