CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug Reports on this forum. Send them to support@ccsinfo.com

Howto set up the source for debugging with the CCS ICD?

 
Post new topic   Reply to topic    CCS Forum Index -> CCS ICD / Mach X / Load-n-Go
View previous topic :: View next topic  
Author Message
Guest








Howto set up the source for debugging with the CCS ICD?
PostPosted: Tue Dec 14, 2004 9:00 am     Reply with quote

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?


Quote:

Q:http://www.ccsinfo.com/faq/?45

The target chip oscillator must be running for the ICD to work with a debugger.


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.
PCM programmer



Joined: 06 Sep 2003
Posts: 20337

View user's profile Send private message

PostPosted: Wed Dec 15, 2004 4:09 pm     Reply with quote

Quote:
The target chip oscillator must be running for the ICD to work with
a debugger.

This means you must have a crystal (and the correct capacitors for it)
connected to the OSC1 and OSC2 pins on your 16F877A.

See this FAQ answer which shows how to connect the ICD to your board.
http://www.ccsinfo.com/faq/?45

Also download and read the CCS ICD trouble-shooting guide:
http://www.ccsinfo.com/faq/?51
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> CCS ICD / Mach X / Load-n-Go All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group