|
Infinite loop deguggingNext Thread | Thread List | Previous Thread Start a Thread | Settings | Details | Message |
|---|
Author John Brown Posted 6-Oct-2008 02:59 Toolset C166 |  Infinite loop degugging John Brown Hi, I have got a problem when I debug a program with uLink2 into XC164CS. When I take steps, the arrow is staying in these instructions in infinite loop. What these 3 instructions means?. Help me please. Thanks http://img221.imagevenue.com/img.php?image=86941_paint_122_209lo.JPG | | Author Mike Kleshov Posted 6-Oct-2008 03:58 Toolset C166 |  RE: Infinite loop degugging Mike Kleshov It means something like this:
unsigned char volatile var; /* at address DPP3:0x3BF6 */
...
while (var == 0) { /* wait */ }
Actually, assembly language is not that hard. Look up the reference manual on XC166 instruction set.
| | Author John Brown Posted 6-Oct-2008 23:59 Toolset C166 |  RE: Infinite loop degugging John Brown Hi, Another thing. Sometimes, when I load the program, I get this phrase in the output window of uVision3:
Load "C:\\Documents and Settings\\iker\\Escritorio\\Getting_started_RTC\\RTC\\RTC\\RTC"
Erasing...
Erase Done.
Programming Done.
Hardware, Software or Watchdog Reset detected.
Verify OK.
Application running ...
"Hardware, Software or Watchdog Reset detected." Therefore, the program is debugged correctly step by step. Why and when does it happen? Thank you for you helps. :D | | Author Mike Kleshov Posted 7-Oct-2008 00:08 Toolset C166 |  RE: Infinite loop degugging Mike Kleshov I don't know. Maybe the flash programming routine resets the MCU after the program is uploaded? If so, it seems this is normal operation. | |
Next Thread | Thread List | Previous Thread Start a Thread | Settings |
|