PIC24FJ128GA202 PICKit3 Programming problem

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
leoo
Flowcode V4 User
Posts: 55
Joined: Mon Jan 19, 2009 11:43 am
Has thanked: 41 times
Been thanked: 9 times

PIC24FJ128GA202 PICKit3 Programming problem

Post by leoo »

Hi,
When trying to download a hex file, generated by FC7, to the PIC24 using Microchip IPE3.51 and a PICKit3, I get the following error message:

configuration memory
Address: 157fc Expected Value: bf57 Received Value: b757
Failed to program device
2017-09-20 16:19:18 +0200 - Programming failed

I have changed settings in Config Word 2 and get the following e.g. FC gives a value of 0xfa35 and IPE gives "Expected Value: ba35 Received value b235" or FC gives a value of fa17 and IPE gives "Expected Value: ba17 Received value b217", as if bit 11 is permanently 0.

Can someone please offer some suggestions as to how to resolve this?

Kind regards.
Leo

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: PIC24FJ128GA202 PICKit3 Programming problem

Post by Benj »

Hi Leo,

We default to an erased / unprogrammed / set bit for the unused configuration bits. Usually this is fine but occasionally it can cause a problem, like the problem you're seeing. I'm guessing the chip has a bit reserved which has to always be 0 and this is causing the verification fail.

Luckily in Flowcode you can simply type in the value you want to set. I changed the value here from 0xbf57 to 0xb757 without any of the settings changing.
Config.jpg
Config.jpg (74.92 KiB) Viewed 2652 times
Hopefully this should solve the problem for you.

Post Reply