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