# use PIC without ICD2

Status
Not open for further replies.

#### yohanevindra

##### New Member
we now have to do this major project in uni which requires us not to use the ICD2 to interface between the PIC and the PC....we cant debug the program using the ICD2. how do we get this done? once you program the PIC how do you get it to power up and start running on its own?

#### Nigel Goodwin

##### Super Moderator
You simply connect it up and it runs - there's nothing complicated about it, in fact connecting it via an ICD2 is MORE complicated.

#### yohanevindra

##### New Member
but how come when using the PIC dem 2 board, we dont see that happeneing? we hav to click run in MPLAB otherwise the program wont run.

#### AtomSoft

##### Well-Known Member
lol your silly. You have to program the PIC first then when done programming it will autorun.

In MPLAB goto menu.. Programmer, Select Programmer, ICD2 and then click menu Programmer then Program

Its best to do a fresh compile in MY opinion once in programmer mode.

Last edited:

#### Mr RB

##### Well-Known Member
That's one of the special advanced PIC features... The "running by itself mode"!

#### AtomSoft

##### Well-Known Member
That's one of the special advanced PIC features... The "running by itself mode"!
Heh yeah. Im not going to lie tho. This same thing happened to me when i started out. I was so stuck in debug mode i didnt know any other.

#### Noggin

##### Member
What he's talking about is after the ICD2 programs the PIC, it holds it in reset. There is an option that allows for "Program after successful build" and "Run after successful program." If the second option is not checked, the PIC is held in reset until you click on the take-out-of-reset button.

yohanevindra, once you've programmed the PIC, remove the ICD2 and cycle power to the board. The PIC should begin running at that time.

#### yohanevindra

##### New Member
ohhh...right right...ive always been using it in debugging mode!!tht's why!!!! sorry guys!!!

so then after i program it it will run when powered?

after programming with the programming mode, it is possible to reprogram it right?

yes and yes

#### Pommie

##### Well-Known Member
Are you allowed to use a PicKit2?

Mike.

#### Darkcommandos

##### New Member
Plz i have problem when compile the file and tell me that in the Output:
----------------------------------------------------------------------
Debug build of project D:\TEST\TEST.mcp' started.
Language tool versions: mpasmwin.exe v5.34, mplink.exe v4.34, mcc18.exe v3.34
Preprocessor symbol __DEBUG' is defined.
Sun Dec 27 19:52:45 2009
----------------------------------------------------------------------
Clean: Deleting intermediary and output files.
Clean: Deleted file "D:\TEST\TEST.mcs".
Clean: Done.
Build aborted. The project contains no source files.
----------------------------------------------------------------------
Debug build of project D:\TEST\TEST.mcp' failed.
Language tool versions: mpasmwin.exe v5.34, mplink.exe v4.34, mcc18.exe v3.34
Preprocessor symbol __DEBUG' is defined.
Sun Dec 27 19:52:45 2009
----------------------------------------------------------------------
BUILD FAILED

#### AtomSoft

##### Well-Known Member
listen you have to add the files to the project panel
thats all

Status
Not open for further replies.