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

Atomicity of flash writes on nRF52832?

What's the atomicity of flash writes on the nRF52832? If we crash while writing, say, 4 bytes, do we have a guarantee that either every byte or no bytes have been written?

Parents
  • I am sorry, I deleted my initial reply and seems like due to the bug all the others have been deleted. I will report this internally.

    About your question. I stand corrected. I contacted the actual designer of NVMC and he says that if a flash write is interrupted in between we cannot guarantee which bits are written. It could be anything between 0 and 32 bits.

    I have created an internal ticket as the developer want to contact the technology owner to find it there is anyway to know which bits are written. He will come back to me when he has more info and until which time, we need to wait. 

     

Reply
  • I am sorry, I deleted my initial reply and seems like due to the bug all the others have been deleted. I will report this internally.

    About your question. I stand corrected. I contacted the actual designer of NVMC and he says that if a flash write is interrupted in between we cannot guarantee which bits are written. It could be anything between 0 and 32 bits.

    I have created an internal ticket as the developer want to contact the technology owner to find it there is anyway to know which bits are written. He will come back to me when he has more info and until which time, we need to wait. 

     

Children
Related