Code is Stuck in the Flash initialising Function in S32k144

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

Code is Stuck in the Flash initialising Function in S32k144

568 Views
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

Tags (1)
0 Kudos
Reply
1 Reply

542 Views
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 Kudos
Reply