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

Regarding custom profile creation in nRF52 stack.

Hello

I have created one custom profile using "ble_app_uart" project. Now I have an issue that I can't able to remove UART part of the code. If I remove the UART part of the code, the data from mobile is not come to the data handler(os_data_handler). I am using nRF5_SDK_11.0.0_89a8197 version sdk and nrf52832 board with pca10036, s132 soft device.

Here with I am attaching my code for your reference. Please help us to create custom profile.

Thanks & Regards, Murali.M

our_service.c our_service.h main.c msgs.c msgs.h ble_app_hrs - vincense_custom_profile.rar bearkpoint snapshot.PNG bearkpoint snapshot1.PNG

Parents
  • Hi Petter, First when I debug I can't able to set breakpoint on BLE_GATTS_EVT_WRITE, after changing the optimization settings to level 0 only I am able to set breakpoint. In debug the breakpoint reached to BLE_GATTS_EVT_WRITE and it is reached to on_write function also. But the break point in the line "p_our_service->data_handler(p_our_service, p_evt_write->data, p_evt_write->len);" is not reached. It reached the above that line "else if ( (p_evt_write->handle == p_our_service->char_value_handles.value_handle) && (p_our_service->data_handler != NULL) )"

    I don't know why it is not reaching the breakpoint.

    I have checked using watch point - Expressions the given value is present in Gatts_evt -Data(FF). I also attached the screenshots in my question. Please check it and let me know,what was wrong I did. Thanks & Regards, Murali M

Reply
  • Hi Petter, First when I debug I can't able to set breakpoint on BLE_GATTS_EVT_WRITE, after changing the optimization settings to level 0 only I am able to set breakpoint. In debug the breakpoint reached to BLE_GATTS_EVT_WRITE and it is reached to on_write function also. But the break point in the line "p_our_service->data_handler(p_our_service, p_evt_write->data, p_evt_write->len);" is not reached. It reached the above that line "else if ( (p_evt_write->handle == p_our_service->char_value_handles.value_handle) && (p_our_service->data_handler != NULL) )"

    I don't know why it is not reaching the breakpoint.

    I have checked using watch point - Expressions the given value is present in Gatts_evt -Data(FF). I also attached the screenshots in my question. Please check it and let me know,what was wrong I did. Thanks & Regards, Murali M

Children
No Data
Related