AnsweredAssumed Answered

Flash FlexNVM reading problems

Question asked by lohrsistemas on Jun 20, 2018
Latest reply on Jul 12, 2018 by Daniel Martynek

Hello,

 

I'm using the FlexNVM memory from 0x10000000 to 0x10007FFF (32kB) to save data in the run program. When I fill all the memory I erase and log again, so in the routine I search for the next free address (0xFF) and write what I need.

 

In my routine to look for the next free address, where I read each address from the memory, some address I can't read, it goes to a default handler and WDT resets. The solution is erase all the memory, so this problem doesn't happen anymore.

 

But my question is: is necessary to erase this region of memory before I first use? This problem is random, only in some chips it happens.

Outcomes