Page 1 of 1

V6 and pickit 3

Posted: Thu Sep 10, 2015 5:33 am
by clee
I just updated from FC5 to version 6.

I cant get it to work with my Pickit3. The Pickit worked fine in FC5. I've set up the compiler options based on the Wiki settings for Pickit3 and dsPIC.

I can't set "Enable writing of configuration to chip" for the programer. If I enter information there it isn't saved.

The program compiles to hex fine when compiling to chip I get this error:
----------------------------------------------------------------------------
HEX file creation successful!

Launching the programmer...
C:\Program Files\Flowcode 6\tools\PICkit3\PK3CMD.exe "C:\Program Files\Flowcode 6\Tools\Pickit3\ -P33FJ128GP802 -FFGS_Proto_RUN_v6.hex -E -M -L -V3.3


No Part Selected, use /P<part> or -P<part>
C:\Program Files\Flowcode 6\tools\PICkit3\PK3CMD.exe reported error code 1


FINISHED
-----------------------------------------------------------------------------------

Re: V6 and pickit 3

Posted: Thu Sep 10, 2015 7:22 am
by kersing
clee wrote:C:\Program Files\Flowcode 6\tools\PICkit3\PK3CMD.exe "C:\Program Files\Flowcode 6\Tools\Pickit3\ -P33FJ128GP802 -FFGS_Proto_RUN_v6.hex -E -M -L -V3.3
There is an opening double quote just before C: in the arguments, however there is no closing one. Could you check your programmer settings?

Re: V6 and pickit 3

Posted: Thu Sep 10, 2015 12:55 pm
by clee
Thanks for seeing that. I added the close quote, but unfortunately I still get the same message.

Re: V6 and pickit 3

Posted: Thu Sep 10, 2015 2:47 pm
by kersing
I think you need to remove both quotes.

Re: V6 and pickit 3

Posted: Thu Sep 10, 2015 8:03 pm
by acestu
Hi clee,

I use Flowcode6 and Pickit3 here is my FCS file , you can import the file in compiler options under the build menu and see if it helps, be aware though that the -v5.0 or -v3.3 at the end is the voltage applied.

cheers
Stuart
ace.FCS
(832 Bytes) Downloaded 408 times

Re: V6 and pickit 3

Posted: Fri Sep 11, 2015 5:34 am
by clee
Thanks for the config file. I still have a bit of funkiness (I need to reset the Pickit every time I want to upload) but I didn't have any time to mess with it today.

Re: V6 and pickit 3

Posted: Fri Sep 11, 2015 6:49 pm
by acestu
Hi clee,

check this link out, your pickit might be in the wrong mode....

http://www.microchip.com/forums/m762080.aspx
cheers
Stuart

Re: V6 and pickit 3

Posted: Fri Sep 11, 2015 7:00 pm
by clee
acestu,

Your config file worked, I successfully programed the dsPIC. When I try a second time it says something like "can't set voltage" (I'm not in front of the device ATM). Disconnecting the USB and plugging back in makes it work. I'm doing in-circuit programing so I don't need to power the chip from the PicKit.

I got my pic programed and played around with V6 a little and haven't investigated the error at all yet. Thanks for getting me up and running, I'm sure it's just a setting I need to change.

Re: V6 and pickit 3

Posted: Fri Sep 11, 2015 7:50 pm
by acestu
Hi clee,

Glad your up and running.... :D

cheers
Stuart

Re: V6 and pickit 3

Posted: Sat Sep 12, 2015 9:36 pm
by clee
Just to follow up in case someone else lands at this tread, this is working now.

Because I'm doing in-circuit programming and don't need to power the device I deleted -V3.3 from the setup and everything works great.