Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Restart after software reset
PostPosted: Fri Jan 29, 2010 1:16 pm 
Offline

Joined: Tue Oct 11, 2005 5:43 pm
Posts: 12
Hi all,
I have the follow problem: after a software reset, given by:
Code:
AT91F_RSTSoftReset(AT91C_BASE_RSTC, AT91C_RSTC_PROCRST);

applications seems to have some problems reinitializing. Note that I use the same startup code used at power-on reset.

I wonder how I should correctly reinitialize application after a software reset.

Thanks a lot.
bye


Top
 Profile  
 
 Post subject: Re: Restart after software reset
PostPosted: Fri Jan 29, 2010 2:15 pm 
Offline

Joined: Fri Oct 19, 2007 10:18 am
Posts: 40
Hi,
try to also reset the peripherals:
Code:
AT91F_RSTSoftReset(AT91C_BASE_RSTC, AT91C_RSTC_PROCRST | AT91C_RSTC_PERRST);

Or trigger an external reset using bit AT91C_RSTC_EXTRST


Top
 Profile  
 
 Post subject: Re: Restart after software reset
PostPosted: Fri Jan 29, 2010 3:10 pm 
Offline

Joined: Tue Oct 11, 2005 5:43 pm
Posts: 12
stefan192 wrote:
Hi,
try to also reset the peripherals:
Code:
AT91F_RSTSoftReset(AT91C_BASE_RSTC, AT91C_RSTC_PROCRST | AT91C_RSTC_PERRST);

Or trigger an external reset using bit AT91C_RSTC_EXTRST

Unfortunately for the application is MANDATORY to maintain the gpio state during reset. For that reason I cannot reset the peripherals and external...

The only way is to make the startup from software reset to work correctly

any other ideas?
thanks


Top
 Profile  
 
 Post subject: Re: Restart after software reset
PostPosted: Fri Jan 29, 2010 3:22 pm 
Offline

Joined: Fri Oct 19, 2007 10:18 am
Posts: 40
Sorry, but you did not say that it is mandatory to maintain the gpio state.
So it was not necessary to write mandatory in large red letters!!!

Do you disable all interrupts and DMA-transfers? Did you debug your code to see where the processor hangs?


Top
 Profile  
 
 Post subject: Re: Restart after software reset
PostPosted: Fri Jan 29, 2010 5:21 pm 
Offline

Joined: Tue Oct 11, 2005 5:43 pm
Posts: 12
stefan192 wrote:
Sorry, but you did not say that it is mandatory to maintain the gpio state.
So it was not necessary to write mandatory in large red letters!!!
OK... sorry :oops:

stefan192 wrote:
Do you disable all interrupts and DMA-transfers? Did you debug your code to see where the processor hangs?
We do not use DMA, and we tryed both cases: software reset whit interrupt enabled and disabled, with the same result.
It seems that after reset a generic interrupt is raised (but ISR is 0), and it loops. In this state after few seconds WDC will resets making GPIO pins to have an undesired behaviour.
It seems that debugging is invasive. The behaviour is different between debugging or not.

Do you have some other ideas?
Which is the correct procedure to restart after software reset? Is it described in details in some document?

thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: