Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Erase the Previous program when secure OTA with Wrong Key?

Hi,

I am working on secure OTA in my custom Board which is having nrf51822.

I had done secure OTA successfully with SDK 12 but when i am trying to update the code using wrong private key at that time my old program erased by itself and my board start to emit "DFUTarg".

I want to behave my chip as per my old program when someone trying to update by wrong key. So, how can do it?