[SOLVED] Pickit 3 flowcode 6

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

Moderator: Benj

Michaelt
Posts: 38
Joined: Sun Sep 23, 2012 9:46 am
Has thanked: 13 times
Contact:

[SOLVED] Pickit 3 flowcode 6

Postby Michaelt » Tue Oct 02, 2018 10:45 pm

Hello, i have a problem connecting to an old project i have to modify, i get an error message in the compiler message when flowcode tryes to connect to the pickit 3 programmer. i have ensured that the PK3CMD is up to date and the programmer text is correct like this -P$(chip) -F$(target).hex -E -M

i have also tested the pickit via microchip pickit 3 programmer tool and updated the pickit 3 and the connection is fine there and i can hook up to my hardware and se the Pic 18F46K22 thru there.

The message the in flowcode is as follows...........

success
.
Launching the programmer...
C:\Program Files (x86)\Flowcode 6\tools\PICkit3\PK3CMD.exe -P18F46K22 -FKlimaskab_Final_v2.8.1_datalogedit_v6.hex -E -M

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


FINISHED

hope it is possible from the error message to find the problem

best regards

Michael

User avatar
Steve
Matrix Staff
Posts: 3071
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 87 times
Been thanked: 387 times
Contact:

Re: Pickit 3 flowcode 6

Postby Steve » Wed Oct 03, 2018 8:48 am

I searched the forum for that error code number and it brought up a few hits:
https://www.matrixtsl.com/mmforums/search.php?keywords=1073741515

In particular, this one looks like it might help:
https://www.matrixtsl.com/mmforums/viewtopic.php?f=46&t=12795&p=51255&hilit=1073741515#p51255
These users thanked the author Steve for the post:
medelec35 (Fri Dec 14, 2018 4:09 pm)
Rating: 5.56%
 

Michaelt
Posts: 38
Joined: Sun Sep 23, 2012 9:46 am
Has thanked: 13 times
Contact:

Re: Pickit 3 flowcode 6

Postby Michaelt » Wed Oct 03, 2018 6:26 pm

thanks for your reply Steve but still no luck, i tried the following

uninstalling fc6 delete remaining folders and Reinstall fc 6

i tryed reloading the firmware in PICkit 3 tool/ switching back and forth from MPLAB mode to programmer mode.

i cant find an os for the pickit3 other than PK3OSV020005 i saw BenJ referred to an old firmware but i can't find any ??

i stripped the program down so i only turn on 1 port bit to se if it was the program that bugged out the programmer.

even if i disconnect the usb cable from the Pickit and try to download flowcode to chip it still reports the exact same message
so it must be the PK3CMD or the parametres ??

with the Pickit3 v3.10 tool from microchip i can download the hex file from flowcode to the chip.

its odd because i used the programmer and FC6 a little over a year ago. :(

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 8334
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2382 times
Been thanked: 3393 times
Contact:

Re: Pickit 3 flowcode 6

Postby medelec35 » Wed Oct 03, 2018 9:54 pm

you could try downloading latest MPlabX, then just install IPE
Then set PICkit3 up via IPE by following this link and cliking on to 1.5 PICkit3 using MPLABX IPE (NEW) part, replacing paths with latest installed version.
I have FC6 and PICkit3, so if your still stuck I will see if I can get it to work tomorrow evening after work.
These users thanked the author medelec35 for the post:
Steve (Fri Oct 05, 2018 10:12 am)
Rating: 5.56%
 
Martin

If you read a post that is useful, please show appreciation by clicking on thumbs up Icon.

Michaelt
Posts: 38
Joined: Sun Sep 23, 2012 9:46 am
Has thanked: 13 times
Contact:

Re: Pickit 3 flowcode 6

Postby Michaelt » Sat Oct 06, 2018 3:28 pm

Hello Medelec and thank very much for your reply, i installed Mplab X only IPE but i am unsure of what you want me to do.
do you want me to set up the Pickit3 within the IPE software(i am not used to the software), or refer to the IPE destination and parametres in flowcode programmer setup? i tried this but no luck


in IPE i can se the Pickit and there is a green lamp so i suppose that there is some sort of connection to the Pic but it reports errors when i press connect.
1.jpg
1.jpg (42.09 KiB) Viewed 1282 times

2.jpg
2.jpg (70.13 KiB) Viewed 1282 times

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 8334
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2382 times
Been thanked: 3393 times
Contact:

Re: Pickit 3 flowcode 6

Postby medelec35 » Sat Oct 06, 2018 7:12 pm

Your settings within compiler options look correct.
You won't be using IPE, it will be Flowcode that's accessing \mplab_platform\mplab_ipe\ directory
However if you can't manually connect PICkit3 using IPE then Flowcode won't be able to connect either.
What you can see is probably caused by PICkit3 not in MPLAB mode, i.e was used with the PICkit3 stand alone programmer?
One thing to try is unplug PICkit3 USB, hold the black button in, then with button pressed in connect USB lead.
Wait until STATUS briefly flashed then release black button.
Now within flowchart compile to chip.
These users thanked the author medelec35 for the post:
Michaelt (Sat Oct 06, 2018 8:56 pm)
Rating: 5.56%
 
Martin

If you read a post that is useful, please show appreciation by clicking on thumbs up Icon.

Michaelt
Posts: 38
Joined: Sun Sep 23, 2012 9:46 am
Has thanked: 13 times
Contact:

Re: Pickit 3 flowcode 6

Postby Michaelt » Sat Oct 06, 2018 8:55 pm

Wuhuuu :D that did it Medelec thanks a lot for your fast reply and always great support.
I just restarted the pc and did the thing with the black button on the pickit and it worked after that with the new Mplab IPE settings
have a great weekend

Best Regards
Michael

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 8334
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2382 times
Been thanked: 3393 times
Contact:

Re: Pickit 3 flowcode 6

Postby medelec35 » Sat Oct 06, 2018 9:08 pm

That's great!
You're welcome.
I'm glad that did the trick. :)
Thanks for the update.
Marked topic as solved.
Martin

If you read a post that is useful, please show appreciation by clicking on thumbs up Icon.