Software Reset

I can generate a software reset by the following code:

((void (code *) (void)) 0x0000) ();

After the reset, however, my application no longer responds to my interrupts. How can I reinizialize all my interrupts in C?

Any help would be appreciated.

Thanks.

Parents
  • "I can generate a software reset by the following code:

    ((void (code *) (void)) 0x0000) ();

    After the reset, however, my application no longer responds to my interrupts. How can I reinizialize all my interrupts in C?"

    My guess is that you are making that call from within an interrupt service routine so the interrupt hardware is never being reset by a RETI.

Reply
  • "I can generate a software reset by the following code:

    ((void (code *) (void)) 0x0000) ();

    After the reset, however, my application no longer responds to my interrupts. How can I reinizialize all my interrupts in C?"

    My guess is that you are making that call from within an interrupt service routine so the interrupt hardware is never being reset by a RETI.

Children
More questions in this forum