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

How to copy the light_switch demos external to SDK?

I am having difficulty copying the light_switch client and server demos outside of the SDK, what is the general procedure? I have manually deleted and re-inserted the files and cleaned up some of the project definition paths but this is not working, I have spent a lot of effort doing this and have not been successful.

We are using 'nrf5_SDK_for_Mesh_v4.2.0 ' for the 'nRF52832' on the 'light_switch\client' & 'light_switch\server' demos, are these demos possible to duplicate outside of the SDK?

Parents
  • Hi,

     I was never able to get this to work, I have put a lot of effort into this without success exercising and exploring all of the referenced suggestions.

    I think this comes to porting the CMakeLists.txt; how do you port a project externally from the SDK? I am available for whatever questions or help may be needed, let us know when you can! :)

  • Hi,

    How did you change the pathing? I assume you are using Segger Embedded Studio?

    After opening your project in SES, go to the left panel -> Right-Click on your project and click "Options..." -> In the upper-left dropdown, choose "Common" -> Under "Code", click "Preprocessor" -> User Include Directories. Here you need to change everything so the pathing is pointing to your SDKs.

  • Yes, I had tried manually updating the preprocessor includes as you reference, this didn't work

    ... I got it! I followed the following procedure -


    1. Copy my "/nRF5_SDK_16.0.0" to "/nRF5_SDK_16.0.0_98a08e2"

    2. Make SDK_ROOT navigate there now
        SDK_LOC:    C:\Sw\Nordic\SDK\nRF5_SDK_16.0.0
        SDK_ROOT:  C:\Sw\Nordic\SDK\A\B\C\D
        
    3. Manually copy all source files listed into project

    4. Update include directories
        Code->Preproc->User Include Dirs manual listing (cut and paste a WHOLE bunch!)

    What... on review this comes from not porting CMakeLists.txt, is this correct? What is the general procedure then to reproduce this copy-paste & use for your demo applications? This was surprising, I did not expect this to take so long!

    Let me know when available, looking forward to closing this one for use later

Reply
  • Yes, I had tried manually updating the preprocessor includes as you reference, this didn't work

    ... I got it! I followed the following procedure -


    1. Copy my "/nRF5_SDK_16.0.0" to "/nRF5_SDK_16.0.0_98a08e2"

    2. Make SDK_ROOT navigate there now
        SDK_LOC:    C:\Sw\Nordic\SDK\nRF5_SDK_16.0.0
        SDK_ROOT:  C:\Sw\Nordic\SDK\A\B\C\D
        
    3. Manually copy all source files listed into project

    4. Update include directories
        Code->Preproc->User Include Dirs manual listing (cut and paste a WHOLE bunch!)

    What... on review this comes from not porting CMakeLists.txt, is this correct? What is the general procedure then to reproduce this copy-paste & use for your demo applications? This was surprising, I did not expect this to take so long!

    Let me know when available, looking forward to closing this one for use later

Children
No Data
Related