Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

PIC KIT 3 not able to program dsPIC

Hello everyone. I have to use a dsPIC30F2010 for a project. So to program it, I just bought a PIC KIT 3 from a licensed manufacturer of Microchip, It's not a clone that's what they claim. I am not able to program the dsPIC using the PK3. I have read many documents and also followed the steps other people followed when they encounterd a problem with PK3. I have used PK2 for atleast a decade using standalone PK2 software. Here's what I have-
1. I have connected all the pins required for programing and to power all the peripherals.
2. I am using MPLAB X IPE v5.45 to program.
3. I am able to program PIC16F777 and other PICs using a different ZIF Programing socket.
4. I have soldered another ZIF on a zero PCB and made connections according to dsPIC30F2010.
Connections are:
Pin no. 1-MCLR connected to VPP of PK3 and tied to VDD using a 4K7 resistor
Pin no. 13-Vdd 20-Vdd 28-AVdd to VDD of PK3
Pin no. 8-Vss 19-Vss 27-AVss to VSS of PK3
Pin no. 17-PGD to PGD of PK3
Pin no. 18-PGC to PGC of PK3
Also ceramic 0.1 uf connected between each VDD and VSS near dsPIC
I have cross checked the connections atleast 100 times. I also tried to program using external 5 V supply but still unable to program.

I also have checked VPP voltage level rising using a DSO, also I noticed PGC and PGD pins have some waveforms when I click program or erase or read, So there is no short or fault in connections.
Following error occurs after I try to program:
"program memory: start address = 0x0, end address = 0x5ff
configuration memory
program memory
Address: 0 Expected Value: 404fa Received Value: 3e
Failed to program device"
 
dsPIC30F2010.png
I couldn't find other pins except 17th-PGD and 18th-PGC. Am I missing something?
 
Check that MCLR rises quickly enough during programming.
It should go up to around 12V (VPP), not just 5V. Confirm that PK3 is outputting VPP ( nearly 12V) when programming.
Some PICkit 3 units (even originals) fail to deliver VPP >11V consistently, which causes this type of verify failure, especially on older devices like dsPIC30F.
Test VPP during programming. If it's <11.5V, the chip may not enter programming mode.
If this dsPIC30F2010 was previously programmed and the Code Protect fuses were enabled (CP or CPGx), then it may block further programming or erase attempts. Try to mass erase the chip from IPE first. Check the Configuration bits and make sure CP=OFF.
For convenience, you can make a breakout board with your dspic microcontrollers.
 
If you're trying to program in-circuit, the PK3 seems to have very low drive current and you're best off NOT powering the circuit with PK3 while programming, so turn off the power pin and use the external power supply (but make sure ground is connected to the programmer) and uncheck the box in the IDE that sends power from PK3 to your circuit.
 
If you're trying to program in-circuit, the PK3 seems to have very low drive current and you're best off NOT powering the circuit with PK3 while programming, so turn off the power pin and use the external power supply (but make sure ground is connected to the programmer) and uncheck the box in the IDE that sends power from PK3 to your circuit.

Exactly, the PK3 can just about power a bare chip, if it's in-circuit, it might not have enough power.

The PK4 is a LOT better in that respect.

However, if it failed because of that, it gives you a message about the voltage being too low.
 

Latest threads

New Articles From Microcontroller Tips

Back
Top