AnsweredAssumed Answered

SWreset of BF537 with same behaviour as HWReset

Question asked by pfeifferc on Jul 9, 2009
Latest reply on Apr 23, 2018 by MattZ

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);

Outcomes