PicKit 3 not detected - chip specific

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
Mark
Posts: 209
Joined: Thu Oct 19, 2006 11:46 am
Location: Bakewell, UK
Has thanked: 20 times
Been thanked: 16 times
Contact:

PicKit 3 not detected - chip specific

Post by Mark »

Hi,

I have started using a PicKit 3. First I took an existing file and successfully programmed a PIC16F886.
Keeping the same settings (the version when 'no hex file found' from the help topics page) I then tried my target chip
PIC18F47J53, which is why I upgraded from the PicKit2 to the PicKit3.
First I checked using MPLAB IDE that the chip could be read, verified and then erased - no problem.
Next I tried (several times) Flowcode 5. the result is:

File name: C:\Users\User\Documents\Flowcode\Tiertex PIC18F47J53\Test 1.c
Title:
Description:
Generated by: Flowcode v5.2.0.0
Date: Wednesday, August 22, 2012 21:32:04
Licence: Professional
Registered to: Blanked
Licence key: Blanked
http://www.matrixmultimedia.com
Compilation is up-to-date
Linking is up-to-date
Launching the programmer...
D:\Electronics\Flowcodev5\Tools\PICkit3\PK3CMD.exe -P18F47J53 -F"Test 1.hex" -E -M -Y"Test 1.hex"

No PICkit 3 Connected

Invalid Device Detected !!!Return code = 5
Flowcode was unable to transfer the flowchart to the microcontroller. Check the programmer options and physical connections.

FINISHED

As you may guess from the above, the board is a Tiertex PIC18F47J53.
Recall that the PicKit was detected fine with the same setting but with a PIC16F886.

The board has no external power. A command line trigger to use the PicKit3 to power the device would be useful (as it would for the PicKit2), but I have tried with and without setting from MPLABIDE and with an without MPLAB running concurrently.
In any case this should not affect PicKit detection?

Any suggestions?

Thanks,

Mark
Go with the Flow.

Mark
Posts: 209
Joined: Thu Oct 19, 2006 11:46 am
Location: Bakewell, UK
Has thanked: 20 times
Been thanked: 16 times
Contact:

Re: PicKit 3 not detected - chip specific

Post by Mark »

Hi,

A supplement to the above, the test file used is attached. Just in case there is something daft I have done in that.

Thanks,

Mark
Attachments
Test 1.fcf
Test Used
(6 KiB) Downloaded 227 times
Go with the Flow.

User avatar
DavidA
Matrix Staff
Posts: 1076
Joined: Fri Apr 23, 2010 2:18 pm
Location: Matrix Multimedia Ltd
Has thanked: 58 times
Been thanked: 258 times
Contact:

Re: PicKit 3 not detected - chip specific

Post by DavidA »

Hello mark,

Ill have a dig around for the PK3 here and have a look for you...

Additionally, i would upgrade to 5.4, i cant remember all the updates, but it may be fixed in the latest version (just in case).

Help >> Check for Updates

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 not detected - chip specific

Post by Benj »

Hi Mark,

I think the PICkit 3 is not detected unless the system is externally powered or you are supplying power via the PICkit.

Looking through the PK3 readme document you need to add the following to the parameters to allow the device to be powered via the PICkit.

-V5 -Drives VDD @ 5V
-V3.3 -Drives VDD @ 3V3

Mark
Posts: 209
Joined: Thu Oct 19, 2006 11:46 am
Location: Bakewell, UK
Has thanked: 20 times
Been thanked: 16 times
Contact:

Re: PicKit 3 not detected - No local power

Post by Mark »

Hi Ben,

Upgraded to 5.4 and used the command line:

D:\Electronics\Flowcodev5\Tools\PICkit3\PK3CMD.exe -P18F47J53 -F"Test 1.hex" -V3.3 -E -M -Y"Test 1.hex"

Now works fine with the PicKit powered board. (Need to re-start the power source after programming).

Once again, many thanks. Regards,

Mark
Go with the Flow.

Post Reply