Code is Stuck in the Flash initialising Function in S32k144

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

Code is Stuck in the Flash initialising Function in S32k144

569 次查看
Jeevansagar
Contributor III

Hello,

I am working with the S32K144 EVB and initializing the Flash module at the beginning of my code. However, when the code reaches the function that clears the cache for flash and data flash, it gets stuck. The code doesn’t proceed further unless I manually suspend and resume it from that point.

Can anyone help me resolve this issue?

Screenshot 2025-01-09 182017.png

标记 (1)
0 项奖励
回复
1 回复

543 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @Jeevansagar,

danielmartynek_0-1736498729523.png

 

The below line should be executed from RAM to avoid these undesired results.

MSCM->OCMDR[0u] |= MSCM_OCMDR_OCM1(0x3u);

 

Regards,

Daniel

0 项奖励
回复