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

nRF52840 BLE_APP_BLINKY app, unable to compilation error

Hi,

I am trying to test ble_app_blinky app. I am using VS Code for the development IDE and while compiling the application using MAKE I am running into Cannot file Source folder and Cannot find Include folder for various files.

My system is Windows 10 and I am using nRFSDK 16.0.0

I am attaching the screenshot for your reference. Please have a look and help me out.

Thank you!

error.jpeg

  • Hi,

    These errors are due to the makefile not finding the mentioned files.
    The makefile from the Blinkey project is using relative paths, and I suspect that your sparkfun_mini branch might be causing this fault, even though I do not immediately see why this should be the case.
    Have you made any other modifications to the Ble Blinkey SDK example, other than creating the sparkfun_mini directory branch?
    Especially, have you made any modifications to the make file itself? If you have, it would be of great help for the debugging if you could post it here.

    Could you attempt to compile the Blinkey project from the pca10056 path, and let me know if you receive any errors in doing so?

    Best regards,
    Karl

  • Hi Carl,

    Yes, you are right, these errors are due to the makefile not finding the mentioed files. But I verified that the all the files are present on my disk and they are at the exact location, if I translate the relative path to absolute path (not in the makefile just on the command line to verify)

    Yes, even I am surprised to see those errors becaue I have not made any change in the make file other than these two: highlighed in the red block.

    Have you made any other modifications to the Ble Blinkey SDK example, other than creating the sparkfun_mini directory branch?
    No I didn't make any changes.

    Also this is the make result for pca10056:

    Let me know if you any addintional information.

    --

    Thanks and Regards,

    Hardik

  • One more change, I forgot to mention is this one. Added ifdef for sparkfun board. If this helps.

    --

    Thanks & Regards,

    Hardik

  • Hello Hardik,

    Could you shorten your path lengths, and give this another try?
    Windows 10 has a max path length of 260 characters, which just might cause some problems here.
    Please shorten your path lengths, give this another try, then get back to me with the results.

    If it does not work, do you think you could share the entire project code?
    It would be beneficial for me to see the whole code, in order to properly debug.

    Best regards,
    Karl

  • Hello Karl,

    Yes, path length was the issue. I just moved SDK to downloads folder to shorten the path length and it worked.

    Thanks a lot!

    --

    Thanks & Regards,

    Hardik

Related