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 CCS Technical Support

Question about the CCS USB Development board

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
epideath



Joined: 07 Jun 2006
Posts: 47

View user's profile Send private message

Question about the CCS USB Development board
PostPosted: Sat Jul 08, 2006 3:48 pm     Reply with quote

OK I assume I'm over looking something very simple here.

I'm using the ICD-U40 with this board. I'm new to using an ICD also. Most of my experience is with MPLAB.

I can run the examples and everything works fine, as long as the ICD is connected. If I unplug the ICD and just plug the USB into the development board it doesn't enumerate, as if the program is not running.

If I program this with the ICD is it automatically in some sort of debugging mode that requires you to start running the program?

Why does the program not automatically run when powered up by plugging in the USB cable?

Any help would be great.

TIA
jecottrell



Joined: 16 Jan 2005
Posts: 559
Location: Tucson, AZ

View user's profile Send private message

PostPosted: Sat Jul 08, 2006 11:55 pm     Reply with quote

Did you change the DEBUG fuse to NODEBUG when you attempted to run it as a stand-alone?
epideath



Joined: 07 Jun 2006
Posts: 47

View user's profile Send private message

PostPosted: Sun Jul 09, 2006 10:41 am     Reply with quote

yes the fuse is set to NODEBUG.

I also read something about and ICD=TRUE. but I have looked through the code and I don't see this anywhere.

If I added ICD=FALSE at the begiining of my code would this have any effect?

Thanks
Douglas Kennedy



Joined: 07 Sep 2003
Posts: 755
Location: Florida

View user's profile Send private message AIM Address

PostPosted: Sun Jul 09, 2006 11:05 am     Reply with quote

Just in case you overlooked the obvious you need to unplug the ICD40 from your project board to have it start up in stand alone. The ICD holds onto MCLR. Remove ICD=TRUE , set NODEBUG fuse ,recompile, download new machine code into the PIC, unplug the ICD from the PIC, and you should be good to go.
epideath



Joined: 07 Jun 2006
Posts: 47

View user's profile Send private message

PostPosted: Sun Jul 09, 2006 11:20 am     Reply with quote

AHH, I figured it out. I was using the debugger to write the program to the PIC. I guess this sets it into debugging somehow.

I found the ICD program under the tools menu. It looks like that just programs the chip but not in DEBUG mode. Seems to work if I program the chip that way.

Thanks for the help.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion 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