Page 1 of 1

How to force a device reset?

Posted: Mon Jan 05, 2015 4:31 am
by tashrobinson
I'm trying to force a device reset on SAM4E, after I have erased the flash and reprogrammed.  I am doing this from RAMFUNC because I need to replace the running program.  I have tried calling exit(0) and to force a Watchdog Timeout, but neither is working because the original program is gone.

The newly loaded program works fine if I reset the device manually, but I need to be able to restart it via the program.  

Is there a way to force a reset after I have cleared the program?

Re: How to force a device reset?

Posted: Mon Jan 05, 2015 7:55 pm
by cwunder
Have you tried writing to the Reset Controller Control Register?

Re: How to force a device reset?

Posted: Wed Jan 07, 2015 2:47 am
by tashrobinson
Thanks, cwunder writing to the register worked like a charm.