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

Ble Mesh light_switch server - help debug Keil v5 project

Hi

Mesh SDK 0.10.0

I have created a keil v5 project to build the light_switch server app and it builds and links successfully. I can run it up to the following line in main()

ERROR_CHECK(nrf_mesh_node_config(&config_params));

However if I put a breakpoint at the next line ( the while loop ), I never reach there.

When I stop the application it is looping in the function sleep_forever()

I am going to continue to locate the problem, but if you are interested, you can download the project from the following dropbox location (strip out all the whitespaces )

https: // www . dropbox . com / s / ue0oiavvyripoo5/server.keilv5.zip?dl=0

Unzip it so that the file "light_switch_server_nrf52832_xxAA_s132_5_0_0.uvprojx" will be in your folder "examples\light_switch\server.keilv5"

Look forward to your feedback and thank you in advance

  • Found my error!

    I had not added the file 'prov_bearer_adv.c' and the linker did not complain because weak functions are provided in 'nrf_mesh_weak.c'

    So if you take the keil project and just add that file, on running you will see that it starts sending out unprovisioned becaons.

    I managed to add it to my mesh using the client app, however, one difference in behaviour is that I do not see it sending out Secure Network beacons which the node built with Segger does.

    That is another day, but at least there something you can play with in Keil

Related