Issue with Writing to DFlash After Memory Partitioning

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Issue with Writing to DFlash After Memory Partitioning

770 Views
ChandlerX
Contributor I

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

Snipaste_2025-04-15_15-08-55.png

0 Kudos
Reply
3 Replies

741 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

How you have partitioned the Flex Memory? What is the configuration?

0 Kudos
Reply

717 Views
ChandlerX
Contributor I

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;
}

0 Kudos
Reply

660 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

Please provide information about used environment (used S32DS version, RTD or SDK and so). Thanks

0 Kudos
Reply