I am running an application with norma NUS Service with bonding.
When I want to make a DFU I start to write a token into the flash with fds and then do a soft reset. After the soft reset the token is read out and resetted.
Now the DFU Service is advertised. This works all fine. But now I want to connect with the same smart phone and start the DFU but it gives me an error
peer_manager_handler: Peer data updated failed: peer_id: 0, data_id: Service changed pending flag, action: Update, error: NRF_ERROR_INVALID_FLAGS
case PM_EVT_PEER_DATA_UPDATE_FAILED:
{
// Assert.
APP_ERROR_CHECK(p_evt->params.peer_data_update_failed.error);
} break;
I mean I've could uncomment the check. But I guess it means something.
Again the bootloader is without bonding but the APP is with bonding. The same application runs just fine the DFU when I do not use bonding. at all.
System: nRF52840
SDK: 15.3
Compiler: GCC ARM Embedded 7.2018
Thanks in advance,
Constantin