I have used sofdevice v7.1.0 and nrf51 sdk 6.1.0 the ble_app_hrs project which has support of dfu is not discovering the dfu services. i have enabled the BLE_DFU_APP_SUPPORT flag , then also facing same issue.
I have used sofdevice v7.1.0 and nrf51 sdk 6.1.0 the ble_app_hrs project which has support of dfu is not discovering the dfu services. i have enabled the BLE_DFU_APP_SUPPORT flag , then also facing same issue.
i have attached the logfile. With BOOT button i haven't not done firmware update yet. logfile.txt
@kormal: From the log it seems that services discovery of DFUtag if not completed, a read request for handle 0x000E is not responded. This happens if the CCCD value has not been set. Usually when BLE_GATTS_EVT_SYS_ATTR_MISSING has not been handled properly.
I have attached in my answer my bootloader hex file and the ble_app_hrs_dfu. Could you try to test using the hex files ? (Note: make sure you erase the whole chip before you flash the new bootloader)
As you can find in the bootloader source code if BUTTON7 (Pin P0.07) is hold when reseting the chip, it will enter bootloader mode. Could you try that and update the firmware using your bootloader?
i have used ....\Nordic_SDK\nrf51_sdk_v6_1_0_b2ec2e6\nrf51822\Board\nrf6310\s110\ble_app_hrs project which has dfu support in it. the board i used is pca10001(changed the nrf6310 board code to pca10001board ). the ide i am using is eclipse with arm-none-eabi gcc. so i have include bootloader_util_gcc.c file for the start application. rest all is the same.
@komal: could you please try the hex files I provided ?
i tried with ur hex files. they are working properly i.e while 2nd tme firmware update they dont get disconnected. in my code i have handled the BLE_GATTS_EVT_SYS_ATTR_MISSING event properly but still facing the same issue.
Tried to enter bootloader with the help of BUTTON. yes, can update the firmware succefully 2nd tme also with BUTTON, as when i hold the BUTTON while resetting the chip, it ernters into bootloader mode and the further firware update takes place successfully.
But BUTTONLESS i cant update the firmware 2nd tme, as per the functionality provided by your hex files.
Where am i going wrong?