View previous topic :: View next topic |
Author |
Message |
epideath
Joined: 07 Jun 2006 Posts: 47
|
Question about the CCS USB Development board |
Posted: Sat Jul 08, 2006 3:48 pm |
|
|
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
|
|
Posted: Sat Jul 08, 2006 11:55 pm |
|
|
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
|
|
Posted: Sun Jul 09, 2006 10:41 am |
|
|
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
|
|
Posted: Sun Jul 09, 2006 11:05 am |
|
|
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
|
|
Posted: Sun Jul 09, 2006 11:20 am |
|
|
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. |
|
|
|