PICkit2 reported error code 36

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

Post Reply
User avatar
JLeith
Posts: 537
Joined: Wed Nov 14, 2012 7:49 pm
Location: British Columbia Canada
Has thanked: 146 times
Been thanked: 26 times
Contact:

PICkit2 reported error code 36

Post by JLeith »

Hello all

I just 3 weeks back moved to the world of Flowcode 6. In flowcode 5 I was able to use my Pickit 2v2 to load my Pic's.

I have entered the values I have found on the "help" screen to the "Programmer" but I keep getting errors.

I can still generate the 'HeX" and use my Pickit2 standalone and load the PIC. So its not the PICkit2 causing the error it looks like a communication error from Flowcode 6 to PICKIT2V2.

I don't mind doing double steps I just thought seeing is a option I might as well give it a try. No Luck.

Here is the images I have.
Attachments
PICKit2 with Flowcode 6.jpg
PICKit2 with Flowcode 6.jpg (105.22 KiB) Viewed 11614 times

medelec35
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: PICkit2 reported error code 36

Post by medelec35 »

Hi John,
You have got a space between -B & $
There is not a space on the wiki page:
http://www.matrixtsl.com/wiki/index.php ... ls#PICkit2
Actually there are differences.
Wiki plage shows:

Code: Select all

-B$(appdir)tools\PICkit2\ -PPIC$(chip) -F$(target).hex -M -A5 -R 
Not what you have posted

Very important:
Keep an eye on the targets device VPP value.
If its 9V e.g. 16F18xx range, then Pick2 will damage it.
What I do is add a 10k resistor in series with VPP from the programmer and the VPP of target device.

Just noticed what you have posted is from the Flowcode help file which looks wrong to me:
Wrong settings.png
(94 KiB) Downloaded 6991 times
Martin

User avatar
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: PICkit2 reported error code 36

Post by JLeith »

Hi Martin

The info you pasted is one of the settings ( -B$(appdir)tools\PICkit2\ -PPIC$(chip) -F$(target).hex -M -A5 -R ) is what I posted in the "Parameters" window.

I only have the help menu and I even tried Google Search.

For the interface yes at least a year ago you passed on the 10K and I have it installed on all my PICKit2 access.

So Martin where do I get the correct settings ?

John

User avatar
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: PICkit2 reported error code 36

Post by JLeith »

I followed you hyper link and copied the settings

PICkit2
Location:
$(appdir)tools\PICkit2\pk2cmd.exe
Parameters:
-B$(appdir)tools\PICkit2\ -PPIC$(chip) -F$(target).hex -M -A5 -R

Still failing

Maybe I should forget about the direct to chip maybe its a glitch in Flowcode 6.

Don't mind doing the manual mode.

John
Attachments
2nd PICKIT.jpg
2nd PICKIT.jpg (75.97 KiB) Viewed 11601 times

User avatar
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: PICkit2 reported error code 36

Post by Benj »

Hello,

I don't think the command line tool for the PICkit 2 supports the 16F18xx device your using. The cannot find device message is saying it cannot find the information to drive the specified device.

I'm fairly certain that the 16F18xx devices were released after the PICkit 2 had been dropped.

A PICkit 3 should work correctly.

MPLAB seems to confirm this.
16F1827.jpg
16F1827.jpg (82.91 KiB) Viewed 11596 times

medelec35
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: PICkit2 reported error code 36

Post by medelec35 »

Benj wrote:I don't think the command line tool for the PICkit 2 supports the 16F18xx device your using.
It should if the dat and pk2cmd file will allow.
Posted about it including dat & pk2cmd file here
Although post is for Flowcode V5,
Should also work with V6.

Martin
Martin

User avatar
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: PICkit2 reported error code 36

Post by JLeith »

Hi Benj & Martin

Martin I was reading the Hyper link and it relates to all my finds in Google.

PicKit 2 is not supported in PIC range higher then PIC12xxx. Going over my notes back in Flowcode 5 I was never able to get the compile to Chip to work.

I suspect Benj info is true and why would Matrix not place a upgrade so PicKit 2 would work with Flowcode 5 or 6.

Specially seeing Flowcode 2 will take the HEX file and load it into the chip.

It is more likely Matrix is blocking the easy step to have users purchase Flowcode to generate hex and then support PICkit 3 to load the PIC.

With just spending $$$ to get the magical world of Flowcode 6 I really can't spend $64 more to get Flowcode to load my PIC.

I will enjoy the actions of Flowcode 6 and be happy that Flowcode will generate the HEX and I can still use my PICkit 2 as a standalone device.

Thank you for the information I will consider the mystery of PICkit 2 not a viable tool for sending Hex directly to Chip. Closed.

All the best to everyone

John
Attachments
PIC3 Cost.jpg
PIC3 Cost.jpg (42.34 KiB) Viewed 11584 times

medelec35
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: PICkit2 reported error code 36

Post by medelec35 »

Hi John,
JLeith wrote:PicKit 2 is not supported in PIC range higher then PIC12xxx. Going over my notes back in Flowcode 5 I was never able to get the compile to Chip to work.I suspect Benj info is true and why would Matrix not place a upgrade so PicKit 2 would work with Flowcode 5 or 6.Specially seeing Flowcode 2 will take the HEX file and load it into the chip.It is more likely Matrix is blocking the easy step to have users purchase Flowcode to generate hex and then support PICkit 3 to load the PIC.
That's not true and I think you have misread what I have stated in the post that was found by clicking the hyperlink.
Flowcode V6 does directly program the 12F18xx & 16F18xx range via PICkit2 , so long as you place the two files attached to the post in the link (above post).
For example without the two files (pk2cmd.exe & PK2DeviceFile.dat) I get the same as you:
Prog V6 1825 1.png
(8.09 KiB) Downloaded 6965 times
After adding the two files (replace existing files) in:
C:\Program Files (x86)\Flowcode 6\tools\PICkit2 (If 64 bit windows)
or
C:\Program Files\Flowcode 6\FCD\tools\PICkit2 (If 32 bit windows.)

Then compile to chip :
Prog V6 1825 2.png
(9.48 KiB) Downloaded 6965 times
I was able to program my 16F1825 directly with Flowcode V6

The only thing I believe I did was to update the pickit2 itself.
But if you have already programmed 16F1825 then you don't need to worry about it.

Hope this helps

Martin
Martin

User avatar
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: PICkit2 reported error code 36

Post by JLeith »

Many thanks Martin
I missed the Zip file.

I add the zip file contents to the Flowcode 6 Tools.

I marked the old files as "Name_OLD. Just encase I needed to go back.

Well it has not worked but this might be something on my side,

I have posted the Error and a picture of my settings.

I must be missing something.

Yours looks perfect.
Attachments
PICkit2 Location & Parameter.jpg
(295.28 KiB) Downloaded 2419 times
Error 24.jpg
Error 24.jpg (120.64 KiB) Viewed 11571 times

medelec35
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: PICkit2 reported error code 36

Post by medelec35 »

Hi John,
Your parameter are wrong,
Take another look at the wiki link I posted in a previous post and make sure your programmer settings match:
Correct settings.png
(24.71 KiB) Downloaded 6953 times
Martin
Martin

User avatar
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: PICkit2 reported error code 36

Post by JLeith »

Hi all Martin is a wizard with magic.

Martin it would wonderful if there was a "Wiki" page with a nice clean example of the ( 2 ) settings for PICkit2 users and the ( 2 ) files.

Martin if I just purchased Flowcode 6 I find it very odd that they would not have added the EXE and DAT files to work with the PICkit2.

I can't thank you enough for spending your valuable time in making it happen.

John

User avatar
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: PICkit2 reported error code 36

Post by JLeith »

Mystery solved.png
(81 KiB) Downloaded 6944 times

medelec35
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: PICkit2 reported error code 36

Post by medelec35 »

Hi John,
JLeith wrote: if I just purchased Flowcode 6 I find it very odd that they would not have added the EXE and DAT files to work with the PICkit2.
Only matrix can answer that one officially, but my guess is the files I posted are unofficial and matrix are only bound by using official microchip files.
I'm not sure where the posted files originate from?
JLeith wrote:I can't thank you enough for spending your valuable time in making it happen.

No problem.
At least all is resolved now and your up an running using Pickit 2.

Martin
Martin

User avatar
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: PICkit2 reported error code 36

Post by JLeith »

Hi Martin

I can follow that it is in the hands of Matrix for keeping the PICKit 2 working it is odd that your magic files are the silver lining that keeps the users like myself so dependent at times for the help you and others give.

I'm enjoying using the PICkit 2 directly making small changes and see how they work in the real world.

All the best
John

medelec35
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: PICkit2 reported error code 36

Post by medelec35 »

Hi John,
JLeith wrote:I'm enjoying using the PICkit 2 directly making small changes and see how they work in the real world.
Best way forward.
That's what I like to do
JLeith wrote:it is odd that your magic files are the silver lining that keeps the users like myself so dependent at times for the help you and others give.
Glad I can help you and others to stay interested, thanks.

There is only one disadvantage with PICkit2.
The VPP is at a fixed voltage that damages 12F18xx & 16F18xx etc.
Apart from that it's far superior to pickit3.
You only need to look at:
Dave Jones eevblog
As he compares both.


You can use Pickit 2 as a data scope.
Not sure if suitable for you or not?
Martin

kersing
Valued Contributor
Valued Contributor
Posts: 2045
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 553 times
Been thanked: 1081 times
Contact:

Re: PICkit2 reported error code 36

Post by kersing »

JLeith wrote:I can follow that it is in the hands of Matrix for keeping the PICKit 2 working it is odd that your magic files are the silver lining that keeps the users like myself so dependent at times for the help you and others give.
Don't forget PICkit2 with the changed files can damage some devices. How do you think an unsuspecting user would feel if Matrix were to include the changed files and the user without a resistor in the Vpp line damages a PIC?
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

medelec35
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: PICkit2 reported error code 36

Post by medelec35 »

kersing wrote:Don't forget PICkit2 with the changed files can damage some devices. How do you think an unsuspecting user would feel if Matrix were to include the changed files and the user without a resistor in the Vpp line damages a PIC
I think that a very good point and one I did not think of.
After all as I have previously stated pickik2 was only designed to work with devices that have VPP of about 14V.
The newer device your getting it to program is 9V.
Damage will occur if connected straight up to target VPP that is a max of 9V
Martin

User avatar
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: PICkit2 reported error code 36

Post by Benj »

I'll see if I can get the modified files put into the build folder with a read me on how to activate them and a general use warning.

Post Reply