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?
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?
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.
Thanks Aryan. This is important information about the NVMC, please consider updating the nRF52 datasheet with this detail.
Thanks Aryan. This is important information about the NVMC, please consider updating the nRF52 datasheet with this detail.