Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

NRF52840 dongle light-switch example need help

Dear Nordic Team!

I am verifying my tools chain for nrf52840 Mesh  project development by mesh light-switch example. I have 4 PCA10056 and make them to 1 provisioner, 1 client and 2 serves and they works. I need more serve to text. I want make my other 4 pca10059 to serve. As you know, the example is for PCA10056. Is there some one have the serve project code for PCA10059, So that I can make a mesh system with more node and test my tools chain can program pca10059 correct.

Thanks,

 Dison 

Parents Reply Children
  • Hi Amanda Hsieh

    Thanks for your reply.

    I have read those link in your reply.

    Form the tutorial, I can set up the SEGGER for PCA10059, but I donot konw how to modify the GIO to match the PCA10059 board from PCA10056 project, Would you like give the detail about every thing I need modify the light-switch project.

    For the link to Bjor's post, I also try the project which download for the link.  As required, I unpack to the folder (\nrf5_SDK_for_Mesh_v4.0.0_src\examples\light_switch), and then open the project with Segger, but the project does not compile, I get the following error, please help me analyze which I am wrong and how I can correct them.

    Thanks,

    Dison

  • Hi Dison, 

    Di-sheng said:
    Would you like give the detail about every thing I need modify the light-switch project.

    Update the Preprocessor Definitions by removing BOARD_PCA10056 and inserting BOARD_PCA10059. The project will link the C:\Users\amhs\Downloads\nRF5_SDK_16.0.0_98a08e2\components\boards\pca10059.h. Please also see nRF52840 Dongle/Buttons and LEDs

    Di-sheng said:
    As required, I unpack to the folder (\nrf5_SDK_for_Mesh_v4.0.0_src\examples\light_switch),

     Did you follow Bjørn's instructions: Just unzip it in the light switch folder of the mesh SDK v3.1.0., change the board from BOARD_PCA10056 to BOARD_PCA10059 & inserting the code inside simple_hal.c?

    -Amanda H.

  • Hi Amanda 

    Yes, I followed Bjorn's instructions except for replacing mesh SDK3.1 with mesh SDK4.0. Is the mesh SDK4.0 not fully compatible with mesh SDK3.1, or are there specific requirements for this example project?

    I download nRF5_SDK_15.2.0_9412b96 for this project.

    About modify board from PCA10056 to PCA10059, Please see below 2 pictures:

    About the inserting the code inside simple_hal.c, I did the two block codes inserting to the simple_hal.c.

    Please see the picture below

    But  the project did not past the complie yet with a error :expected identifier or '(' before 'if'

    Is there something wrong I did?

    Please give me a link for download mesh SDK3.1 if you think the mesh SDK3.1 is improtent for the  project building. I did not find the mesh SDK3.1 download websit.

    Would you like give me some instruction for modify the light_switch_serve_nrf52840_xxaa_s140_7_0_1.em project for PCA10059 which is depend on the MESH SDK 4.0 and nRF5_SDK_16 so that I can get familiar with Mesh SDK4.0 and Segger development environment as soon as possible .

    Thanks,

    Dison

  • Hi, 

    Please follow Bjorn's instruction to use mesh SDK3.1 download from here

    If you want to use MESH SDK 4.0, I would suggest you refer to this tutorial to modify the project for BOARD_PCA10059. 

    -Amanda H.

Related