This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

OTA successfully reset

     I am using nrf52832 based on SDK14.2 development. I used the air upgrade method in the routine "buttonless dfu". After the online upgrade is successful, nrf52832 will be automatically reset, because I need to do some processing after the air upgrade is successful, so I need to When nrf52832 is reset, it is judged whether it is a successful upgrade. How do I need to judge? Thank you!
  • Hi,

    Do you need to figure out from the DFU controller, whether the DFU was successful? For that you can use the Device Information Service, which may contain information about the device such as manufacturer name, hardware and firmware versions, etc.

    Or do you need to figure this out on the device itself? (I.e. for automatically doing post-update processing on the first start-up of a new application.) You could for instance store the current application version number in flash and check that version number on startup. If it is older than the current application then you know that there has been an update and you can do the processing then write the new version number to flash.

    Regards,
    Terje

Related