New to PicKit 3
Moderator: Benj
- JLeith
- Posts: 537
- Joined: Wed Nov 14, 2012 7:49 pm
- Location: British Columbia Canada
- Has thanked: 146 times
- Been thanked: 26 times
- Contact:
New to PicKit 3
Hi all
My PicKit 3 just arrived and with the help of Benj I was able to get the PicKit 3 program loaded.
After that I was not getting any programming of PIC18F26K80.
The standalone loader says it can't find the PIC18. I had to do a "manual Select". I found the PIC18.
Here is the Flowcode Compiler settings
I had this sort of problem when back in the day with Pickit 2 and Martin help.
When I load the Pic18 from Flowcode I get .......................endless
I google PicKit 3 settings and I think they are the same. Also I printed off the Pickit 3 manual.
I have attached my Flowcode design
I have the PicKit 3 connect to my pic
Pin 1 - MCLR with a 10K to VCC
Pin 2 - VCC
Pin 3 - GRD
Pin 4 - Data
Pin 5 - Clock
Pin 6 - X
John
My PicKit 3 just arrived and with the help of Benj I was able to get the PicKit 3 program loaded.
After that I was not getting any programming of PIC18F26K80.
The standalone loader says it can't find the PIC18. I had to do a "manual Select". I found the PIC18.
Here is the Flowcode Compiler settings
I had this sort of problem when back in the day with Pickit 2 and Martin help.
When I load the Pic18 from Flowcode I get .......................endless
I google PicKit 3 settings and I think they are the same. Also I printed off the Pickit 3 manual.
I have attached my Flowcode design
I have the PicKit 3 connect to my pic
Pin 1 - MCLR with a 10K to VCC
Pin 2 - VCC
Pin 3 - GRD
Pin 4 - Data
Pin 5 - Clock
Pin 6 - X
John
- Attachments
-
- PicKit3 Program.jpg (59.06 KiB) Viewed 14287 times
-
- PicKit 3 Settings.png
- (19.3 KiB) Downloaded 3649 times
-
- OLED July 22 Version 2019.fcfx
- (200.33 KiB) Downloaded 276 times
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: New to PicKit 3
Hi John,
I believe the issue is with that programming PICkit stand-alone software.
What you can try is running the programming software.
Select Tools, Revert to MPLAB mode.
Download latest MPLABx from here (5.20 at the time of writing).
When installing, on the Setup screen, only have MPLAB IPE and 8bit selected.
When the installation has finished, it will notify you about using the switcher.
If you not used MPLAB before then you can ignore that message.
Run IPE, in the Device window, enter 26k80 then select Apply.
You should see your PICkit listed in the Tool: part.
Select connect.
If you see Connection failed in the output window, then make sure you have reverted back MPLAB mode as described above, Quit IPE, then reload.
If all is up an running you should see: You can use Hex File: Browse to load the hex file generated by Flowcode.
There is help here on setting up PICkit 3 (PICkit3 - IPE (NEW)) with Flowcode.
Best to make sure IPE can program your microcontroller first.
I believe the issue is with that programming PICkit stand-alone software.
What you can try is running the programming software.
Select Tools, Revert to MPLAB mode.
Download latest MPLABx from here (5.20 at the time of writing).
When installing, on the Setup screen, only have MPLAB IPE and 8bit selected.
When the installation has finished, it will notify you about using the switcher.
If you not used MPLAB before then you can ignore that message.
Run IPE, in the Device window, enter 26k80 then select Apply.
You should see your PICkit listed in the Tool: part.
Select connect.
If you see Connection failed in the output window, then make sure you have reverted back MPLAB mode as described above, Quit IPE, then reload.
If all is up an running you should see: You can use Hex File: Browse to load the hex file generated by Flowcode.
There is help here on setting up PICkit 3 (PICkit3 - IPE (NEW)) with Flowcode.
Best to make sure IPE can program your microcontroller first.
Martin
- 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: New to PicKit 3
Hi John,
Yes use the IPE settings with a fresh copy of MPLABX installed.
I also notice in the compiler options that you have changed the Compiler Tab settings rather than the Programmer Tab settings. This is not going to work
Yes use the IPE settings with a fresh copy of MPLABX installed.
I also notice in the compiler options that you have changed the Compiler Tab settings rather than the Programmer Tab settings. This is not going to work
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
- JLeith
- Posts: 537
- Joined: Wed Nov 14, 2012 7:49 pm
- Location: British Columbia Canada
- Has thanked: 146 times
- Been thanked: 26 times
- Contact:
Re: New to PicKit 3
Thank you Martin & Ben for your help.
As i thought I would crash and burn going into the new world of PicKit 3.
I down loaded MPLAB x IDE V5.20
Yes I have not worked with MPLAB in the Pickit 2 time.
For the Flowcode I can't seam to find the correct settings to capture HEX
Here is my not so perfect settings From Google I see screens that have the Pickit 3 listed in the "PIC Default" area not below PicKit 2.
I'm off to see if I can get MPLAB X to work.
As i thought I would crash and burn going into the new world of PicKit 3.
I down loaded MPLAB x IDE V5.20
Yes I have not worked with MPLAB in the Pickit 2 time.
For the Flowcode I can't seam to find the correct settings to capture HEX
Here is my not so perfect settings From Google I see screens that have the Pickit 3 listed in the "PIC Default" area not below PicKit 2.
I'm off to see if I can get MPLAB X to work.
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: New to PicKit 3
Hi John,
You just want to try with IPE.
Although its apart of MPLABx download. you don't want to run MPLABx as that is when you use C code and not Flowcode.
Therefore you should have un-selected the box so that it did not install?
To Run IPE just click on 'Type here to search' next to the windows icon, bottom left and enter ipe: Then you just click on the IP icon.
You just want to try with IPE.
Although its apart of MPLABx download. you don't want to run MPLABx as that is when you use C code and not Flowcode.
Therefore you should have un-selected the box so that it did not install?
To Run IPE just click on 'Type here to search' next to the windows icon, bottom left and enter ipe: Then you just click on the IP icon.
Martin
- JLeith
- Posts: 537
- Joined: Wed Nov 14, 2012 7:49 pm
- Location: British Columbia Canada
- Has thanked: 146 times
- Been thanked: 26 times
- Contact:
Re: New to PicKit 3
I'm trying to find the IPE version
The notes say IDE is the version that is more powerful,
I will try again
John
The notes say IDE is the version that is more powerful,
I will try again
John
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: New to PicKit 3
Hi John, Not sure about that site.
The link I posted above is for the genuine Microchip website.
Yes, that is when you just have just the IPE selected.
The link I posted above is for the genuine Microchip website.
JLeith wrote:I see a option in step 5
Yes, that is when you just have just the IPE selected.
Martin
- JLeith
- Posts: 537
- Joined: Wed Nov 14, 2012 7:49 pm
- Location: British Columbia Canada
- Has thanked: 146 times
- Been thanked: 26 times
- Contact:
Re: New to PicKit 3
This is all new to me.
I have the IPE loaded.
The actions look like I need to have the PicKit3 connect to my PIC18F26K80 before I can generate my Hex file from my FC project.
Back in PICKit 2 I could generate hex without being connected to the PIC directly
All new information for me
These are my settings in FC
Under Compiler connection
C:\Program Files (x86)\Microchip\MPLABX\v5.20\mplab_platform\mplab_ipe\ipecmd.exe
/P$(chip) /F"$(outdir)$(target).hex" /TPPK3 /M /OL /W5
Compiler Message
Target folder: C:\Users\jleit\Desktop\Carter
Source name: C:\Users\jleit\Desktop\Carter\OLED July 22 Version 2019.fcfx
Title:
Description:
Device: PIC.18F.18F25K80
Generated by: Flowcode v6.1.4.0
Date: Thursday, August 01, 2019 11:23:42
Users: 1
Registered to: Default Flowcode Name
Licence key: EA6R55
http://www.matrixtsl.com
Launching the compiler...
C:\Program Files (x86)\Microchip\MPLABX\v5.20\mplab_platform\mplab_ipe\ipecmd.exe /P18F25K80 /F"C:\Users\jleit\Desktop\Carter\OLED July 22 Version 2019.hex" /TPPK3 /M /OL /W5
....
*****************************************************
Connecting to MPLAB PICkit 3...
Invalid command response (sent 0x41, received 0x3f)
The target circuit may require more power than the debug tool can provide. An external power supply might be necessary.
Connection Failed.
.
*****************************************************
Connecting to MPLAB PICkit 3...
Invalid command response (sent 0x41, received 0x3f)
The target circuit may require more power than the debug tool can provide. An external power supply might be necessary.
Connection Failed.
Programming Target Failed.
.
C:\Program Files (x86)\Microchip\MPLABX\v5.20\mplab_platform\mplab_ipe\ipecmd.exe reported error code 7
FINISHED
John
I have the IPE loaded.
The actions look like I need to have the PicKit3 connect to my PIC18F26K80 before I can generate my Hex file from my FC project.
Back in PICKit 2 I could generate hex without being connected to the PIC directly
All new information for me
These are my settings in FC
Under Compiler connection
C:\Program Files (x86)\Microchip\MPLABX\v5.20\mplab_platform\mplab_ipe\ipecmd.exe
/P$(chip) /F"$(outdir)$(target).hex" /TPPK3 /M /OL /W5
Compiler Message
Target folder: C:\Users\jleit\Desktop\Carter
Source name: C:\Users\jleit\Desktop\Carter\OLED July 22 Version 2019.fcfx
Title:
Description:
Device: PIC.18F.18F25K80
Generated by: Flowcode v6.1.4.0
Date: Thursday, August 01, 2019 11:23:42
Users: 1
Registered to: Default Flowcode Name
Licence key: EA6R55
http://www.matrixtsl.com
Launching the compiler...
C:\Program Files (x86)\Microchip\MPLABX\v5.20\mplab_platform\mplab_ipe\ipecmd.exe /P18F25K80 /F"C:\Users\jleit\Desktop\Carter\OLED July 22 Version 2019.hex" /TPPK3 /M /OL /W5
....
*****************************************************
Connecting to MPLAB PICkit 3...
Invalid command response (sent 0x41, received 0x3f)
The target circuit may require more power than the debug tool can provide. An external power supply might be necessary.
Connection Failed.
.
*****************************************************
Connecting to MPLAB PICkit 3...
Invalid command response (sent 0x41, received 0x3f)
The target circuit may require more power than the debug tool can provide. An external power supply might be necessary.
Connection Failed.
Programming Target Failed.
.
C:\Program Files (x86)\Microchip\MPLABX\v5.20\mplab_platform\mplab_ipe\ipecmd.exe reported error code 7
FINISHED
John
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: New to PicKit 3
No not true.JLeith wrote:The actions look like I need to have the PicKit3 connect to my PIC18F26K80 before I can generate my Hex file from my FC project.
Flowcode is independent of PICkit, so can generate hex file whether PICkit is connected or not.
You must compile to hex, not compile to target!
The way is works is Run IPE, load with the hex file generated by Flowcode.
When you modify flowchart, IPE window will pop up stating Hex fie has been modified, Reload?
Only when you can load and program via IPE you can then try to change settings so you can compile to target.
Martin
- JLeith
- Posts: 537
- Joined: Wed Nov 14, 2012 7:49 pm
- Location: British Columbia Canada
- Has thanked: 146 times
- Been thanked: 26 times
- Contact:
Re: New to PicKit 3
When I have the PICkit 3 not connected and try to generate Hex. FC says target not found
Here is the Mplab finding of the design chip
Connecting to MPLAB PICkit 3...
Currently loaded firmware on PICkit 3
Firmware Suite Version.....01.56.00
Firmware type..............PIC18F
Target voltage detected
Target device PIC18F26K80 found.
Device Revision ID = 6
Here is the Mplab finding of the design chip
Connecting to MPLAB PICkit 3...
Currently loaded firmware on PICkit 3
Firmware Suite Version.....01.56.00
Firmware type..............PIC18F
Target voltage detected
Target device PIC18F26K80 found.
Device Revision ID = 6
- JLeith
- Posts: 537
- Joined: Wed Nov 14, 2012 7:49 pm
- Location: British Columbia Canada
- Has thanked: 146 times
- Been thanked: 26 times
- Contact:
Re: New to PicKit 3
Yes I would like to generate HEX only
But FC won't cooperate
I took of the W5 seeing I'm using the breadboard 4.8v power
John
But FC won't cooperate
I took of the W5 seeing I'm using the breadboard 4.8v power
John
- JLeith
- Posts: 537
- Joined: Wed Nov 14, 2012 7:49 pm
- Location: British Columbia Canada
- Has thanked: 146 times
- Been thanked: 26 times
- Contact:
Re: New to PicKit 3
Here is the FC message with MPLAB not running
Target folder: C:\Users\jleit\Desktop\Carter
Source name: C:\Users\jleit\Desktop\Carter\OLED July 22 Version 2019.fcfx
Title:
Description:
Device: PIC.18F.18F25K80
Generated by: Flowcode v6.1.4.0
Date: Thursday, August 01, 2019 11:56:18
Users: 1
Registered to: Default Flowcode Name
Licence key: EA6R55
http://www.matrixtsl.com
Launching the compiler...
C:\Program Files (x86)\Microchip\MPLABX\v5.20\mplab_platform\mplab_ipe\ipecmd.exe /P18F25K80 /F"C:\Users\jleit\Desktop\Carter\OLED July 22 Version 2019.hex" /TPPK3 /M /OL
.......
*****************************************************
Connecting to MPLAB PICkit 3...
Currently loaded firmware on PICkit 3
Firmware Suite Version.....01.56.00
Firmware type..............PIC18F
....
Target voltage detected
Target Device ID (0x6120) is an Invalid Device ID. Please check your connections to the Target Device.
*****************************************************
.
Connecting to MPLAB PICkit 3...
Currently loaded firmware on PICkit 3
Firmware Suite Version.....01.56.00
Firmware type..............PIC18F
.
Target voltage detected
Target Device ID (0x6120) is an Invalid Device ID. Please check your connections to the Target Device.
Programming Target Failed.
........
C:\Program Files (x86)\Microchip\MPLABX\v5.20\mplab_platform\mplab_ipe\ipecmd.exe reported error code 7
FINISHED
Target folder: C:\Users\jleit\Desktop\Carter
Source name: C:\Users\jleit\Desktop\Carter\OLED July 22 Version 2019.fcfx
Title:
Description:
Device: PIC.18F.18F25K80
Generated by: Flowcode v6.1.4.0
Date: Thursday, August 01, 2019 11:56:18
Users: 1
Registered to: Default Flowcode Name
Licence key: EA6R55
http://www.matrixtsl.com
Launching the compiler...
C:\Program Files (x86)\Microchip\MPLABX\v5.20\mplab_platform\mplab_ipe\ipecmd.exe /P18F25K80 /F"C:\Users\jleit\Desktop\Carter\OLED July 22 Version 2019.hex" /TPPK3 /M /OL
.......
*****************************************************
Connecting to MPLAB PICkit 3...
Currently loaded firmware on PICkit 3
Firmware Suite Version.....01.56.00
Firmware type..............PIC18F
....
Target voltage detected
Target Device ID (0x6120) is an Invalid Device ID. Please check your connections to the Target Device.
*****************************************************
.
Connecting to MPLAB PICkit 3...
Currently loaded firmware on PICkit 3
Firmware Suite Version.....01.56.00
Firmware type..............PIC18F
.
Target voltage detected
Target Device ID (0x6120) is an Invalid Device ID. Please check your connections to the Target Device.
Programming Target Failed.
........
C:\Program Files (x86)\Microchip\MPLABX\v5.20\mplab_platform\mplab_ipe\ipecmd.exe reported error code 7
FINISHED
- JLeith
- Posts: 537
- Joined: Wed Nov 14, 2012 7:49 pm
- Location: British Columbia Canada
- Has thanked: 146 times
- Been thanked: 26 times
- Contact:
Re: New to PicKit 3
This is with the PICkit 3 not connect to the laptop
FC compile to hex
Target folder: C:\Users\jleit\Desktop\Carter
Source name: C:\Users\jleit\Desktop\Carter\OLED July 22 Version 2019.fcfx
Title:
Description:
Device: PIC.18F.18F25K80
Generated by: Flowcode v6.1.4.0
Date: Thursday, August 01, 2019 11:58:56
Users: 1
Registered to: Default Flowcode Name
Licence key: EA6R55
http://www.matrixtsl.com
Launching the compiler...
C:\Program Files (x86)\Microchip\MPLABX\v5.20\mplab_platform\mplab_ipe\ipecmd.exe /P18F25K80 /F"C:\Users\jleit\Desktop\Carter\OLED July 22 Version 2019.hex" /TPPK3 /M /OL
Programmer not found.
.........
C:\Program Files (x86)\Microchip\MPLABX\v5.20\mplab_platform\mplab_ipe\ipecmd.exe reported error code 9
FINISHED
FC compile to hex
Target folder: C:\Users\jleit\Desktop\Carter
Source name: C:\Users\jleit\Desktop\Carter\OLED July 22 Version 2019.fcfx
Title:
Description:
Device: PIC.18F.18F25K80
Generated by: Flowcode v6.1.4.0
Date: Thursday, August 01, 2019 11:58:56
Users: 1
Registered to: Default Flowcode Name
Licence key: EA6R55
http://www.matrixtsl.com
Launching the compiler...
C:\Program Files (x86)\Microchip\MPLABX\v5.20\mplab_platform\mplab_ipe\ipecmd.exe /P18F25K80 /F"C:\Users\jleit\Desktop\Carter\OLED July 22 Version 2019.hex" /TPPK3 /M /OL
Programmer not found.
.........
C:\Program Files (x86)\Microchip\MPLABX\v5.20\mplab_platform\mplab_ipe\ipecmd.exe reported error code 9
FINISHED
- JLeith
- Posts: 537
- Joined: Wed Nov 14, 2012 7:49 pm
- Location: British Columbia Canada
- Has thanked: 146 times
- Been thanked: 26 times
- Contact:
Re: New to PicKit 3
Note: mplab_platform
The word Platform is not listed in the literature for FC settings but maybe that path was not in V3 but is in V5.2.
Not sure where this might be ( Target Device ID (0x6120) )
What target would this be ?
John
The word Platform is not listed in the literature for FC settings but maybe that path was not in V3 but is in V5.2.
Not sure where this might be ( Target Device ID (0x6120) )
What target would this be ?
John
- 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: New to PicKit 3
Hi John
You're options in flowcode. The compile tab has not been reset to default and so when you compile it tries to call the pickit command you have entered.Launching the compiler...
C:\Program Files (x86)\Microchip\MPLABX\v5.20\mplab_platform\mplab_ipe\ipecmd.exe /P18F25K80
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
- JLeith
- Posts: 537
- Joined: Wed Nov 14, 2012 7:49 pm
- Location: British Columbia Canada
- Has thanked: 146 times
- Been thanked: 26 times
- Contact:
Re: New to PicKit 3
Thank you all for your support in making it happen
With setting FC default OFF I was able to generate a Hex file.
Then I used MPLAB and it loaded my design. My Design needs a little work but I have a plan.
All the best to all.
John
With setting FC default OFF I was able to generate a Hex file.
Then I used MPLAB and it loaded my design. My Design needs a little work but I have a plan.
All the best to all.
John