This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Saving the context of a STR9

Hello all,
I am trying to save the context of my STR9 but I am running into some trouble here: first of all, RealView does not allow for inline assembly that accesses registers directly, only embedded assembly. I can write a .S module, but how do I export a name of a function from it, to be used from a C module? I failed to find something in the documentation - probably overlooked it. beyond that, I want to save all the registers (R0-R12, SP, LR, PC, CPSR) but they are only fully availale at user mode. is it legel to temporarily switch to user mode within an IRQ ISR? or while executing code in a SWI procedure? forgive me for the elemntary questions, this was a lot easier when I did it for the C166...

0