Software Reset For MCf52259

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Software Reset For MCf52259

877 Views
payyans4u
Contributor I

Hi,

 

I am working on MCF52259 with MQX 3.7 CW 7.2environment....I am trying to use the software reset opton in my code..I have set the flag for MCF_RCM_RCR_SOFTRST in MCF52259_RCM.h file as 

 

#define MCF_RCM_RCR_SOFTRST                  (0x80)

 

And i am using MCF_RCM_RCR = MCF_RCM_RCR_SOFTRST; in my .c file to reset the code and start over again...

 

Is this the Right way to get it done....Pls suggest

Labels (1)
0 Kudos
Reply
2 Replies

543 Views
mjbcswitzerland
Specialist V

Hi

 

Writing 0x80 to the RCR register in the M52259 or any other Coldfire V2 processors causes a soft reset to be executed.

 

Regards

 

Mark

 

0 Kudos
Reply

543 Views
payyans4u
Contributor I

Thanks Mark...Its working Fine

0 Kudos
Reply