Page 1 of 1

Pickit2 problems

Posted: Mon Feb 27, 2012 3:51 pm
by DannyBerry
I recently upgraded this to v2.61 and now I can't compile to chip from within flowcode. It only works with compile to hex. Problem with that is having to open another program just to burn the file to the chip. Does anybody have any suggestions on how to fix this other than uninstalling and going back to the original. I did this upgrade to list a chip that wasn't avaibale in the original.

Thanks,

Danny

Re: Pickit2 problems

Posted: Mon Feb 27, 2012 4:54 pm
by Benj
Hi Danny,

One option is to use the PICkit standalone programming utility and switching on the hex file monitoring functionality. This basically keeps scanning a hex file on your machine. When the hex file changes the updated program is automatically sent to the device.

You should however be able to use the command line tool still via Flowcode independent of the version of standalone PICkit software you are using. Maybe go into the Chip -> Compiler options menu and try clicking restore defaults and see if this makes any difference.

Let me know how you get on.

Re: Pickit2 problems

Posted: Mon Feb 27, 2012 6:01 pm
by DannyBerry
switching on the hex file monitoring functionality
Hi Ben,

I don't see where you are talking about setting this in the stand alone programmer. Can you post a screen shot of it.

Thanks,

Danny

Re: Pickit2 problems

Posted: Mon Feb 27, 2012 6:28 pm
by Benj
Hi Danny,

Its a button at the bottom right hand side of the window with the text "Auto Import Hex + Write Device" Click it and it will ask for the hex file to monitor.

One downside of this I have noticed is that while the hex file is being written by the compiler the PICkit software may pop up error windows saying it cant read the hex file. If you minimise the PICkit window and keep Flowcode etc on the top then it should all work well and you shouldn't have to keep clicking to close the error windows. Then when your done you can use the control + f4 shortcut to get rid of them all.

Re: Pickit2 problems

Posted: Mon Feb 27, 2012 6:38 pm
by DannyBerry
Oh...OK,

Thanks for the quick reply Ben.. :D

Re: Pickit2 problems

Posted: Mon Feb 27, 2012 7:18 pm
by DannyBerry
Benj wrote:Hi Danny,



You should however be able to use the command line tool still via Flowcode independent of the version of standalone PICkit software you are using. Maybe go into the Chip -> Compiler options menu and try clicking restore defaults and see if this makes any difference.

Let me know how you get on.
I tried default settings...didn't work...Put it back to the way I had it before...still doesn't work straight out of flowcode pressing the compile to chip Icon....Can you take a look at the attachment and see if anything looks out of the ordinary...Brandon has these same settings and his works...?

Thanks,
Danny

Re: Pickit2 problems

Posted: Mon Feb 27, 2012 10:24 pm
by DannyBerry
I figured out how to get it back working.....I overwrote the pk2DeviceFile.dat file with the one that I had dated 1/9/2009. The one with the update to pickit2 V2.61 dated 10/4/2011 is where the problem lies....Hope this helps anybody else that might fall into the same trap..... :)

I'm sure there is a solution to it ...if anybody knows..I'm all ears..... :? but for now ..at least I'm back to square one...with a one button click from within flowcode.

Thanks,

Danny