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.

MSPM0L1227-Q1: Flash read not working

Part Number: MSPM0L1227-Q1

Tool/software:

Dear team,

I am performing flash read at Address "0x0001F000" as below. Write opration is successful and I can see the intended data in memory window.

Code snippet from write API,

DL_FlashCTL_executeClearStatus(FLASHCTL);
DL_FlashCTL_unprotectSector(FLASHCTL, address, DL_FLASHCTL_REGION_SELECT_MAIN);
/* Erase sector in main memory */
gCmdStatus = DL_FlashCTL_eraseMemoryFromRAM( FLASHCTL, address, DL_FLASHCTL_COMMAND_SIZE_ONE_WORD);
/* Ensure proper flash command execution by clearing the STATCMD
* register before executing a flash operation*/
DL_FlashCTL_executeClearStatus(FLASHCTL);
/* 8-bit write to flash in main memory without ECC */
gCmdStatus = DL_FlashCTL_programMemoryFromRAM(FLASHCTL, address, (uint32_t*)data, dataSize, DL_FLASHCTL_REGION_SELECT_MAIN);

if(gCmdStatus == DL_FLASHCTL_COMMAND_STATUS_PASSED)
{
retVal = true;
}

However when I perform flash read operation during next cycle using memcopy/pointer , software does not run anymore. Do I need to take care of some specific steps ?

Code snippet from read API,

uint32_t *EolDataRead = (uint32_t*)0x0001F000;
uint32_t HuberEolDataReadRam = 0;

HuberEolDataReadRam = *HuberEolDataRead;

Regards,

Halappa