This question is related to the below one
https://community.nxp.com/message/902848?commentID=902848#comment-902848
@Expert
I got below error code in the CSE_ECR right after writing master key
I found the reason of the error in the "AN4234_Using the Cryptographic Service Engine(CSE)MPC564XBC.pdf" document, but I still didn't understant the real reason.
But after checking the RCHW in the below question, I got to know the my RCHW has no problem
https://community.nxp.com/message/902848?commentID=902848#comment-902848
Then, is there any other reason that generating 0x0C in ECR register?
Thank you
Jaejyn
Is it because of the lock register of C55MC ?
I could not change the LOCK1 register even though I wrote like below
If the reason of "system memory error" is due to the LOCK register.
I should solve why the LOCK1 register can not be modified.
However, if the reason is different, I should investigate it more.
Finally, I found the reason why "system memory error" occurred in my system.
The M1~M5 was assigned from local variable address, and the stack is used in the cache.
That is, stack is locked in the cache.
Because I assigned local variable addresses to the M1~M5 address, the CSE could not read the addresses.
After I gave the addresses of global variables to the M1~M5, this problem was solved.
Thank you!