Setting the stack register from an exception handler

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Setting the stack register from an exception handler

565 Views
Rafsol
Contributor I

I am planning on writing code in C to allow me to output important product data via a UART when a crash occurs.  To make it simple, I need to be able to set up the stack such that I can call C APIs.  Unfortunately I am not an assembly coder, so I would appreciate it if someone can post code that achieves that.

 

Thanks in advance

0 Kudos
2 Replies

545 Views
igorpadykov
NXP Employee
NXP Employee
0 Kudos

563 Views
Rafsol
Contributor I

One more piece of information:  it is a hifi3 processor

0 Kudos