Now that the code is running in the R5 core, how can I obtain the value of PSP? I used the code shown in the figure below, but compilation cannot pass. It seems that the compiler doesn't recognize PSP. How can I obtain the value of PSP pointer?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Now that the code is running in the R5 core, how can I obtain the value of PSP? I used the code shown in the figure below, but compilation cannot pass. It seems that the compiler doesn't recognize PSP. How can I obtain the value of PSP pointer?
Hello guxl24,
Our usual expert for this query is out of office, so I'm seeking who else on the team can help address this.
Best Regards,
Ralph Jacobi
Hi guxl24,
I assume you intend to read the SP which is at R13.
You can simply use "str" to store the same to a variable with intrinsics.
I hope this solves your problem.
Best Regards,
Aakash
Try using ,