How to force a device reset?

Discussion around product based on ARM Cortex M4 core.

Moderators: nferre, ncollot

tashrobinson
Posts: 3
Joined: Tue Sep 09, 2014 2:12 pm

How to force a device reset?

Mon Jan 05, 2015 4:31 am

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?
cwunder
Posts: 34
Joined: Fri Jul 01, 2011 9:39 pm

Re: How to force a device reset?

Mon Jan 05, 2015 7:55 pm

Have you tried writing to the Reset Controller Control Register?
tashrobinson
Posts: 3
Joined: Tue Sep 09, 2014 2:12 pm

Re: How to force a device reset?

Wed Jan 07, 2015 2:47 am

Thanks, cwunder writing to the register worked like a charm.  

Return to “SAM4 Cortex-M4 MCU”

Who is online

Users browsing this forum: No registered users and 3 guests