Dear NXP Team,
I am currently working on a project using S32K146 with S32DS, and have encountered an issue. I am trying to write data to DFlash based on a flag, but the write operation works fine when there is no memory partitioning. However, once I perform memory partitioning, I am unable to modify the data at the DFlash address.
Could you kindly help me analyze the possible cause of this issue? Is there anything specific I should pay attention to when performing memory partitioning to ensure that I can continue writing to DFlash?
Your assistance would be greatly appreciated.
Best regards,
ChandlerX
How you have partitioned the Flex Memory? What is the configuration?
At start‑up we only execute the routine below, which does nothing more than call FLASH_DRV_Init() with the default configuration while interrupts are temporarily: disabled:status_t FlashDrv_Init(void)
{
status_t ret = STATUS_SUCCESS;
/* Disable global IRQs to avoid RWW violations */
INT_SYS_DisableIRQGlobal();
ret = FLASH_DRV_Init(&Flash1_InitConfig0, &pSSDConfig);
/* Re‑enable global IRQs */
INT_SYS_EnableIRQGlobal();
return ret;
}
Please provide information about used environment (used S32DS version, RTD or SDK and so). Thanks