S32K144 Flash Partitioning Generates Hard Fault

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

S32K144 Flash Partitioning Generates Hard Fault

1,189 Views
ummerkunnummalk
Contributor III

Hello,

   While trying to do flash partitioning by running the example "flash_partitioning_s32k144" from RAM, I am getting a ACCERR. The same program used to work earlier and still works on other targets. Can any one help with the possible cause for this error. I have gone through the possible error list in the manual, and I think none of them are valid in this case.

    Also please let me know if programming any write protected key in the CSEc module can cause this.

   

   Another observation is if I bypass the flash partitioning for the CSEC key configuration, while running the random number geneartion, I am getting a hard fault.

   Please help with your valuable comments/suggestions.

Thanks

Ummer

0 Kudos
1 Reply

900 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello Ummer, 

Could you please read the SIM_FCFG1_DEPART register just before the partition command?

It could be caused by CSEc.

Before running the partition command, the DFlash IFR must be erased.

Please take a look at AN12130, Production Flash Programming Best Practices for S32K1xx MCUs

pastedImage_2.png

AN5401SW contains an example that shows how to erase the key provided they are not write-protected.

BR, Daniel

0 Kudos