Pickit 3

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

Moderator: Benj

Post Reply
Roy Johnston
Flowcode V4 User
Posts: 220
Joined: Mon Aug 24, 2009 8:38 am
Has thanked: 2 times
Been thanked: 34 times
Contact:

Pickit 3

Post by Roy Johnston »

Sorry does anyone know how to set up for ver 6 for a pickit3.
thanks in advance

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: Pickit 3

Post by kersing »

Have you checked this Wiki page? Look in the 'Programmer' section.
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

Roy Johnston
Flowcode V4 User
Posts: 220
Joined: Mon Aug 24, 2009 8:38 am
Has thanked: 2 times
Been thanked: 34 times
Contact:

Re: Pickit 3

Post by Roy Johnston »

unfortunately this is the default values,
it returns as says no device detected.

Roy Johnston
Flowcode V4 User
Posts: 220
Joined: Mon Aug 24, 2009 8:38 am
Has thanked: 2 times
Been thanked: 34 times
Contact:

Re: Pickit 3

Post by Roy Johnston »

did exactly as recommended
I get the following error message,
my pic is powered up.
it works in mplab ipe supplied by microchip

C:\Program Files (x86)\Flowcode 6\tools\PICkit3\PK3CMD.exe -P18F4550 -F400R1rev36.hex -E -M -Y

Initialize Failed !!!

C:\Program Files (x86)\Flowcode 6\tools\PICkit3\PK3CMD.exe reported error code 1

Roy Johnston
Flowcode V4 User
Posts: 220
Joined: Mon Aug 24, 2009 8:38 am
Has thanked: 2 times
Been thanked: 34 times
Contact:

Re: Pickit 3

Post by Roy Johnston »

no luck tried everything the pickit3 will not initialize.
I am using mplad Ide,
there was a firmware upgrade on the pickit when MPLAD ide was installed.
I am thinking that maybe this is the problem.

cruzxia
Posts: 88
Joined: Wed Jan 04, 2006 7:34 am
Been thanked: 8 times
Contact:

Re: Pickit 3

Post by cruzxia »

Set Programmer up as follows:

Location
C:\Program Files (x86)\Flowcode 6\tools\PICkit3\PK3CMD.exe

parameters
-P$(chip) -F$(target).hex -V3.00 -E -M

You can remove the -V3.00 (it is the programing voltage)
Or
If you leave it in just set it to match your device -V3.00 for 3 volt or -V5.00 for 5 volt

You must have mplab installed for it to work.

Kenrix2
Flowcode v5 User
Posts: 211
Joined: Tue Feb 19, 2013 9:51 pm
Has thanked: 72 times
Been thanked: 177 times
Contact:

Re: Pickit 3

Post by Kenrix2 »

You might have to follow the instructions on this post by Benj:
http://www.matrixmultimedia.com/mmforum ... ork#p52318

Roy Johnston
Flowcode V4 User
Posts: 220
Joined: Mon Aug 24, 2009 8:38 am
Has thanked: 2 times
Been thanked: 34 times
Contact:

Re: Pickit 3

Post by Roy Johnston »

Done everything from downloading the firmware, coping over the pkm prog , now I get the following.
success
Launching the programmer...
C:\Program Files (x86)\Flowcode 6\tools\PICkit3\PK3CMD.exe -P18F4550 -F400R1rev37.hex -E -M -Y
Connecting...
PICkit 3 detected
Connecting to PICkit 3... ............................................

it just hangs there

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: Pickit 3

Post by Benj »

Hi Roy,

Try unplugging the PICkit from any circuitry, seems when you first start up the PICkit and check the AP firmware it has issues with external circuitry attached.

Once this has worked and it is saying "target not detected" try again with the PICkit connected to the hardware.

Might also be worth trying a simple filename that doesn't start with a number just in case this is causing any issues e.g. "test".

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: Pickit 3

Post by medelec35 »

In addition to Bens comments:
If I remember correctly,
I don't think flowchart will compile with PICkit 3 if there are spaces within the Flowchart name.
If spaces between words are required, then you can use under_scores.

I will check this is the case when I get home.

Martin
Martin

Roy Johnston
Flowcode V4 User
Posts: 220
Joined: Mon Aug 24, 2009 8:38 am
Has thanked: 2 times
Been thanked: 34 times
Contact:

Re: Pickit 3

Post by Roy Johnston »

Right I Got it to work,

1) I followed your instructions to reload the firmware manually,
2) I uninstalled MPLAB x
3) I uninstalled MPLAB IDE ( Ver 8.5)
4) I then reinstalled MPLAB ( ver 8.7 )
5) opened MPLAB 8.7
6) let it download new firmware Automatically.
7) copied the pk3cmd file from C:\Program Files (x86)\Microchip\MPLAB IDE\Programmer Utilities\PICkit3 to C:\Program Files (x86)\Flowcode 6\tools\PICkit3
8) set up flowcode to
-P$(chip) -F$(target).hex -v5.0 -E -M
C:\Program Files (x86)\Flowcode 6\tools\PICkit3\PK3CMD.exe
it now works, no more mplab upgrades for me.
9) I tested compiling files with numbers "401r1" it works perfectly
10) if I place a space between the r and 1 it does not compile
Thanks a lot for your help

heresrob
Posts: 2
Joined: Fri Sep 05, 2014 2:33 pm
Contact:

Re: Pickit 3

Post by heresrob »

I followed the settings and still get error 255 and can't find the program:

Target folder: C:\Users\Robert\DOCUME~1\Flowcode\FLOWCO~3
Source name: C:\Users\Robert\Documents\Flowcode\Flowcode test\Flowcode1.fcfx
Title:
Description:
Device: PIC.10F.10F200
Generated by: Flowcode v6.0.10.0
Date: Wednesday, September 10, 2014 10:37:46
Users: 1
Registered to: Robert Daly
Licence key: 0566TP
NOT FOR COMMERCIAL USE
http://www.matrixtsl.com
Launching the compiler...
C:\Program Files (x86)\Flowcode 6\compilers\pic\boostc\boostc_10F.exe -v -t PIC10F200 "Flowcode1.c"
Cannot find the file: C:\Program Files (x86)\Flowcode 6\compilers\pic\boostc\boostc_10F.exe
Failed to launch 'C:\Program Files (x86)\Flowcode 6\compilers\pic\boostc\boostc_10F.exe', code 2
Completed BoostC compilation, return = 255

C:\Program Files (x86)\Flowcode 6\compilers\pic\boostc\boostc_10F.exe reported error code 255


FINISHED

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: Pickit 3

Post by medelec35 »

Hi Rob,
Boost C which is the current built in compiler for 8 bit pic does not support 10F series.
Take a look at this post.

Martin
Martin

heresrob
Posts: 2
Joined: Fri Sep 05, 2014 2:33 pm
Contact:

Re: Pickit 3

Post by heresrob »

Bummer. back to the drawing board. I wish it did. I would love to work with 8 pin chips.

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: Pickit 3

Post by medelec35 »

heresrob wrote:I would love to work with 8 pin chips.
I have used the 12F1840 successfully with Flowcode and built-boostC compiler. here are the specs:
12F1840 spec.png
(292.47 KiB) Downloaded 4545 times
With up to a 32MHz internal osc, ADC,PWM, RS232 its a very good chip.

Or there is the 12F617 ect.
BoostC compile can compile 12Fxxx series.

Martin
Martin

Post Reply