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
Tom :
please take a while to look at my question.
thank you
Xidi
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
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
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.
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
thank you, Dave.
I tried it, and it worked. this is a really nice idea.
Regards,
Xidi
05.13.2009