PIC18F45K22 programming fails

Moderator: Benj

User avatar
fotios
Posts: 396
Joined: Mon Feb 08, 2010 10:17 am
Location: Greece
Has thanked: 79 times
Been thanked: 95 times
Contact:

PIC18F45K22 programming fails

Postby fotios » Fri Jun 14, 2013 9:11 am

Is there any issue with P18F45K22? I try to compile a simple fcf on it to show a simple text on LCD e-block but the compiler shows a message that "programming is failed" followed by some numbers. My setup is:
EB-006-7 programmer
FC v5.5.2.1
PPP v3.14.20.35
My PC OS is Win7 Pro 64bit.

Thanks for any help
Best Regards FOTIS ANAGNOSTOU

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

Re: PIC18F45K22 programming fails

Postby Benj » Fri Jun 14, 2013 9:19 am

Hello Fotios,

Yes we are aware of a programming issue with the k22 devices. We have previously tried multiple times to get it working but it just will not fall into line like the other chips. Therefore the K22 devices cannot be programmed directly using the EB006. You could use the PICkit interface on the board and the USB/ICSP jumper to allow the chip to be reprogrammed via a Pickit programmer.
These users thanked the author Benj for the post:
fotios (Fri Jun 14, 2013 10:22 am)
Rating: 5.88%
 

User avatar
fotios
Posts: 396
Joined: Mon Feb 08, 2010 10:17 am
Location: Greece
Has thanked: 79 times
Been thanked: 95 times
Contact:

Re: PIC18F45K22 programming fails

Postby fotios » Fri Jun 14, 2013 10:28 am

Thanks Ben
I already tried it with success using the MPLAB ICD2 (i haven't available a Pickit programmer).
Have a nice day
Fotis
These users thanked the author fotios for the post:
Benj (Fri Jun 14, 2013 11:51 am)
Rating: 5.88%
 
Best Regards FOTIS ANAGNOSTOU

User avatar
fotios
Posts: 396
Joined: Mon Feb 08, 2010 10:17 am
Location: Greece
Has thanked: 79 times
Been thanked: 95 times
Contact:

Re: PIC18F45K22 programming fails

Postby fotios » Fri Jun 14, 2013 6:17 pm

Hi Ben

I was wrong, neither ICD2 can program P18F45K22. During programming process with MPLAB IDE a "warning" pop-up window appears that says that the standard VPP = 12V of ICD2 exceeds this of 18F45K22. I looked in electrical specs of this micro and indeed is refered: Voltage at pin MCLR/VPP/RE3 = 11V max.
Furthermore, suggested programming devices by Microchip for this familly of micros are only Pickit2, Pickit3 and MPLAB ICD3.
I am wondering, maybe the problem of EB-006 programmer is the same with this of ICD2?

Fotis
Best Regards FOTIS ANAGNOSTOU

saschech@gmx.de
Posts: 714
Joined: Wed Jan 31, 2007 12:41 pm
Has thanked: 1 time
Been thanked: 26 times
Contact:

Re: PIC18F45K22 programming fails

Postby saschech@gmx.de » Fri Jun 14, 2013 9:21 pm

Hello fotios

ICD2 dont Support the 18F45K22.At ebay pickit3 for 23€.......;
I order one no probs.....

Regards wolfgang
Attachments
icd2 no support.gif
icd2 no support.gif (34.44 KiB) Viewed 3938 times
These users thanked the author saschech@gmx.de for the post:
fotios (Fri Jun 14, 2013 10:12 pm)
Rating: 5.88%
 

User avatar
fotios
Posts: 396
Joined: Mon Feb 08, 2010 10:17 am
Location: Greece
Has thanked: 79 times
Been thanked: 95 times
Contact:

Re: PIC18F45K22 programming fails

Postby fotios » Fri Jun 14, 2013 10:19 pm

Thanks Wolfgang

Indeed, i was thinking to buy one pickit3, is not so expensive and i like very much these micros mainly for their big program memory and for their stack of 32 levels.

Regards

Fotis
Best Regards FOTIS ANAGNOSTOU

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

Re: PIC18F45K22 programming fails

Postby Benj » Mon Jun 17, 2013 7:26 pm

Hello,

EB006 v8 has an inbuilt charge pump which allows the VPP voltage to be varied, version 7 boards and before did not have this feature so the VPP voltage is fixed at VPSU - 0.7V which for a 12V PSU works out at around 11.3V.

The PPP software however does not support this variable VPP so be careful. Future software may support the feature.

PICkit 3 is a good programmer to have in your arsenal as it lets you program these odd devices and it also allows you to directly program chips on your own circuitry using a simple ICSP header should you ever need to.