Using nRF52832 and nRF52840
nRF5 SKD 17.1.0
I have bonding running, and have bonded initially (first run with bonding enabled), and Buttonless DFU upgraded once (using a .zip file). It won’t repeat.
I erase and program the entire flash with a .hex file containing the debug bootloader (merged with settings page), S132 SoftDevice, and application built from Debug configuration.
Also I have “program same version” enabled, “program older versions” enabled too – just to make dev and test easier.
If this is run using the nRF52840 Dongle and the nRF Desktop tools I can run the DFU multiple times.
I read nSDK Version 17.0.2 peer_manager_handler.h and peer_manager_handler.c and discovered that these files recommend FOUR additional function calls for bonding/LESC support that are NOT in the Buttonless DFU Template App.
pm_handler_disconnect_on_sec_failure()
pm_handler_disconnect_on_insufficient_sec()
pm_handler_secure_on_connection()
pm_handler_secure_on_error()
I also saw the recommendation for pm_event _handler to include
case PM_EVT_CONN_SEC_CONFIG_REQ:
Which of these are needed?
By adding the case statement it appears to work, but are there things i am missing?
Because my primary interest is robustness – being bulletproof, what else can I do to make bonding can always work in a buttonless DFU environment?