Author Topic: Help to program a dsPIC33FJ64GP802  (Read 1109 times)


Help to program a dsPIC33FJ64GP802
« on: October 25, 2019, 11:41:22 AM »
After some successful programmings of PICs for Tom’s TapLFO, TAPLFO3 and some midi stuff (all from readymade HEX files) I fail to program a dsPIC for the 4seconds Tap Delay.
My setup consists of MPLAB X IPE 5.25 and an OLIMEX Pic-KIT 3 clone.
The chip is recognized by the software but the final programming fails.
Here’s the message MPLAB gives out:

“Connecting to MPLAB PICkit 3...

Currently loaded firmware on PICkit 3
Firmware Suite Version.....01.56.00
Firmware type..............dsPIC33F/24F/24H
Programmer to target power is enabled - VDD = 3,375000 volts.
Target device dsPIC33FJ64GP802 found.
Device Revision ID = 3003
Loading code from E:\DIY\Electric Druid Tap Delay 4 Sec\DIGIDELAY.HEX....
2019-10-25 17:29:16 +0200 - Hex file loaded successfully.
2019-10-25 17:29:18 +0200 - Programming...

Device Erased...


The following memory area(s) will be programmed:
program memory: start address = 0x0, end address = 0x47ff
configuration memory
Failed to program device”

And this is how I connect the programmer to the dsPIC.

Any ideas where to look?




Re: Help to program a dsPIC33FJ64GP802
« Reply #1 on: October 25, 2019, 12:20:27 PM »
I've only dealt with PICs in circuit, do the VSS, AVDD and AVSS pins need to be connected for it to be flashed? I would assume if the PICkit is recognizing the PIC then it's fine without, but that's the only thing I could think of :P
"I'm not sure what "serious design flaws" you see. Does it explode or poison your dog?" - PRR


Re: Help to program a dsPIC33FJ64GP802
« Reply #2 on: October 25, 2019, 01:29:27 PM »
Yes, the other power pins also need to be connected, and the Vcap pin needs a 10uF cap from it to ground too. It stabilises the processor core voltage.

Finally, watch out on the power. Are you supplying power to the chip from the PICKit3, or to the PICKit3 from the circuit?

If it's going from the PICKit3 to the circuit, you might be sending a +5V USB supply, which it won't like.


Re: Help to program a dsPIC33FJ64GP802
« Reply #3 on: October 25, 2019, 05:12:58 PM »
I see. I just populated the board and soldered the 5 PIC- Kit cables to the IC socket (measured the 3V rail) and gave it a try. And of course, it worked.
Thanks for your swift help.