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
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
AN5401SW contains an example that shows how to erase the key provided they are not write-protected.
BR, Daniel