Dwayne Dietrich

rebooting the 5485 with software?

Discussion created by Dwayne Dietrich Employee on Apr 1, 2006
Latest reply on Jan 25, 2012 by Kevin Curtis
This message contains an entire topic ported from the WildRice - Coldfire forum.  Freescale has received the approval from the WildRice administrator on seeding the Freescale forum with messages.  The original message and all replies are in this single message. We have seeded this new forum with selected information that we expect will be of value as you search for answers to your questions.  Freescale assumes no responsibility whatsoever with respect to Posted Material.  For additional information, please see the Terms of Use - Message Boards and Community Forums.  Thank You and Enjoy the Forum!
 

Mar 28, 2006, 12:48 PM
Post #1 of 8 (6 views)
Copy Shortcut
 [ColdFire] rebooting the 5485 with software?  Can't Post 
--------------------------------------------------------------------------------
 
Does, anybody know a simple way to reset a 5485 by using software? We
have a requirement here where we need to invoke a processor reset by
software.
Thanks,
--------------------------------------------------------------------
Mar 28, 2006, 12:59 PM
Post #2 of 8 (6 views)
Copy Shortcut
 RE: [ColdFire] rebooting the 5485 with software? [In reply to]  Can't Post 
--------------------------------------------------------------------------------
 
If your product has a watchdog with a reasonably short timeout period, you
could simply disable interrupts and enter an endless loop.
-----Original Message-----
From: On
Behalf Of Chaloupka, Karel
Sent: Tuesday, March 28, 2006 12:49 PM
To: 
Subject: [ColdFire] rebooting the 5485 with software?

Does, anybody know a simple way to reset a 5485 by using software? We
have a requirement here where we need to invoke a processor reset by
software.
Thanks,
--------------------------------------------------------------------
Mar 28, 2006, 1:01 PM
Post #3 of 8 (6 views)
Copy Shortcut
 Re: [ColdFire] rebooting the 5485 with software? [In reply to]  Can't Post 
--------------------------------------------------------------------------------
 
I don't know if you're using Linux, but if you are,
you can do a system("reboot"); call from a c program
as a very high level solution.
--- "Chaloupka, Karel" <>
wrote:
> Does, anybody know a simple way to reset a 5485 by
> using software? We
> have a requirement here where we need to invoke a
> processor reset by
> software.
>
> Thanks,
>
>
--------------------------------------------------------------------
Mar 28, 2006, 1:15 PM
Post #4 of 8 (6 views)
Copy Shortcut
 RE: [ColdFire] rebooting the 5485 with software? [In reply to]  Can't Post 
--------------------------------------------------------------------------------
 
I know in the 5282 there's a bit in the Reset Status Register (RSR) called
SOFTRST. Setting this bit will force a reset.
I reviewed the data sheet for the 5485 and it doesn't appear to have the
same bit. If you have the watchdog enabled, you could disable interrupts
and run an infinite loop until the watchdog resets.
Mark

-----Original Message-----
From: 
Behalf Of Chaloupka, Karel
Sent: March 28, 2006 3:49 PM
To:
Subject: [ColdFire] rebooting the 5485 with software?
Does, anybody know a simple way to reset a 5485 by using software? We
have a requirement here where we need to invoke a processor reset by
software.
Thanks,
--------------------------------------------------------------------
Mar 28, 2006, 1:17 PM
Post #5 of 8 (6 views)
Copy Shortcut
 Re: [ColdFire] rebooting the 5485 with software? [In reply to]  Can't Post 
--------------------------------------------------------------------------------
 
You can use the internal watchdog in GPT0. Set it to some 10ms, then
just wait and see the fireworks... :smileyhappy:
Best regards
Luca Burelli
"I have seen things you people would not believe. Attack ships on fire off
the shoulder of Orion. C-beams glittering in the dark near the Tannhauser
Gate. But... all those moments will be lost in time, like tears in rain."
(Roy Batty, from Blade Runner, 1982)
_
ASCII ribbon campaign ( )
- against HTML email X
& vCards / \
On Tue, 28 Mar 2006, Chaloupka, Karel wrote:
> Does, anybody know a simple way to reset a 5485 by using software? We
> have a requirement here where we need to invoke a processor reset by
> software.
>
> Thanks,
>
> --------------------------------------------------------------------
Mar 28, 2006, 1:17 PM
Post #6 of 8 (6 views)
Copy Shortcut
 Re: [ColdFire] rebooting the 5485 with software? [In reply to]  Can't Post 
--------------------------------------------------------------------------------
 
You can use the internal watchdog in GPT0. Set it to some 10ms, then
just wait and see the fireworks... :smileyhappy:
Best regards
Luca Burelli
"I have seen things you people would not believe. Attack ships on fire off
the shoulder of Orion. C-beams glittering in the dark near the Tannhauser
Gate. But... all those moments will be lost in time, like tears in rain."
(Roy Batty, from Blade Runner, 1982)
_
ASCII ribbon campaign ( )
- against HTML email X
& vCards / \
On Tue, 28 Mar 2006, Chaloupka, Karel wrote:
> Does, anybody know a simple way to reset a 5485 by using software? We
> have a requirement here where we need to invoke a processor reset by
> software.
>
> Thanks,
>
> --------------------------------------------------------------------
Mar 28, 2006, 1:43 PM
Post #7 of 8 (6 views)
Copy Shortcut
 Re: [ColdFire] rebooting the 5485 with software? [In reply to]  Can't Post 
--------------------------------------------------------------------------------
 
This is the routine we use that does what others have suggested - enable
the Watchdog timer and wait for it to expire. The isrMasked() and
isrMask() routines are specific to our RTOS, but it shouldn't be too
hard for you to get this to compile. We use it on MCF547X/8x boards.
/***********************************************************************/
/* bspReset: Reset the board and CPU */
/* */
/***********************************************************************/
void bspReset(void)
{
if (!isrMasked())
fclose(stdin);
isrMask();
MCF_GPT_GCIR0 = MCF_GPT_GCIR_PRE(1) | MCF_GPT_GCIR_CNT(2);
MCF_GPT_GMS0 = MCF_GPT_GMS_CE | MCF_GPT_GMS_WDEN |
MCF_GPT_GMS_TMS_GPIO;
while (MCF_GPT_GMS0) ;
}
Tim
----- Original Message -----
From: "Chaloupka, Karel" <>
To: stout@blunkmicro.com
Sent: Tuesday, March 28, 2006 12:48 PM
Subject: [ColdFire] rebooting the 5485 with software?

Does, anybody know a simple way to reset a 5485 by using software? We
have a requirement here where we need to invoke a processor reset by
software.
Thanks,
--------------------------------------------------------------------
Mar 28, 2006, 2:27 PM
Post #8 of 8 (6 views)
Copy Shortcut
 RE: [ColdFire] rebooting the 5485 with software? [In reply to]  Can't Post 
--------------------------------------------------------------------------------
 
We used a GPIO line and (wire anded it in with our reset along with the
BDM reset) pretty simple we use it to reset our box after a software
update. All the devices are tied together to open collector. Works
great.
 
Gregg GRANVILLE
Hardware Engineering Manager
-------------------------------------
Tel 1 603.622.0212 / Fax 1 603.623.5623
ggranville@metronics.com/ www.metronics.com
--------------------------------------------------------
METRONICS /// 30 Harvey Road // Bedford, NH 03110-6818 / US
-----Original Message-----
From: On Behalf Of Doug Leany
Sent: Tuesday, March 28, 2006 3:59 PM
To: Granville Gregg
Subject: RE: [ColdFire] rebooting the 5485 with software?
If your product has a watchdog with a reasonably short timeout period,
you
could simply disable interrupts and enter an endless loop.
-----Original Message-----
From: On Behalf Of Chaloupka, Karel
Sent: Tuesday, March 28, 2006 12:49 PM
To: DLEANY@Opto22.com
Subject: [ColdFire] rebooting the 5485 with software?

Does, anybody know a simple way to reset a 5485 by using software? We
have a requirement here where we need to invoke a processor reset by
software.
Thanks,
 
 
 

Message Edited by Dietrich on 04-03-2006 11:11 AM

Message Edited by Dietrich on 04-04-2006 01:25 PM

Message Edited by Dietrich on 04-04-2006 01:35 PM

Outcomes