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

Release build fails for BLE mesh Light switch Proxy.

Hi,
I am using the BLE mesh 2.2.0 with nRF5_SDK_15.0.0_a53641a. I am using Segger embedded studio as toolchain.
I was able to compile and flash the default app code onto NRF52 DK without any issues.
If I do a "release build" or "ReleaseWithDebugInformation", code was getting compiled. Where as if I download into NRF52 board, it is failing with the message,
 , main.c,  310, ----- BLE Mesh Light Switch Proxy Server Demo -----
 , app_error_weak.c,   95, Mesh assert at 0x0002C756 (:0)

Please let me know, how to fix this.
Thanks,
Vijay

Parents Reply Children
  • Hi again.

    If you could try changing some code in nrf_mesh_section.h (line 101):

    Change:

    #define NRF_MESH_SECTION_FOR_EACH(section_name, data_type, variable)                                \
        for (data_type * variable = (data_type *) NRF_MESH_SECTION_START(section_name);                 \
            variable != (data_type *) NRF_MESH_SECTION_END(section_name);                               \
            variable++)

    to:

    #define NRF_MESH_SECTION_FOR_EACH(section_name, data_type, variable)                                \
        for (data_type * variable = (data_type *) NRF_MESH_SECTION_START(section_name);                 \
            (intptr_t)variable != (intptr_t) NRF_MESH_SECTION_END(section_name);                        \
            variable++)

    Read more about this in this thread.

    Best regards,
    Joakim

Related