As we all know,the examples of NRF51 SDK 11 about DFU is all using Device manager,do you have some example about Peer manager? I am very looking forward to see the example about DFU by PM. Do you have one???
As we all know,the examples of NRF51 SDK 11 about DFU is all using Device manager,do you have some example about Peer manager? I am very looking forward to see the example about DFU by PM. Do you have one???
Hi Davy,
You can have a look at this example from my colleague Vidar:
nRF5_SDK_11.0.0_dfu_with_pm_310316.zip
There is a .diff file provided.
Please be noted that the bootloader itself doesn't use devicemanager or peermanager. But we need to prepare the bond information to forward to the bootloader from the application , this is where the modification needed.
@Eliot, I added dfu_app_handler_pm for use with the peer manager.
For 52 users: the interrupts disable routine does not disable all interrupts.
Fix:
/**@brief Function for disabling all interrupts before jumping from bootloader to application.
*/
static void interrupts_disable(void)
{
NVIC->ICER[0] = 0xffffffff;
#ifdef NRF52
NVIC->ICER[1] = 0xffffffff;
#endif
}
@Eliot, I added dfu_app_handler_pm for use with the peer manager.
For 52 users: the interrupts disable routine does not disable all interrupts.
Fix:
/**@brief Function for disabling all interrupts before jumping from bootloader to application.
*/
static void interrupts_disable(void)
{
NVIC->ICER[0] = 0xffffffff;
#ifdef NRF52
NVIC->ICER[1] = 0xffffffff;
#endif
}