Teriyaki
Joined: 07 Sep 2006 Posts: 7 Location: Munich, Germany
|
ICD-U64 break log monitor not working with PIC16F1939 |
Posted: Mon Oct 08, 2012 5:26 am |
|
|
Hi all,
I did use this program to test the debugger break log function:
Code: |
#undef PIC16F877
#ifdef PIC16F877
#include <16f877A.h>
#device ICD=TRUE
#fuses HS,NOLVP,NOWDT
#use delay (clock=20 MHz)
#else
#include <16F1939.h>
#device ICD=TRUE
#fuses ECH, CLKOUT, NOIESO, NOFCMEN, PLL_SW, NOBROWNOUT, MCLR, NOLVP, NOWDT, NOSTVREN, PUT, NOPROTECT, NOCPD
#use delay(clock=25MHz)
#endif
void main(){
int8 number;
while(1){
number = number + 1;
}
}
|
The PCM compiler version is 4.135.
The ICD firmware version is 2.95.
The ICD hardware revision is 2.
When I am compiling the program for the PIC16F877A and testing the debug log with a breakpoint at the line "number = number +1" the debugger is working as expected and logging the number each time when the line with the breakpoint is hit.
But when I am compiling the program for the PIC16F1939, then the debug log stops each time when the breakpoint line is hit and does no logging. It behaves as if the checkbox for LOG is ignored by the program although it is checked.
Does anybody have an idea what can be the reason?
And I have another two questions:
1. When I uncheck the LOG checkbox during the test with the PIC16F877A I actually would expect that the number is logged in the monitor window each time when i click GO and the debugger stops at the breakpoint. But the monitor window remains empty. What is the sense then of the LOG checkbox when it is unchecked?
2. What are valid expressions which can be typed into the "Expression" textbox? Or where can I find any description ? |
|