Hi Ozzy,
I ran a test based on the soc_nrf_flash sample and cannot see the same issue. If I use fprotect to lock the area of flash that the sample will try to write, the sample will crash as expected. Without the lock, the sample would run to completion.
Could you please give more details about your setup? Or perhaps, give me a minimal project that can reproduce the issue?
Attached is my test project for my reference.
Hieu
Hi Ozzy,
I will try to answer while Hieu is away. I am not sure if I understood the question right but if you are asking about the maximum flash size that can be used with fprotect_area and its alignment restrictions then both start and length address needs be multiple of 4KB (0x1000) and the whole RRAM can be used to be protected (using address is 0x0 and length as 0x80000)
Hi Ozzy,
I will try to answer while Hieu is away. I am not sure if I understood the question right but if you are asking about the maximum flash size that can be used with fprotect_area and its alignment restrictions then both start and length address needs be multiple of 4KB (0x1000) and the whole RRAM can be used to be protected (using address is 0x0 and length as 0x80000)