Hi,
I am currently using "mgmt_callback_register() " to subscribe to MGMT_EVT_OP_IMG_MGMT_DFU_CHUNK event to prevent firmware update in some cases by returning MGMT_ERR_EACCESSDENIED.
Hi,
I am currently using "mgmt_callback_register() " to subscribe to MGMT_EVT_OP_IMG_MGMT_DFU_CHUNK event to prevent firmware update in some cases by returning MGMT_ERR_EACCESSDENIED.
Hi,
For us to help you with this in the best possible way, please list the following information:
Regards,
Sigurd Hellesvik
Hi,
For us to help you with this in the best possible way, please list the following information:
Regards,
Sigurd Hellesvik
Hi,
SoC: nrf52840
Environment: nRF Connect SDK v2.4.1
I use custom board with custom software.
Regards,
Simon
I noticed that if you want to revert to the previous version
Which command is used to do this?
Just normal dfu process used from nRF Connect or Device Manager app and with fw image which was loaded before current one
So when you say "revert", you mean that you do normal DFU, but decrease the version of the app?
I am asking, since MCUboot has a concept named revert also. When an image is tagget as "test", it becomes automatically tagged "revert" after the swap, so it will go back if it was not confirmed before a reset.
Thanks for the information. I wasn't aware of the revert functionality. Actually what I want to ask is how the user can accept or reject the firmware upgrade on the device (via button or it is done automatically based on the device status). Is there any preferred way to do this? Is registering to MGMT_EVT_OP_IMG_MGMT_DFU_CHUNK event correct way to reject dfu or is there any other way to do it even before actual image transfer has been started?