Hello,
But this function clears the values of the RGM [DES/FES] registers,.
Since you are out of options simply modify / write your own function for RGM reads which wont clear them.
We need a solution where data can still be retained in a RAM area even after a destructive reset occurs.
Well, its called a destructive reset for some reason. RAM content is destroyed.
I have not yet found a way to identify the cause of the system reset that occurs before executing BIST.
I would set loop/break right before execution of the BIST, read out the RGM to understand the reset cause from debugger.
Usually you do system reset reading in startup code and branch the code based on its results. I do not understand why you do it right before BIST.
Best regards,
Peter