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

After flashing light switch provisioner . I started RTT viewer to see log I am getting the following error

<t: 0>, main.c, 561, ----- BLE Mesh Light Switch Provisioner Demo -----
<t: 0>, mesh_softdevice_init.c, 117, Initializing SoftDevice...
<t: 0>, mesh_softdevice_init.c, 75, Enabling BLE...
<t: 540>, app_error_weak.c, 95, Mesh assert at 0x00031E6A (:0)

Parents Reply Children
  • Thanks for your reply.

    I erased everything, before flashing.

    Yes I didn't change anything in the code, but instead of using existing hex file in bin folder.

    I build hex files using cmake.

    When I flashed existing light switch provisioner , server , client it's working fine .

    But the problem is I built hex files using cmake and using, then it's showing assertion.

    I am using nrf SDK for mesh v2.2.0.

    SOC nRF52832_xxAA

    Board PCA10040

    SOFT DEVICE s132 v6.0.0

    Above configuration used for building. Using cmake and ninja

     

  • Hi,

    Does that mean you follow the descriptions both in Building the mesh stack and examples and Building with CMake carefully?

    And you program both the mesh application (that you built) and the SoftDevice?

    Regards,
    Terje

  • Yes, I followed each and every step.

    I generated Hex files too.

    Below see the steps followed.

    after cmake -G Ninja ..

    -- SDK_ROOT=C:/BLE/SDK/nrf5_SDK_for_Mesh_v2.2.0_src/../nRF5_SDK_15.0.0_a53641a --- set with command line ARG
    -- PC-Lint executable not found. Linting disabled.
    -- SDK: nRF5_SDK_15.0.0_a53641a
    -- Platform: nrf52832_xxAA
    -- Arch: cortex-m4f
    -- SoftDevice: s132_6.0.0
    -- Board: pca10040

    after cmake -G Ninja -DTOOLCHAIN=gccarmemb -DPLATFORM=nrf52832_xxAA ..

    -- SDK_ROOT=C:/BLE/SDK/nrf5_SDK_for_Mesh_v2.2.0_src/../nRF5_SDK_15.0.0_a53641a --- set with command line ARG
    -- PC-Lint executable not found. Linting disabled.
    -- SDK: nRF5_SDK_15.0.0_a53641a
    -- Platform: nrf52832_xxAA
    -- Arch: cortex-m4f
    -- SoftDevice: s132_6.0.0
    -- Board: pca10040

    after ..\..\build>ninja flash_light_switch_provisioner_nrf52832_xxAA_s132_6.0.0

    it generate hex files in \SDK\nrf5_SDK_for_Mesh_v2.2.0_src\build\examples\light_switch\provisioner\light_switch_provisioner_nrf52832_xxAA_s132_6.0.0.hex for application 375 kb

    \SDK\nrf5_SDK_for_Mesh_v2.2.0_src\build\examples\light_switch\provisioner\light_switch_provisioner_nrf52832_xxAA_s132_6.0.0_merged.hex for merged application and soft device with size 782 kb

    but actual size of hex files in bin folder is
    examples\light_switch\provisioner\light_switch_provisioner_nrf52832_xxAA_s132_6.0.0.hex for application 266 kb.

    examples\light_switch\provisioner\light_switch_provisioner_nrf52832_xxAA_s132_6.0.0.hex for application 674 kb.


    existing hex files working fine.
    but build hex files are not working fine.
    its showing mesh assertion in RTT viewer.

    below is the error I am getting.

    <t: 0>, main.c, 561, ----- BLE Mesh Light Switch Provisioner Demo -----
    <t: 0>, mesh_softdevice_init.c, 117, Initializing SoftDevice...
    <t: 0>, mesh_softdevice_init.c, 75, Enabling BLE...
    <t: 540>, app_error_weak.c, 95, Mesh assert at 0x00031E6A (:0)
    not only for provisioner, same type of error for clent and server when I flashed hex file


    I erased everything in board. and flashed.

    -- Platform: nrf52832_xxAA

    -- Arch: cortex-m4f
    -- SoftDevice: s132_6.0.0
    -- Board: pca10040

    above specifications of the board using to flash.

    Thanks in advance.
    
    

  • I noticed that you created a new post with the issue above.

    We can close this thread for now, and continue the discussion the new post.

    Best regards,
    Joakim

Related