[CSE] "system memory error" after writing master key

cancel
Showing results for 
Search instead for 
Did you mean: 

[CSE] "system memory error" after writing master key

550 Views
jaejynshin
Contributor III

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 

pastedImage_1.png

 

pastedImage_2.png

 

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.

pastedImage_3.png

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

0 Kudos
3 Replies

359 Views
jaejynshin
Contributor III

Is it because of the lock register of C55MC ?

pastedImage_1.png

0 Kudos

359 Views
jaejynshin
Contributor III

I could not change the LOCK1 register even though I wrote like below

pastedImage_1.png

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.

0 Kudos

359 Views
jaejynshin
Contributor III

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!

0 Kudos