S32K146 PFLASH MSCM->OCMDR[0u] |= MSCM_OCMDR_OCM1(0xFu);

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

S32K146 PFLASH MSCM->OCMDR[0u] |= MSCM_OCMDR_OCM1(0xFu);

1,154 Views
oceansea
Contributor III

hi,

i use the s32k146 MCU,when i run the code MSCM->OCMDR[0u] |= MSCM_OCMDR_OCM1(0xFu);

because i want Erase the pflash ,so i want to disable the P-Flash data and instruction speculate & prefetch function.

but it will stop in here ,the mcu wes die in this line,need to restart.

then ,i debug step by step ,is ok,not any problem.

what is the reason about this?

thanks

Labels (1)
0 Kudos
1 Reply

1,043 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

It was already answered here:

https://community.nxp.com/message/1139364 

Thanks,

BR, Daniel

0 Kudos