Other Parts Discussed in Thread: SYSCONFIG, SIMPLELINK-CC13X2-26X2-SDK
Hi everybody,
After spending hours finding out why my OAD external images are being deleted, I have noticed that the function:
NVS_erase(nvsHandle, 0, 0x100000)
erases beyond the selected Region in the handle (nvsHandle). It deletes all regions on the external flash.
Here some information about the regions I created in sysconfig:
1. Region CONFIG_NVS_OAD:
Region Base: 0x0
Region Size: 0x100000
Sector Size: 0x1000
Verify Buffer Size: 64
2. Region CONFIG_NVS_EXTERNAL_CUSTOM:
Region Base: 0x200000
Region Size: 0x100000
Sector Size: 0x1000
Verify Buffer Size: 64
This is how I create the handle:
nvsHandle= NVS_open(CONFIG_NVS_EXTERNAL_CUSTOM, &nvsParams);
For some reason the nvsHandle deletes data in the CONFIG_NVS_OAD region too.
I'm currently using the standard CC26X2 Launchpad with the SIMPLELINK-CC13X2-26X2-SDK_5.20.00.52 SDK. Do you guys have any idea how I can prevent this
Any help is appreciated.
Thanks in advance and happy Turkey Day!
SPEEDBIRD