cancel
Showing results for 
Search instead for 
Did you mean: 

Software reseet in str 911fm44 how?

mariusz2
Associate II
Posted on March 21, 2008 at 15:43

Software reseet in str 911fm44 how?

5 REPLIES 5
mariusz2
Associate II
Posted on May 17, 2011 at 09:43

Hi all, How to make reset in str 911fm44 (software, without WDG timer)

You have some code example ?

usatyj
Associate II
Posted on May 17, 2011 at 09:43

It is very simple!

asm(''MOV PC,#0x00'');

roger_lynx
Associate II
Posted on May 17, 2011 at 09:43

It is very simple!

 

asm(''MOV PC,#0x00'');

 

Okay, this might be very simple if you dont't care about the state of the HW registers (incl. peripherals) prior to performing this type of ''warm boot'', as suggested.

Many times one cares about the initial conditions being at a known state - which only a real reset (ext. or powercycle) will provide.

Posted on May 17, 2011 at 09:43

Through the Peripheral reset register SCU_PRR0 and Peripheral reset register SCU_PRR1 it is possible to force the reset for each peripheral.

mark9
Associate II
Posted on May 17, 2011 at 09:43

I've been looking for the answer for this for a while, and it seems the best answer is to enable the Watchdog (WDG) and do a while(1); to force it to reset.