Is there is no reset function with CW's debug?

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

Is there is no reset function with CW's debug?

2,342 Views
admond
Contributor I

I just move to CW and found there is no debug reset but restart which in fact is kill and redebug. it is con inconvenient for debugging for some windows such as Global Variables window get closed when debug is killed or restarted. Is there another method to reset and keep the windows live which I omit ?

 

thank you

 

best regards

   edmond 

Labels (1)
0 Kudos
6 Replies

622 Views
admond
Contributor I

Tom :

       please take a while to look at my question.

 

 

 

thank you

   Xidi

0 Kudos

622 Views
J2MEJediMaster
Specialist I

What is your target processor? (HCS12, ColdFire...).

 

Reset in most implementations of the debugger will reset the processor. What do you mean by debugger reset?

 

---Tom

 

0 Kudos

622 Views
admond
Contributor I

thank you Tom: 

      I am using the CW for dsc. before I turn to CW and freescale, some other platform were used such as mplab which the reset buttom is avalible when debugging. now I find a litter inconvenience to use CW just with run break step into step over and step out, but without reset. you just restart it.

 

   xidi

05.09.2009

 

0 Kudos

622 Views
v_dave
Contributor IV

I use Codewarrior for the DSC56800/E version 8.1.1a and when I first started to use it I had the same question.  I found that if I view->registers I can change the PC regiter to 0x00 and that effectively generates a reset without having to reload the code and restart.

 

This was important to me because I was doing some dev work that was using the FLASH for variable storage (IntFLASH Bean) and everytime you download code it erases this section of FLASH.  So in order to test my data storage I needed a way to reset the application without leaving the debig environment.  The solution was to simply change the PC register to 0x00 and that would restart the code from the beginning as close to a reset as you could get.

 

Hope this helps.

Message Edited by v_dave on 2009-05-12 11:33 AM
0 Kudos

622 Views
admond
Contributor I

Hi Dave and everyone else:

     After my tests and thought, I think the change of PC' value is not good idea. for only SP value changed to what you want, but the other value such as stack pointer(SP) and other special registers are not be initialized to the state of POWER ON reset. so I want to remind others avoid using such method.

 

 

Xidi

Message Edited by admond on 2009-05-16 12:10 PM
0 Kudos

622 Views
admond
Contributor I

thank you, Dave.

 

I tried it, and it worked. this is a really nice idea.

 

 

Regards,

 Xidi

05.13.2009

0 Kudos