Dear all,
I use the softDevice S110 V7.0 together with the SDK v6.1.I 've modified the dfu_dual_bank_ble bootloader. Instead of waiting for the button press, it would check the NRF_POWER->GPREGRET value to decide whether go to DFU mode or go to the existing application. In my application, it would accept one command from BLE and change the NRF_POWER->GPREGRET value and then reset the device to go to DFU mode.
So the expected process would be:
- Power on the device and get connected to my device with a host.
- Send the command to the device to change the NRF_POWER->GPREGRET and then reset.
- Since the device is reset, the host would experience a time-out event, and the BLE connection would be terminated.
- In the bootloader, since NRF_POWER->GPREGRET value is changed, it would go clear the NRF_POWER->GPREGRET value and go to DFU mode.
- In my host, I should be able to scan a device called DFUTag.
From step 1 to 4, there's no problem, but I cannot scan the DFUTag.
If I modified the bootloader code to be entering DFU mode regardless of the NRF_POWER->GPREGRET value, then I could scan the DFUTag.
Could anyone help me? Thanks