light control mesh example not working

rahul.vchandran@hotmail.com gravatar image

asked 2017-09-21 12:50:38 +0100

I'm trying to set up a ble mesh with 3 servers and 1 client on an nrf52 PCA10040 dev kit. Upon debugging, I'm getting an error that says: '64, APP_ERROR: C:\Users\sesa463145\Desktop\BLE\nrf5_SDK_for_Mesh_v0.9.2-Alpha\examples\light_control\client\src\main.c:301 code 15 code 15'

Also the button commands are not getting published on the servers. What should I do to rectify this issue?

edit retag flag offensive close delete report spam

1 answer

Sort by » oldest newest most voted
joh2 gravatar image

answered 2017-09-22 16:23:14 +0100


In nrf5_SDK_for_Mesh_v0.9.2-Alpha\examples\light_control\client\src\main.c:301, there is a call to dsm_devkey_add(). Error code 15 corresponds to NRF_ERROR_FORBIDDEN, which according to the API documentation means "The given device key has already been added before". Are you trying to provision an allready provisioned device?

Best regards,


edit flag offensive delete publish link more



Thank you for the prompt response. I had erased the previous build and reset the boards before trying to provision it again since the error shows up invariably on every attempt made. Also I'd like to know if it is mandatory for there to be 3 servers and one client or is it possible to provision with just 2 servers/1 server and a client for the same example?

Sincerely Rahul

rahul ( 2017-09-25 08:28:23 +0100 )editconvert to answer

I also get this error while building: Compiling ‘serial_bearer.c’

rahul ( 2017-09-25 08:30:58 +0100 )editconvert to answer

It also generates this while trying to debug: 'app_ram_base should be adjusted to 0x200019C0'. when button entry is tried, it says "not in RUNNING state"

rahul ( 2017-09-25 09:28:56 +0100 )editconvert to answer

You can change the server/client count using the defined SERVER_COUNT and CLIENT_COUNT in main.c of the light_control_client. The debug message about app_ram_base is only informal. You can change the start address of the app RAM by changing the setting "Section Placement Macros" in SES. What error do you get when compiling "serial_bearer.c"?

Jørgen Holmefjord ( 2017-09-25 16:52:27 +0100 )editconvert to answer

When I compile serial_bearer.c , it says 'variably modified 'static_assert' at file scope' against the following line: NRF_MESH_STATIC_ASSERT(offsetof(serial_packet_t, length) == 0);

Also I keep getting 'not in RUNNING state' every time I do a button press on the nrf52 devkit. what should I do?

rahul ( 2017-09-26 06:16:21 +0100 )editconvert to answer

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer. Do not ask a new question or reply to an answer here.

[hide preview]

Question Tools


Asked: 2017-09-21 12:50:38 +0100

Seen: 122 times

Last updated: sep. 22