I use CC2540 KeyFob Demo Kit (CC2504 - 1.1.a).Development Environment - IAR 8.10.1 for 8051.
In my application I need to write and read substantial amount of information from /to flash memory (up to 100 kb).
I'm trying to use osal_snv_read() and osal_snv_write() functions.
While doing "write" in a cycle by call : osal_snv_write(id + i, len, pBuffer); "id" is incremented by one, "pBuffer" - pointer to array of 250 bytes,
only 3 calls return successfully (in overall 750 bytes written), subsequent calls retrun NV_OPER_FAILED and no data written to flash.
What I'm doing wrong (probably) and what is a best way to write data to non-volatile memory (flash).