Other Parts Discussed in Thread: Z-STACK, CC2538
Are there any known issues relating to OSAL NV element write reliability? I am seeing an issue with data corruption (not just random bit flips) but it looks like the data ended up in the wrong physical location in flash. It looks like in osal_nv_write (osal_nv.c) that if the data for an element is changed it moves the location in physical memory with an update with the new value. It looks like a simple wear leveling algorithm. I suspect an issue there (possibly if there is a power cut in the middle of that function) .
This is a problem not easily reproduced (only one time in the lab). There are a number of failures in the field, but it is not reproducible very often. Still working on finding the right procedure to make the problem happen repeatedly in the lab.
The revision date for the OSAL_Nv.c is 2010-08-19, revision : 23457 from the file. Where can I find the source tree for this so I can see what has changed since the version we have?