This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Problem in the code or compiler - Example: multirole_LESC

Hello everyone,

I started  with my program on the nrf52832. As a base I use the example multirole_LESC, because my focus is that 2 or more nrf52832 communicate with each other and every chip can be client or peripheral. The example works really well and the service which is used is the "Heartrate measurement".

What I tried is to remove the "Hearteat measurement" service and to add my own custom service to the SW. I did everything and also compiling work for my code. Currently I stucked on a point where I am not sure where the problem could be.

After jumping to the initialization of my custom service and at the step where I want to initialize my own charracterisitc the err_code variable reamains "empty". I used the following function.   

err_code = sd_ble_gatts_characteristic_add(p_service->service_handle, &char_md,
                                               &attr_char_value,
                                               &p_service->custom_value_handles);

The reason why the variable is "empty" could be, because the input signals char_md and attr_char_value are also empty.

I noticed after i jumped into the function custom_value_char_add() where the function above is my debugger is jumping over codes and is not declarating any variables. Now I am not sure if I have a problem with my code or with my compiler/debugger. Do you have any Ideas what could be the problem?At the screenshot you can see that I have only a few arrows I dont know what the exact meaning is, but in the example I have more arrows for each line! Also when I go over the variables they show all for example "err_code=" without any data.

I will be really thankfull for your support!

Parents Reply Children
No Data
Related