Guest
|
Howto set up the source for debugging with the CCS ICD? |
Posted: Tue Dec 14, 2004 9:00 am |
|
|
Hello,
My boss brought packet containing this CCS made IDC-U40 debugger last week and I'm still trying to figure out what changes I need to make in my program to get debugger to work with It.
I only got B7 and B6 datalines connected and Userstream Enabled set to False in debugger conf.
I'm tried to add following to the code.
Code: |
#opt 0
#device PIC16F877A *=16 ICD=TRUE
//added IDC=TRUE
#use delay(clock=10000000)
#fuses HS,NOPUT,NOCPD,NOPROTECT,NOWDT,NOLVP,BROWNOUT,NOWRT,DEBUG
//Added the DEBUG fuse I don't really know if this is mened for Microchip's //debugger only?
//#use rs232(baud=9600,parity=N,xmit=PIN_C6,rcv=PIN_C7)
//Do I have to enable rs233 manually for ICD or does it generate it's own //code for serial communication?
//Do I have to use settings like STANDARD_IO for PORTB?
|
So do I have to add function call for ICD or something in my RTCC_isr()-function?
At the moment programming is working flawless just debugger keeps throwing me following error after loading program to target MCU.
Could not start target : The target was not halted after reset check the target oscillator and MCLR.
And the program seems to be halted just after printing the 1st line on the lcd.
When I close the debugger I got Error: List index out of bounds.
Any program example for PCM 3.213 explaining howto get the CCS ICD to do some debugging with the PIC16F877A is highly appreciated. |
|