adding buttonless dfu service to heart rate service example application

Hello Everyone,

   I used the HRS application example for LESC secure communication and added the OTA to the HRS application. After adding that, the device restarts. I debugged, and the following error is arising.

<error> app: ERROR 8 [NRF_ERROR_INVALID_STATE] at C:\nRF_SDK\nRF5_SDK_17.1.0_ddde560\nRF5_SDK_17.1.0_ddde560\examples\ble_peripheral\ble_app_hrs_LESC_BEACON_V2\main.c:598
PC at: 0x0002CDA3
<error> app: End of error report

this error is arising when this function is called in the service_init() function.

 err_code = ble_dfu_buttonless_init(&dfus_init);
APP_ERROR_CHECK(err_code); 

kindly help me on this issue. I have used nrf_sdk_17.1.0 and Segger embedded studio v5.68. I followed the tutorials https://novelbits.io/nrf52-ota-dfu-ble-part-4/ and nordic official tutorial.

Best Regards,

Srinivasa

Parents Reply
  • Hi Vidar,

    I have been working with the HRS (Heart Rate Service) example without making any modifications. Initially, after flashing the example, everything worked fine. I was able to pair and bond the device successfully. However, after erasing the bond information from the phone and attempting to pair and bond again, it didn’t work. Once I enabled re-pairing, it worked as expected.

    Next, I added the buttonless DFU service to the HRS example and performed an OTA update. The file was transferred successfully from the mobile device to the nRF device, and the device restarted, began advertising, and allowed connection and bonding. However, after 2 seconds, the device disconnected.

    I deleted the bond information from the mobile device and tried reconnecting. The device connected and bonded successfully but disconnected again after 2 seconds. I then attempted to debug the issue, I got the above error. kindly let me know the solution.

    Regards,

    Srinivasa

Children
Related