Hi Chandra
About the API that you mention, it is:
void App_NvmWrite
(
uint32_t nvmDestinationAddress,
void* pvRamSource,
uint32_t cDataSize
)
{
#if mAppUseNvm_d
NV_FlashProgramUnaligned(&gFlashConfig, nvmDestinationAddress, cDataSize, pvRamSource, gFlashLaunchCommand);
#endif
}
And aas you can see here, it is using the NV_FlashProgramUnaligned function. This function uses the global variable gFlashConfig, which is defined as:
FLASH_SSD_CONFIG gFlashConfig =
{
FTFx_REG_BASE,
P_FLASH_BASE,
P_FLASH_SIZE,
FLEXNVM_BASE,
0,
EERAM_BASE,
0,
DEBUGENABLE,
NULL_CALLBACK
};
So, they basically are defined characteristics of internal flash, the device contains 2 program flash blocks (one 128Kbytes, one 32Kbytes).
Hope this information helps you
Have a great day,
Jorge Alcala
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------