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

SWI handling - ARM7 vs. ARM9

Hello,
I have read the datasheets but I am having some trouble with the implementation. I am trying to invoke a software interrupt with an STR9, but my handler is never invoked. I see why: the SWI.s file is compiled, but the debugger does not offer to show a disassembly view of the generated code, hence the contents are not really available (?). so, when the exception is handled and an attempt is made to branch to the right label - I keep hanging! In the example provided for an LPC device, I see that a reference is made to some kind of SWI table (from swi.s). but is not the case for the swi.s of the STR9.
could you give me a push into the right direction?
thanks in advance

  • For those of you who don't care :) :), here is the deal:
    The problem was a combination of a flawed startup file and a too small stack for the supervisor mode. the issue I described earlier regarding the table is irrelevant - it is just a more convenient way to deal with SWI handlers. now, that I understand SWI functions, I can actually write interrupt safe code (both IRQ and FIQ. FIQ can be disabled once in supervisor mode). I'm telling you, this MCU is not as simple as the 166...!