View previous topic :: View next topic |
Author |
Message |
luissito
Joined: 31 Jul 2005 Posts: 6 Location: Valencia (Spain)
|
ICD2 problem |
Posted: Sat Sep 17, 2005 4:45 am |
|
|
Hi , well this is my first post so don't be bad . I am running CCS compiler under MPLAB, using the microchip ICD2 debugger , in debug mode it works fine, but if I use the ICD2 in programmer mode my program doesn't run on the PIC although mplab says ....programming succeeded. Any suggestions??
Thank's in advance.
Regards. |
|
|
ckielstra
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
|
|
Posted: Sat Sep 17, 2005 7:58 am |
|
|
After programming, did you remove the programming cable? With the cable attached the ICD2 will keep the PIC in reset mode unless you select the 'release from reset' button in MPLAB (the button with the up arrow). |
|
|
luissito
Joined: 31 Jul 2005 Posts: 6 Location: Valencia (Spain)
|
|
Posted: Sat Sep 17, 2005 2:14 pm |
|
|
Yep I remove the programming cable but it still doesn't work, I don't find that button with the up arrow. By the way I am using mplab 6.40 but that shouldn't be a problem.
Regards |
|
|
dyeatman
Joined: 06 Sep 2003 Posts: 1933 Location: Norman, OK
|
|
Posted: Sat Sep 17, 2005 3:44 pm |
|
|
What chip are you using?
Are you using an 18F series in 4xPLL mode? |
|
|
luissito
Joined: 31 Jul 2005 Posts: 6 Location: Valencia (Spain)
|
|
Posted: Sat Sep 17, 2005 4:13 pm |
|
|
No, I am using a PIC16F873. It's a strange thing what happens, works perfect in debug mode but in programmer mode it does nothing.
Regards |
|
|
drolleman Guest
|
|
Posted: Sat Sep 17, 2005 9:01 pm |
|
|
do you have a pull up resistor on mclr? |
|
|
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
|
|
Posted: Sat Sep 17, 2005 11:34 pm |
|
|
The earlier versions allowed you to load the Debugger and the Programmer at the same time. If your version does this, make sure that you have the debugger configuration turned off. |
|
|
luissito
Joined: 31 Jul 2005 Posts: 6 Location: Valencia (Spain)
|
|
Posted: Sun Sep 18, 2005 1:59 am |
|
|
I don't have a pull-up resistor on MCLR and I disable debugger mode before enabling programmer mode. |
|
|
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
|
|
Posted: Sun Sep 18, 2005 8:28 am |
|
|
luissito wrote: | I don't have a pull-up resistor on MCLR and I disable debugger mode before enabling programmer mode. | Well you need one on it. Look up the schematic of a PIC demo board, like a PICDEM 2 PLUS, from Microchip's website. Look at how they connect MCLR. |
|
|
luissito
Joined: 31 Jul 2005 Posts: 6 Location: Valencia (Spain)
|
|
Posted: Sun Sep 18, 2005 8:40 am |
|
|
Thank's everybody, it was that, I have just soldered the pull up resistor and everything goes fine.
Regards. |
|
|
|