Tool/software:
I was informed yesterday that the c-code compiler for the PRU does not add instructions to initialize the value of the stack pointer held at r2. I was told I need to work around this and add inline assembly to initialize this value.
Specifically, the compiled code creates an assembly command to move the stack pointer immediately upon entry to the main function. I need a way to add an instruction prior to the entry into the main function which initializes the value of r2 correctly based on the size of the stack.

