Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unable to program PIC18F45K50 with PICkit2
02-08-2015, 06:20 PM, (This post was last modified: 02-08-2015, 06:21 PM by B4lfiz4r.)
#1
Unable to program PIC18F45K50 with PICkit2
Hello all.

I am creating PIC18F45K50 pinguino.

I've stuck at uploading the hex file from PINGUINO site to PIC18F45K50 chip.

I am unable to program PIC18F45K50 with PICkit2. I have updated my Devices file to include that chip (the new devices file is on Microchip forums), the PIC18F45K50 is recognized, but I can't write hex to it because it has "All protect" red message shown all the time.
I have tried with several different PIC18F45K50 and the problem is always the same.

Please note that I have already programmed PIC18F4550 (without 'K') and it worked fine.
My current hardware setup (I am trying to program PIC18F45K50 on breadboard) is also OK, because it works if I replace the PIC18F45K50 with PIC18F4550.

So I have no idea what's wrong. Can anyone help me? I didn't set any "code protect" bits.

I am attaching screenshots from PICkit2 software. It clearly shows that only first two bytes of PINGUINO hex files are properly written to PIC18F45K50. The rest is broken. Also, the verification fails after writing.

PS: I was able to program correctly multiple PICs with my PICkit, including 24F, and 30 families, so I have really no idea why I'm having such bugs with PIC18F45K50.

Please help.


Attached Files Thumbnail(s)
           
Reply
04-08-2015, 12:23 PM,
#2
RE: Unable to program PIC18F45K50 with PICkit2
How is your 45K50 wired ? Did you follow this schematics ?
It is easier to complain than it is to do, but it is better to do than it is to complain.
Reply
06-08-2015, 02:55 PM,
#3
RE: Unable to program PIC18F45K50 with PICkit2
Yes, I made it that way, but it should not really be the case because I can't even get my hex on that PIC.

I have already made Pinguino on PIC18F4550 (without "K") twice, and there was no troubles.
I even programmed the PIC18F4550 for my second pinguino in the current breadboard setup.
By the way - it's the great project, keep it up, I see you're the one of the authors Big Grin

but still, I can't program any of my PIC18F45K50. The "All protect" message in red is shown all the time, even after Erase or after writing a blank hex with "Code protect" disabled.

Regis, what programmer are you using to get your hex on PIC18F45K50 ??
Reply
06-08-2015, 07:16 PM,
#4
RE: Unable to program PIC18F45K50 with PICkit2
I use a (clone of a) pickit3.
It is easier to complain than it is to do, but it is better to do than it is to complain.
Reply
07-08-2015, 09:31 PM,
#5
RE: Unable to program PIC18F45K50 with PICkit2
What's the schematic of your clone? Can you give me more information?
Reply
11-08-2015, 07:42 AM,
#6
RE: Unable to program PIC18F45K50 with PICkit2
(07-08-2015, 09:31 PM)B4lfiz4r Wrote: What's the schematic of your clone? Can you give me more information?

No schematic. I bought it from surelectronics.
It is easier to complain than it is to do, but it is better to do than it is to complain.
Reply
11-08-2015, 09:28 AM,
#7
RE: Unable to program PIC18F45K50 with PICkit2
I also got one like that - works fine, very cheap.

John
Reply
11-08-2015, 12:22 PM,
#8
RE: Unable to program PIC18F45K50 with PICkit2
Is it possible to program PIC18F45K50 from the PIC18F4550 board? Use the self (well,not really self in this case) replication idea?
http://blog.pinguino.cc/?p=135
Reply
11-08-2015, 01:32 PM,
#9
RE: Unable to program PIC18F45K50 with PICkit2
yes it is.
It is easier to complain than it is to do, but it is better to do than it is to complain.
Reply
12-08-2015, 12:43 AM,
#10
RE: Unable to program PIC18F45K50 with PICkit2
Would be the schematic identical to the one from that post?
And what about the software?
What parts of this: http://www.hackinglab.org/pinguino/downl...rammer.pde would have to be changed?
Which datasheets would be helpfull as reference?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)