This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSPM0L1306: Writing to flash memory and reading from it to get the last data stored in flash to read from it after Power cycle.

Part Number: MSPM0L1306

Hi,

I am working on MSPM0L1306 Launchpad where I have some Temperature values which User need to Set. After setting the Temperature values updated value should be stored in flash memory which I can do by following functions:

/* 32-bit write to flash in main memory */
DL_FlashCTL_unprotectSector(
FLASHCTL, MAIN_BASE_ADDRESS, DL_FLASHCTL_REGION_SELECT_MAIN);
gCmdStatus = DL_FlashCTL_programMemoryFromRAM32(
FLASHCTL, (MAIN_BASE_ADDRESS + 16), &gData32);

but after device restart that stored value should be read from flash memory. But in the examples I only have readVerify() function and in dl_flashctl.h there is only readVerify() functions are defined.
While reading from readVerify() giving error because 
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_readVerifyFromRAM64(
FLASHCTL_Regs *flashctl, uint32_t address, uint32_t *data);

*data is not same as stored value.

Can you please help me to read the data from memory?

Thank you in advance!