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

Mesh SDK 3.0.0 timeslot_sd_event_handler

Hi,

I just completed the migration from mesh sdk 2.2.0 to 3.0.0.

After running the project it get stuck at line 422 of timeslot.c in function timeslot_sd_event_handler().

Can you help?

Parents Reply
  • Hi Lucio,

    I tried to migrated a project of my own to the new Mesh SDK v3.0.0 today as well.

    The new SDK has added a file called ble_softdevice_support.c, which has replaced the initialization phase of the softdevice handler, the BLE stack, the gap module and the connection parameters negotiaton module. The documentation for the module is here https://www.nordicsemi.com/en/DocLib/Content/SDK_Doc/Mesh_SDK/v3-0-0/group__BLE__SOFTDEVICE__SUPPORT#details

    The on_sd_evt handler function and observer are already called in ble_softdevice_support.c so I had to remove the following lines from my main.c:

    static void on_sd_evt(uint32_t sd_evt, void * p_context)
    {
        (void) nrf_mesh_on_sd_evt(sd_evt);
    }
    
    NRF_SDH_SOC_OBSERVER(mesh_observer, NRF_SDH_BLE_STACK_OBSERVER_PRIO, on_sd_evt, NULL);

    So on_sd_evt don't get called twice. Could you search in your project and see if you are registering the observer twice? This fixed a timeslot assert for me. It was unclear to me if you still have problems with the assert on sd_radio_request assert, but I hope this was more detailed than my first answer.

    Best Regards,

    Marjeris

Children
Related