View previous topic :: View next topic |
Author |
Message |
dtaulbee
Joined: 18 Jun 2008 Posts: 2
|
dsPIC33 programming problems |
Posted: Fri Jul 23, 2010 10:07 am |
|
|
I am using the dsPIC33FJ64GP804 micro.
Compiler version 4.109
MPLAB ICD 3
MPLAB IDE v8.53
I am having trouble programming the chip. I usually work with the 18F series, but needed two RS232 channels and 1 CAN channel so I couldn't do it with a 44-TQFP package 18F.
Do you need to specify in code which programming channels you are going to use? I'm using PGEC1 and PGED1, which are pins 22 and 21 respectively. Maybe a #FUSE needs to be used, but I don't see any in the header file that would correspond to program pins.
When I try to connect I get the error "Target Device ID (00000000) does not match expected Device ID (061f0000)"
Using the ICD 3 Test Interface in the IDE, I get the error "ICD3Err0063: Test interface PGC clock line write failure.
Please ensure that the tester is properly connected." It is.
Testing the ICD 3 with the Test Interface Board shows that the ICD is working.
Anyone know what I could be missing here? Or have any questions for me that would help you help me?
Thank you so much to anyone who even reads this. I'm kind of lost at the moment.
Dan |
|
|
FvM
Joined: 27 Aug 2008 Posts: 2337 Location: Germany
|
|
Posted: Fri Jul 23, 2010 12:51 pm |
|
|
Selection of PGC/PGDx pins by ICSPx fuse is required for debugging but not for basic programming. Select the correct device type and it should connect to ICD3, otherwise the hardware interface is incorrect. |
|
|
wangine
Joined: 07 Jul 2009 Posts: 98 Location: Curtea de Arges, Romania
|
|
Posted: Sun May 15, 2011 3:21 pm |
|
|
In the hardware interface sould be
Voltage on VCAP/VDDCORE with respect to VSS ....................................................................................... 2.25V to 2.75V
VCAP / VDDCORE pin disconnects the source and put a 100uF capacitor, and go.
I had the same problem but it resolved dsPIC33FJ64GS406. |
|
|
|