Dfinitski / N7DDC-ATU-100-mini-and-extended-boards

304 stars 140 forks source link

PICkit 3 tips #20

Closed 3d0g closed 3 years ago

3d0g commented 3 years ago

Been a long time since I messed with PIC micros. Didn't have any fancy gui tools back then. In PICkit 3 I can read and verify the PIC16F1938 fine, check communication says PIC device found, but when I try to write the firmware hex file, I get a "Programming failed at Program Memory address 0x000001." Re-reading the PIC shows that only the 1st word was written to Program Memory and 1st byte to EEPROM Data.

What am I doing wrong?

Dfinitski commented 3 years ago

I saw the similar error when my Pickit3 programmer was burned. I had burned him when Iwas playing with a tuner board, some bad power sequence or something like this, I did not remember. Just ordered a new one.

ср, 23 сент. 2020 г. в 15:50, 3d0g notifications@github.com:

Been a long time since I messed with PIC micros. Didn't have any fancy gui tools back then. In PICkit 3 I can read and verify the PIC16F1938 fine, check communication says PIC device found, but when I try to write the firmware hex file, I get a "Programming failed at Program Memory address 0x000001." Re-reading the PIC shows that only the 1st word was written to Program Memory and 1st byte to EEPROM Data.

What am I doing wrong?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Dfinitski/N7DDC-ATU-100-mini-and-extended-boards/issues/20, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD6YS2KU6IHZMLSOIMJNETTSHJ3UHANCNFSM4RXS6SYA .

3d0g commented 3 years ago

It's a brand-new PICkit 3. Just unboxed it today. I'll rummage through the parts bins and see if I've got a DIP PIC somewhere to test the PICkit with. SSOP PICs are brutal on these old eyes.

Dfinitski commented 3 years ago

It does not matter what kind of package you are programming. You can read the chip, so all the connections are good., but for successful writing, the programmer should generate relatively high voltage on the MCLR pin, about 8 Volts. If you have an oscilloscope, you can check this. Also you can try to use the programmer in a LVP mode, search the options. In this case a MCLR voltage is not exceeding 5 Volts.

ср, 23 сент. 2020 г. в 16:41, 3d0g notifications@github.com:

It's a brand-new PICkit 3. Just unboxed it today. I rummage through the parts bins and see if I've got a DIP PIC somewhere to test the PICkit with. SSOP PICs are brutal on these old eyes.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Dfinitski/N7DDC-ATU-100-mini-and-extended-boards/issues/20#issuecomment-698027470, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD6YS2LAOSFLKUV7NH653WLSHKBTRANCNFSM4RXS6SYA .

rogerclarkmelbourne commented 3 years ago

BTW. I have an old PICKit2. Would this work ? I think the PIC16F1938 is supported.

Edit.

Looks like the 1938 is not supported , by the PICKit2 :-( Only the 1936 and 1937

Edit 2. Umm. Depends where I look.

This site said its supported

http://www.expkits.com/?s=pickit2_device_support_list.htm

But the forum on Microchip didnt seem to think it was

Dfinitski commented 3 years ago

Hi, Roger It is not supported but you can find in the Internet updated file for new PIC support.

ср, 23 сент. 2020 г. в 17:11, Roger Clark notifications@github.com:

BTW. I have an old PICKit2. Would this work ? I think the PIC18F1938 is supported.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Dfinitski/N7DDC-ATU-100-mini-and-extended-boards/issues/20#issuecomment-698036430, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD6YS2I626IYMDB5UODSN3LSHKFEHANCNFSM4RXS6SYA .

rogerclarkmelbourne commented 3 years ago

Thanks David, I'm a bit cautious about attempting to even change the EEPROM, but I have another kit on order from China, so will probably do some serious hacking on that one when it arrives

Dfinitski commented 3 years ago

I have ordered Microchip Snap board - very cheap and compatible with all the new PICs. But only LVP programming. Rapidly fast delivering from Microchip Direct Store, 2 days.

ср, 23 сент. 2020 г. в 17:34, Roger Clark notifications@github.com:

Thanks David, I'm a bit cautious about attempting to even change the EEPROM, but I have another kit on order from China, so will probably do some serious hacking on that one when it arrives

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Dfinitski/N7DDC-ATU-100-mini-and-extended-boards/issues/20#issuecomment-698042781, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD6YS2OWJV7EISIGJB3MCRLSHKH2ZANCNFSM4RXS6SYA .

rogerclarkmelbourne commented 3 years ago

Thanks David.

I'm actually in the process of porting your board to use a STM32F103 micro-controller, as I"m more used to using ARM MCUs.

However as you will appreciate, its not a 5 minute job, as I also need to layout the board again, using KiCad, as well as port the firmware... So I estimate it will be Christmas before I have anything vaguely working

Dfinitski commented 3 years ago

Why dont you use PIC32 ? Those are ARM too :)

ср, 23 сент. 2020 г. в 17:53, Roger Clark notifications@github.com:

Thanks David.

I'm actually in the process of porting your board to use a STM32F103 micro-controller, as I"m more used to using ARM MCUs.

However as you will appreciate, its not a 5 minute job, as I also need to layout the board again, using KiCad, as well as port the firmware... So I estimate it will be Christmas before I have anything vaguely working

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Dfinitski/N7DDC-ATU-100-mini-and-extended-boards/issues/20#issuecomment-698047805, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD6YS2ILADXPJWYGPR3OXYDSHKKCHANCNFSM4RXS6SYA .

rogerclarkmelbourne commented 3 years ago

I'm most comfortable with STM32 MCU's.

3d0g commented 3 years ago

OK, I got absolutely nowhere with PICkit 3 v3.01 software, every PIC variant I had in the bins failed. So I ordered another programmer but while waiting I figured I'd try MPLAB X today. Reverted the programmer back to MPLAB mode and lo and behold, MPLAB IPE programs up the PIC just fine. Tuner is alive and kicking!

Now I remember why I quit using Microchip in my projects. ;-) Thanks for the assist folks.

Dfinitski commented 3 years ago

That the reason why Pickit 3.xx is no longer supported by Microchip and it is impossible to get it from offciall Microchip's resources.

3d0g commented 3 years ago

Just to finally close the loop on this for others that may be reading, I finally got in a GENUINE PICkit 3 from eBay and it worked flawlessly with the PICkit programming software. My original programmer was clearly a chinese knock-off. The board looks completely different than the Microchip one, even though the case is identical. Lesson learned.

MOUSE1025 commented 3 years ago

Dave, Thanks for the heads up. I am going to check mine and see if it is a knock-off. Kind regards, Christopher

On Sat, Oct 3, 2020 at 3:04 PM 3d0g notifications@github.com wrote:

Just to finally close the loop on this for others that may be reading, I finally got in a GENUINE PICkit 3 from eBay and it worked flawlessly with the PICkit programming software. My original programmer was clearly a chinese knock-off. The board looks completely different than the Microchip one, even though the case is identical. Lesson learned.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Dfinitski/N7DDC-ATU-100-mini-and-extended-boards/issues/20#issuecomment-703170259, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALPPXB5YIAFIUXIN5D7QWWTSI6NX5ANCNFSM4RXS6SYA .

kk4das commented 2 years ago

I know this is an older thread but I experienced a similar problem.

I just completed my tuner build and wanted to update to the 3.2 firmware. I have never used anything PIC before but I'm a 40 year plus software guy so "How hard can it be?" :)

I'm using a PICkit 3 clone randomly chosen from the dozens on the Bay. Downloaded the 3.01 programming software from the Microchip archive. Every attempt at a write fails on verify and similar to the OP - a read appears to have only written the first byte or perhaps some random bytes. That said, after multiple attempts at writes I popped the display back on and the doggone thing booted up in the 3.2 firmware and as far as I can tell it works flawlessly.

I'm probably going to lead a Maker's group build of this tuner so I'd need to be able to reliably work on it. Don't know if there is a knock off programmer vendor that is more reliable or if there is another approach I could try. "Geniune" PICkit 3's go for ridiculous prices on the Bay. PICKit 4 is $70 direct from Microchip so maybe that is the way to go.

Any suggestions would be appreciated.

Thanks and 73, Dean KK4DAS

Dfinitski commented 2 years ago

Hi. Chinese clone of Pickit 3 works great and has a reasonable price

On Fri, Nov 19, 2021, 7:48 AM kk4das @.***> wrote:

I know this is an older thread but I experienced a similar problem.

I just completed my tuner build and wanted to update to the 3.2 firmware. I have never used anything PIC before but I'm a 40 year plus software guy so "How hard can it be?" :)

I'm using a PICkit 3 clone randomly chosen from the dozens on the Bay. Downloaded the 3.01 programming software from the Microchip archive. Every attempt at a write fails on verify and similar to the OP - a read appears to have only written the first byte or perhaps some random bytes. That said, after multiple attempts at writes I popped the display back on and the doggone thing booted up in the 3.2 firmware and as far as I can tell it works flawlessly.

I'm probably going to lead a Maker's group build of this tuner so I'd need to be able to reliably work on it. Don't know if there is a knock off programmer vendor that is more reliable or if there is another approach I could try. "Geniune" PICkit 3's go for ridiculous prices on the Bay. PICKit 4 is $70 direct from Microchip so maybe that is the way to go.

Any suggestions would be appreciated.

Thanks and 73, Dean KK4DAS

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Dfinitski/N7DDC-ATU-100-mini-and-extended-boards/issues/20#issuecomment-974088064, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD6YS2PCYY7XSLAULP2FUGTUMZIULANCNFSM4RXS6SYA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

3d0g commented 2 years ago

The MPLAB IPE works fine with the PICKit clones in my experience. It's just the PICKit 3 software that has issues.