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

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 Reply Children
  • I was using the watchdog before but thought there might be a more "elegant" way of doing it.

    HUH ?
    what could be better than
    while(1); // let the puppy bite to reset the processor
    or
    jmp $ ;let the puppy bite to reset the processor

    both use the hardware to generate a reset which is a hardware function.

    Erik