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

Problem of Including custom driver folder in to a project.

I am using a nRF52840 dongle with nRFconnect v1.5.1 in SES. I have followed This link to do it. But got stuck at "Editing CMake List.txt" step.

Please tell if there is something wrong in doing that as shown in screenshot. Sorry for the bad hand writing.

So, please guide through including a custom driver folder into any project. If any other step also there, please share.

Thank you.

  • Hi Simon.

    Open Segger Embedded Studio from the Toolchain Manager (don't install it separately):

    Today strangely, I am not getting any error when I did Project-> Run CMake. And build was also successful.

    May be due to restart of the IDE, it works freshly. I don't know.

    Check if you see the file <user name>\ncs\v1.5.0\toolchain\opt\bin\python.exe
    • Open cmd in <user name>\ncs\v1.5.0\toolchain\opt\bin and run 

    I see the python.exe inside the path you have mentioned

    I get this up on running python from command prompt.

    Is this error consistent? If not, could you explain step-by-step how to reproduce it?

    Earlier I had made a copy of an example at the same location(ncs_1.5.1\v1.5.1\nrf\samples\bluetooth).

    And when I opened that example from File->open nrf SDK project, I used to get the error like

    Today also I get the same error.

    According to the link (to include custom library files) you shared earlier, I made a simple hello world project(Not in v1.5.1\zephyr\samples\basic ) just at  C:\My_Project\ and added a ".c" an ".h" file. And today I see no error.

    In this similar way I want to include an example from the CMSIS 5 DSP package which I have installed from Tools->Package Manager. I want to do this for "ncs_1.5.1\v1.5.1\nrf\samples\bluetooth\peripheral_lbsCopy" as I have shown in the screenshot. Error coming on opening this copy of project now.

    Also I would like to do the same for any example project from Zephyre folder(\v1.5.1\zephyr\samples\basic).

    Or is there any other way to use the package?

    Thank you..

  • The issue you're seeing may be due to a long file path (open SEGGER and check the error log at the bottom to confirm this) as mentioned under Known issues-->Build system

    Try to apply the described workarounds and see if the problem goes away. Either by placing the project in "C:\My_Project\", by placing "ncs_1.5.1" close to C:\, by naming the build folder "build" instead of build_nrf52840dongle_nrf52840, or by shortening the name "peripheral_lbsCopy".

Related