Part Number: CC2340R5
Other Parts Discussed in Thread: SYSCONFIG
Hello TI Team,
I'm using CC2340R5 with SDK 8.40 and MCUBoot example code for self FOTA implementation using UART through external interface.
Right now, I did write some data into application code using NVM API's at a fixed address. Below is the code snippet.
I want to read the same flag in MCUBoot at the same address to cross verify but not sure how to do it.
Because I guess NVM related files or access is disabled in MCUBoot.
I just want to understand how to access same memory region in both Application code & MCUBoot code?
uint32_t flag = 0xA5A5A5A5;
nvsHandle2 = NVS_open(MCUBOOT_TRIG_FLG_ADDR, NULL);
nvsRes = NVS_write(nvsHandle2, 0, (uint8_t *)&flag, 4, NVS_WRITE_ERASE | NVS_WRITE_POST_VERIFY);
if(nvsRes != NVS_STATUS_SUCCESS)
{
return nvsRes;
}
//Inform to boot-loader that new image is available.
/*This is tested now that the Application is jumping to MCUBoot*/
#ifdef SECURE_BOOT
HapiSbSetId( 3 ); // Indicate to secure boot that new image is ready
#endif
SystemReset();



