I want to save some system parameter in inner flash so it will works when repower the system. I know that maybe I need to take reference on "ti/drier/flash.h" or "ti/driver/NVS.h", but I have some question about cc1310 flash operation:
1.Is the operating steps as follows:
if( FlashProtectionGet( Address_You_Want_To_Operate ) == FLASH_NO_PROTECT)
{
FlashSectorErase(Address_You_Want_To_Operate );
FlashProgram( DataBuffer, Address_You_Want_To_Operate, DataLength)
}
Is that right?
2. Is that any limit about the "Address_You_Want_To_Operate" ? I mean that whether it exist such situation: there exist a special address in flash that contains chip inner data or a piece of system code that shouldn't be modified? How to choose a suitable address to save user data?
Best Regards,
summery.