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

nRF Mesh v2.2.0 light switch provisioner hex file generating with more size(build with cmake) than the existing hex files in bin folder.

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)


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.




Related