Help to program a dsPIC33FJ64GP802?

Started by AustinGreyson, January 07, 2021, 03:06:41 AM

Previous topic - Next topic

AustinGreyson

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"

ElectricDruid

Hi Austin,

Did you ever get this sorted out?

MPLAB is able to read the chip version correctly, so it can't be all bad. Is there anything else connected to the ICSP pins? (CLK/DAT) A pot or other load on those pins will mess up the programming. You don't say whether this is being programmed in a ZIF socket or in a circuit or where.

MichaelJones

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?

Wavelength

Austin,

Best bet would be go to the Microchip forums there are a lot of smart people up there.

Thanks,
Gordon
Wavelength Audio, ltd.

garcho

  • SUPPORTER
"...and weird on top!"

duck_arse

AustinGreyson got a reply from MichaelJones. maybe if we gave them their own board, they'd talk to each other and stop bothering the rest of us.

that ElectricDruid looks suss, to.
You hold the small basket while I strain the gnat.

ElectricDruid