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

nrf52832 OTA firmware update

hi, i just ask about nrf52832. im using it with keil compiler and trying to divide the memory section (it that will be update and not) but i have hard time to do with keil compiler

i want to update the firmware in several weeks, after load on the nrf52.

the point is that is it possible to OTA update partly?? not the all of them and if it is possible, how can i do that.

thanks,

  • Hi, Could you explain a little bit more on what you want to update and what you don't want to ? You can have a look at this layout, you can put the data you don't want to update in Application Data area.

  • i will load a program in app area. and i just want to update part(called #1) of the program to #2, #3 and so on. not two or more app file. i mean that i will update part of it. so can i divide the the program hex file (#1,#2... / rest of them(not #1, #2..))

    thanks,

  • I'm sorry but it's still not very clear for me.

    Are you saying you only want to update part of the firmware code, leaving other part un-touched. Say first 1kB of the code, and keep the rest 30kB for example un-modified ?

    It's not possible to do that with our current DFU bootloader. But it should be straight forward to modify the bootloader to do that. There is a small tricky part that for a page that only partly updated you would need to backup the part that should be kept, erase the page, write the new data in and then write the backup data back.

    If you don't want to modify the bootloader, I would suggest to simply update the whole thing, meaning you only modify the first 1kB but in the new image you update the whole 31kB.

Related