K33rg4t3
Full Member level 3
![Full Member level 3](/styles/images/ranks/elevel3.gif)
Hello all.
This is my first post here!
I am trying to program PIC18F45K50 with PICkit2.
I have sucessfully programmed several chips with this PICkit2, but the PIC18F45K50 turned out to be not supported.
So I've downloaded modified devices file from Microchip forums.
After that the chip was sucessfully recognized, but it always say that "All protect" is enabled (Code Protection).
Even after I erase the chip from PICkit2, it still says that "All protect" is ON.
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.
Here are the screenshots from PICkit2 IDE:
First is reading the brand-new MCU, second is writing, and third is reading it again.
![1read.png 1read.png](https://www.edaboard.com/data/attachments/55/55062-dad1b82e3ddd3ff7ae0c6f66275ace5f.jpg)
![2trying_to_write.png 2trying_to_write.png](https://www.edaboard.com/data/attachments/55/55063-e4878a22616a77f19fddb03b235b3392.jpg)
![3read.png 3read.png](https://www.edaboard.com/data/attachments/55/55064-843bd8afd2c96ec67f6fe5d60bbd33e4.jpg)
And this is the devices file used:
View attachment PK2DeviceFile.zip
Please help, I really need to program this PIC18F45K50!
This is my first post here!
I am trying to program PIC18F45K50 with PICkit2.
I have sucessfully programmed several chips with this PICkit2, but the PIC18F45K50 turned out to be not supported.
So I've downloaded modified devices file from Microchip forums.
After that the chip was sucessfully recognized, but it always say that "All protect" is enabled (Code Protection).
Even after I erase the chip from PICkit2, it still says that "All protect" is ON.
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.
Here are the screenshots from PICkit2 IDE:
First is reading the brand-new MCU, second is writing, and third is reading it again.
![1read.png 1read.png](https://www.edaboard.com/data/attachments/55/55062-dad1b82e3ddd3ff7ae0c6f66275ace5f.jpg)
![2trying_to_write.png 2trying_to_write.png](https://www.edaboard.com/data/attachments/55/55063-e4878a22616a77f19fddb03b235b3392.jpg)
![3read.png 3read.png](https://www.edaboard.com/data/attachments/55/55064-843bd8afd2c96ec67f6fe5d60bbd33e4.jpg)
And this is the devices file used:
View attachment PK2DeviceFile.zip
Please help, I really need to program this PIC18F45K50!