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

nRF52840 mesh SDK coexistence

Hi,

I have working firmware for nRF52832 dev kit based on mesh coexistence examples (Mesh SDK 2.2.0 + nRF5_SDK_15.0.0). I'm trying to port the same firmware on nRF52840 dev kit but there are no SDK coexistence examples provided for nRF52840 so I modified ble peripheral example from nRF5_SDK_15.0.0. If I don't initialize mesh everything else works fine, but I'm getting "ASSERTION FAILED at :0" when mesh stack is being initialized, in function mesh_config_backend_init(), line "NRF_MESH_ASSERT(p_entries != NULL);".

Any idea what could be causing this? Are there any SDK coexistence examples for nRF52840?

  • Which optimization level are you currently running at?

    Also, what debugging level are you using?

  • Optimization level None, debugging level 3

  • Did it work to modify the 52832 coexistence example to work on the 52840? Which flash & ram settings did you use for the 52840 mesh + ble peripheral app template example?

  • Did not yet finish that, got stuck on something else. I'll do it in the next few days and report back.

    I used:

    FLASH_PH_START=0x0

    FLASH_PH_SIZE=0x100000

    RAM_PH_START=0x20000000

    RAM_PH_SIZE=0x40000

    FLASH_START=0x26000

    FLASH_SIZE=0xda000

    RAM_START=0x20002a98

    RAM_SIZE=0x3d568

    But I tried different settings also, didn't seem to change anything.

  • I found the issue, flash_placement.xml file is different in mesh SDK examples, it has an extra line:


    So when you use ble_peripheral example and add mesh functionality to it, flash_placement.xml file should be modified also.

    This solved my issue, thanks for the help.

1 2 3