Issue with Writing to DFlash After Memory Partitioning

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Issue with Writing to DFlash After Memory Partitioning

772 次查看
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 项奖励
回复
3 回复数

743 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

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

0 项奖励
回复

719 次查看
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 项奖励
回复

662 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

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

0 项奖励
回复