Other Parts Discussed in Thread: CC2540
Dear TI employees and forum members,
I am currently using cc2540 and smartRF05 to test the non volatile writing and reading, and the stack I am using is BLE-CC254x-1.4.1.43908.
According to the manual (OSAL API), I make use of two APIs,
uint8 osal_snv_write( osalSnvId_t id, osalSnvLen_t len, void *pBuf );
uint8 osal_snv_read( osalSnvId_t id, osalSnvLen_t len, void *pBuf );
However, I have found that the read function has to be called only after write function has been already called, once a new programme is flashed. Otherwise, the read function returns back NV_OPER_FAILED.
So my question is:
1. Is this normal?Why does this happen?
2. Once a new programme is flashed, every single memory is erased and reprogrammed, including the non volatile memory? Can we avoid the non volatile memory from being flashed also?
Thanks so much for your reading.