This Question is Not Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
2 Replies Last post: Jul 13, 2009 2:38 AM by Christoph Pfeiffer  
Christoph Pfeiffer Contributor 44 posts since
Jun 5, 2009
Currently Being Moderated

Jul 9, 2009 9:09 AM

SWreset of BF537 with same behaviour as HWReset

Hi !

Is there a possibility to do a reset by software which is the same

as a reset per hardware ?

 

I work with following statements but i'm not shure if it realy resets Core&Peripheral - take from page 1001 of hardwareReference Manual

 

Watchdog reset is not possible because this is handled specialy on startup

 

*pSWRST=SYSTEM_RESET; //0x0007 ...trigger softw.reset         
   for(i=0;i<100;i++) cmdHistIdx++;  //only a pseudo loop to wait for sysreset
   *pSWRST=0x0000;
    raise(1);  //force a machine reset
    while(1);

Andreas Analog Employee   44 posts since
Apr 22, 2009
Currently Being Moderated
1. Jul 10, 2009 8:02 AM in response to: Christoph Pfeiffer
Re: SWreset of BF537 with same behaviour as HWReset

Table 19-2. Resets in the HRM will give you an overview of the available reset events, tha actions to be taken and the result.

The result of a system software reset (Writing 0x0007 to bits [2:0] in SWRST) is: Resets only the peripherals, excluding the RTC (Real-Time Clock) block and most of the DPMC. The system software reset clears bit 4 (no boot on software reset) in the SYSCR register. Does not reset the core. Does not initiate a boot sequence.

If you want to trigger a real hardware reset (/RESET pin), you can use a free GPIO pin. Connect it to the reset generator input and connect a pull-up resistor as well.

More Like This

  • Retrieving data ...