Help to program a dsPIC33FJ64GP802

Started by lars-musik, October 25, 2019, 11:41:22 AM

Previous topic - Next topic

lars-musik

Hi!
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...

Programming...

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?

Thanks!




vigilante397

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
  • SUPPORTER
"Some people love music the way other people love chocolate. Some of us love music the way other people love oxygen."

www.sushiboxfx.com

ElectricDruid

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.

lars-musik

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.