I'm using nRF52, SDK 17.1.0 on custom hardware.
I am trying to add bonding to the bootloader. The hardware appears to reboot and immediately restart the application code instead of going into bootloader mode.
I have followed section five of this post:
I'm able to get the bootloader,settings.hex, application code and soft device installed on our hardware.
Our application has a command characteristic. One of the commands we send to our device is to enter the bootloader mode. It does this with the following code:
(this code is a bit abridged as the error handling is not shown). This works when not using the bonded bootloader.
I think the bonded bootloader is not working because there is no explicit sharing of the bonding information (e.g. no call to nrf_dfu_set_peer_data()).
The problem I'm having is trying to add the DFU bonding code (e.g. ble_dfu_bonding.c) to the project. I consistently get errors of unknown types:
I have added the following directories to my project include path:
with no luck.
How do I get this functionality included so I can share the peer data?
Thanks.