Pickit 3 MPLAB X IDE v2.05 Settings
Moderator: Benj
-
- Posts: 11
- Joined: Sun May 04, 2014 12:07 am
- Been thanked: 1 time
Pickit 3 MPLAB X IDE v2.05 Settings
Sigh - Nothing is ever simple is it?
So I have been using my Pickit 3 MPLAB X IDE v2.05 and really really want to jump to flow code but I cant send my work to my device. To help - I am programming a pic16f690 with my pickit 3 and my settings in flowcode 6 are:
Programmer
location: C:\Program Files (x86)\Flowcode 6\tools\PICkit3\PK3CMD.exe
Parms: -P$(chip) -F$(target).hex -E -M
If I click "compile to chip" it just sits there forever with a bunch of dots until I cancel it out (and get a 255 error)
Here is what's interesting - if I click "compile to C" in the toolbar - everything is good but if I click "compile to hex" it just sits there forever with a bunch of dots like before when trying to write it to the chip until I cancel it out
HELP!
So I have been using my Pickit 3 MPLAB X IDE v2.05 and really really want to jump to flow code but I cant send my work to my device. To help - I am programming a pic16f690 with my pickit 3 and my settings in flowcode 6 are:
Programmer
location: C:\Program Files (x86)\Flowcode 6\tools\PICkit3\PK3CMD.exe
Parms: -P$(chip) -F$(target).hex -E -M
If I click "compile to chip" it just sits there forever with a bunch of dots until I cancel it out (and get a 255 error)
Here is what's interesting - if I click "compile to C" in the toolbar - everything is good but if I click "compile to hex" it just sits there forever with a bunch of dots like before when trying to write it to the chip until I cancel it out
HELP!
-
- Valued Contributor
- Posts: 2045
- Joined: Wed Aug 27, 2008 10:31 pm
- Location: Netherlands
- Has thanked: 553 times
- Been thanked: 1081 times
Re: Pickit 3 MPLAB X IDE v2.05 Settings
1. The Firmware used for PICkit3 by MPLAB X is not compatible with the command line tool. See this message to restore working firmware. Another option is to use compile to HEX, import the HEX/COFF file in MPLAB X and program from there, more steps involved but no need to switch PICkit firmware.
2. For the compile to HEX issue, could you post your "Linker/Assembler" settings and the output appearing in the "Compiler Messages" window? (Use "Upload attachments" next to "Options" below the "Submit" button if you want to attach files.)
2. For the compile to HEX issue, could you post your "Linker/Assembler" settings and the output appearing in the "Compiler Messages" window? (Use "Upload attachments" next to "Options" below the "Submit" button if you want to attach files.)
“Integrity is doing the right thing, even when no one is watching.”
― C.S. Lewis
― C.S. Lewis
-
- Posts: 11
- Joined: Sun May 04, 2014 12:07 am
- Been thanked: 1 time
Re: Pickit 3 MPLAB X IDE v2.05 Settings
I would much prefer to use the option you suggested which is to not touch the firmware on the pickit 3, compile to hex in flowcode then use mplab x ide and finish it out that way.
My settings for Pic --> linker / Assembler:
Location: $(appdir)compilers\pic\boostc\boostlink_picmicro.exe
Parameters: -ld "$(appdir)compilers\pic\boostc\lib" libc_$(family:/12F/16F).lib rand_$(family:/12F/16F).lib float_$(family:/12F/16F).lib "$(target).obj" -t PIC$(chip:u) -d "$(outdir:~-1)" -p "$(target)" -swcs 6 2
If it matters (because I am writing to a pic16f690) the Pic16 settings are:
location: $(appdir)compilers\pic\boostc\boostlink_picmicro.exe
Parameters:-ld "$(appdir)compilers\pic\boostc\lib" libc_$(family:/12F/16F).lib rand_$(family:/12F/16F).lib float_$(family:/12F/16F).lib "$(target).obj" -t PIC$(chip:u) -d "$(outdir:~-1)" -p "$(target)" -swcs 6 2
The output when I click "compile to hex" looks like this:
Target folder: D:\FLOWCO~1
Source name: D:\Flowcode projects\light8.fcfx
Title:
Description:
Device: PIC.16F.16F690
Generated by: Flowcode v6.0.1.0
Date: Wednesday, May 07, 2014 21:16:23
Users: 0
Registered to: 33114247
Licence key: 1XBAWY
NOT FOR COMMERCIAL USE
http://www.matrixmultimedia.com
Launching the compiler...
C:\Program Files (x86)\Flowcode 6\compilers\pic\boostc\boostc_16F.exe -v -t PIC16F690 "light8.c"
.....
Launched program C:\Program Files (x86)\Flowcode 6\compilers\pic\boostc\boostc_16F.exe
Launching BoostC...
..
BoostC Optimizing C Compiler Version 7.11 (for PIC16 architecture)
http://www.sourceboost.com
Copyright(C) 2004-2013 Pavel Baranov
Copyright(C) 2004-2013 David Hobday
Licensed to FlowCode User under Single user Pro License for 1 node(s)
Limitations: PIC12,PIC16 max code size:Unlimited, max RAM banks:Unlimited
light8.c
Starting preprocessor: "C:\Program Files (x86)\Flowcode 6\compilers\pic\boostc\pp.exe" light8.c -i "C:\Program Files (x86)\Flowcode 6\compilers\pic\boostc\include" -d _PIC16F690 -la -c2 -o light8.pp -v -d _BOOSTC -d _PIC16 -d _CHAR_INDEX
.......................................................................................................................................................................
My settings for Pic --> linker / Assembler:
Location: $(appdir)compilers\pic\boostc\boostlink_picmicro.exe
Parameters: -ld "$(appdir)compilers\pic\boostc\lib" libc_$(family:/12F/16F).lib rand_$(family:/12F/16F).lib float_$(family:/12F/16F).lib "$(target).obj" -t PIC$(chip:u) -d "$(outdir:~-1)" -p "$(target)" -swcs 6 2
If it matters (because I am writing to a pic16f690) the Pic16 settings are:
location: $(appdir)compilers\pic\boostc\boostlink_picmicro.exe
Parameters:-ld "$(appdir)compilers\pic\boostc\lib" libc_$(family:/12F/16F).lib rand_$(family:/12F/16F).lib float_$(family:/12F/16F).lib "$(target).obj" -t PIC$(chip:u) -d "$(outdir:~-1)" -p "$(target)" -swcs 6 2
The output when I click "compile to hex" looks like this:
Target folder: D:\FLOWCO~1
Source name: D:\Flowcode projects\light8.fcfx
Title:
Description:
Device: PIC.16F.16F690
Generated by: Flowcode v6.0.1.0
Date: Wednesday, May 07, 2014 21:16:23
Users: 0
Registered to: 33114247
Licence key: 1XBAWY
NOT FOR COMMERCIAL USE
http://www.matrixmultimedia.com
Launching the compiler...
C:\Program Files (x86)\Flowcode 6\compilers\pic\boostc\boostc_16F.exe -v -t PIC16F690 "light8.c"
.....
Launched program C:\Program Files (x86)\Flowcode 6\compilers\pic\boostc\boostc_16F.exe
Launching BoostC...
..
BoostC Optimizing C Compiler Version 7.11 (for PIC16 architecture)
http://www.sourceboost.com
Copyright(C) 2004-2013 Pavel Baranov
Copyright(C) 2004-2013 David Hobday
Licensed to FlowCode User under Single user Pro License for 1 node(s)
Limitations: PIC12,PIC16 max code size:Unlimited, max RAM banks:Unlimited
light8.c
Starting preprocessor: "C:\Program Files (x86)\Flowcode 6\compilers\pic\boostc\pp.exe" light8.c -i "C:\Program Files (x86)\Flowcode 6\compilers\pic\boostc\include" -d _PIC16F690 -la -c2 -o light8.pp -v -d _BOOSTC -d _PIC16 -d _CHAR_INDEX
.......................................................................................................................................................................
-
- Valued Contributor
- Posts: 2045
- Joined: Wed Aug 27, 2008 10:31 pm
- Location: Netherlands
- Has thanked: 553 times
- Been thanked: 1081 times
Re: Pickit 3 MPLAB X IDE v2.05 Settings
It looks like you are using an old version of Flowcode 6 which has an older version of BoostC. Could you upgrade to 6.0.7.0 (Help menu, 'Check for Updates' or log on to http://www.matrixmultimedia.com/accounts/login.php with the user name and password used to activate Flowcode and use the 'Download Flowcode 6' link)
You will probably have to re-activate FC6 after upgrade.
You will probably have to re-activate FC6 after upgrade.
“Integrity is doing the right thing, even when no one is watching.”
― C.S. Lewis
― C.S. Lewis
-
- Posts: 11
- Joined: Sun May 04, 2014 12:07 am
- Been thanked: 1 time
Re: Pickit 3 MPLAB X IDE v2.05 Settings
Demo version - I downloaded it from your home page, what - 20 days ago?
-
- Posts: 11
- Joined: Sun May 04, 2014 12:07 am
- Been thanked: 1 time
Re: Pickit 3 MPLAB X IDE v2.05 Settings
Ok, I did as suggested and upgraded the demo to the newest version - but the results are the same, compiling to hex lasts until you cancel it.
Target folder: D:\FLOWCO~1
Source name: D:\Flowcode projects\light8.fcfx
Title:
Description:
Device: PIC.16F.16F690
Generated by: Flowcode v6.0.7.0
Date: Saturday, May 10, 2014 08:59:29
Users: 0
Registered to: 33114247
Licence key: 1XBAWY
NOT FOR COMMERCIAL USE
http://www.matrixltd.com
Launching the compiler...
C:\Program Files (x86)\Flowcode 6\compilers\pic\boostc\boostc_16F.exe -v -t PIC16F690 "light8.c"
Launching BoostC...
BoostC Optimizing C Compiler Version 7.20 (for PIC16 architecture)
http://www.sourceboost.com
Copyright(C) 2004-2013 Pavel Baranov
Copyright(C) 2004-2013 David Hobday
Licensed to FlowCode User under Single user Pro License for 1 node(s)
Limitations: PIC12,PIC16 max code size:Unlimited, max RAM banks:Unlimited
light8.c
Starting preprocessor: "C:\Program Files (x86)\Flowcode 6\compilers\pic\boostc\pp.exe" light8.c -i "C:\Program Files (x86)\Flowcode 6\compilers\pic\boostc\include" -d _PIC16F690 -la -c2 -o light8.pp -v -d _BOOSTC -d _PIC16 -d _CHAR_INDEX
...............................................................................................
Completed BoostC compilation, return = 255
C:\Program Files (x86)\Flowcode 6\compilers\pic\boostc\boostc_16F.exe reported error code 255
FINISHED
Target folder: D:\FLOWCO~1
Source name: D:\Flowcode projects\light8.fcfx
Title:
Description:
Device: PIC.16F.16F690
Generated by: Flowcode v6.0.7.0
Date: Saturday, May 10, 2014 08:59:29
Users: 0
Registered to: 33114247
Licence key: 1XBAWY
NOT FOR COMMERCIAL USE
http://www.matrixltd.com
Launching the compiler...
C:\Program Files (x86)\Flowcode 6\compilers\pic\boostc\boostc_16F.exe -v -t PIC16F690 "light8.c"
Launching BoostC...
BoostC Optimizing C Compiler Version 7.20 (for PIC16 architecture)
http://www.sourceboost.com
Copyright(C) 2004-2013 Pavel Baranov
Copyright(C) 2004-2013 David Hobday
Licensed to FlowCode User under Single user Pro License for 1 node(s)
Limitations: PIC12,PIC16 max code size:Unlimited, max RAM banks:Unlimited
light8.c
Starting preprocessor: "C:\Program Files (x86)\Flowcode 6\compilers\pic\boostc\pp.exe" light8.c -i "C:\Program Files (x86)\Flowcode 6\compilers\pic\boostc\include" -d _PIC16F690 -la -c2 -o light8.pp -v -d _BOOSTC -d _PIC16 -d _CHAR_INDEX
...............................................................................................
Completed BoostC compilation, return = 255
C:\Program Files (x86)\Flowcode 6\compilers\pic\boostc\boostc_16F.exe reported error code 255
FINISHED
-
- Valued Contributor
- Posts: 2045
- Joined: Wed Aug 27, 2008 10:31 pm
- Location: Netherlands
- Has thanked: 553 times
- Been thanked: 1081 times
Re: Pickit 3 MPLAB X IDE v2.05 Settings
Which version of Windows are you using?
“Integrity is doing the right thing, even when no one is watching.”
― C.S. Lewis
― C.S. Lewis
-
- Posts: 11
- Joined: Sun May 04, 2014 12:07 am
- Been thanked: 1 time
Re: Pickit 3 MPLAB X IDE v2.05 Settings
OS Name: Microsoft Windows 7 Ultimate
OS Version: 6.1.7601 Service Pack 1 Build 7601
OS Manufacturer: Microsoft Corporation
OS Configuration: Standalone Workstation
OS Build Type: Multiprocessor Free
Registered Organization:
Original Install Date: 8/25/2010, 2:28:40 PM
System Boot Time: 5/10/2014, 5:55:05 PM
System Manufacturer: INTEL_
System Model: DX58SO__
System Type: x64-based PC
Processor(s): 1 Processor(s) Installed.
[01]: Intel64 Family 6 Model 44 Stepping 2 GenuineIntel ~3326 Mhz
BIOS Version: Intel Corp. SOX5810J.86A.5599.2012.0529.2218, 5/29/2012
Windows Directory: C:\Windows
System Directory: C:\Windows\system32
Boot Device: \Device\HarddiskVolume2
System Locale: en-us;English (United States)
Input Locale: en-us;English (United States)
Time Zone: (UTC-05:00) Eastern Time (US & Canada)
Total Physical Memory: 6,134 MB
Available Physical Memory: 4,163 MB
Virtual Memory: Max Size: 12,266 MB
Virtual Memory: Available: 9,988 MB
Virtual Memory: In Use: 2,278 MB
OS Version: 6.1.7601 Service Pack 1 Build 7601
OS Manufacturer: Microsoft Corporation
OS Configuration: Standalone Workstation
OS Build Type: Multiprocessor Free
Registered Organization:
Original Install Date: 8/25/2010, 2:28:40 PM
System Boot Time: 5/10/2014, 5:55:05 PM
System Manufacturer: INTEL_
System Model: DX58SO__
System Type: x64-based PC
Processor(s): 1 Processor(s) Installed.
[01]: Intel64 Family 6 Model 44 Stepping 2 GenuineIntel ~3326 Mhz
BIOS Version: Intel Corp. SOX5810J.86A.5599.2012.0529.2218, 5/29/2012
Windows Directory: C:\Windows
System Directory: C:\Windows\system32
Boot Device: \Device\HarddiskVolume2
System Locale: en-us;English (United States)
Input Locale: en-us;English (United States)
Time Zone: (UTC-05:00) Eastern Time (US & Canada)
Total Physical Memory: 6,134 MB
Available Physical Memory: 4,163 MB
Virtual Memory: Max Size: 12,266 MB
Virtual Memory: Available: 9,988 MB
Virtual Memory: In Use: 2,278 MB
-
- Posts: 11
- Joined: Sun May 04, 2014 12:07 am
- Been thanked: 1 time
Re: Pickit 3 MPLAB X IDE v2.05 Settings
Any ideas yet? - I have been stuck not able to use this product for weeks now.
- 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 MPLAB X IDE v2.05 Settings
Hello,
Can you export your Flowcode settings for the PICkit you are tyring to use and attach them to a reply here. I can hopefully then check them and test them out here
Can you export your Flowcode settings for the PICkit you are tyring to use and attach them to a reply here. I can hopefully then check them and test them out here
-
- Posts: 11
- Joined: Sun May 04, 2014 12:07 am
- Been thanked: 1 time
Re: Pickit 3 MPLAB X IDE v2.05 Settings
Are you looking for what flowcode seetings were in my very first post or something different?
This is all I can really give you....
pic16
compiler tab
Location:
$(appdir)compilers\pic\boostc\boostc_$(family:/12F/16F).exe
Parameters:
-v -t PIC$(chip:u) "$(target).c"
Linker / Assembly
Location tab:
$(appdir)compilers\pic\boostc\boostlink_picmicro.exe
Parameters:
-ld "$(appdir)compilers\pic\boostc\lib" libc_$(family:/12F/16F).lib rand_$(family:/12F/16F).lib float_$(family:/12F/16F).lib "$(target).obj" -t PIC$(chip:u) -d "$(outdir:~-1)" -p "$(target)" -swcs 6 2
Programmer tab:
Location:
C:\Program Files (x86)\Flowcode 6\tools\PICkit3\PK3CMD.exe
Parameters:
-P$(chip) -F"$(target).hex" -E -M
Project options are a pic16f690
General options - clock speed = 19660800
Compile to C works every time
Compile to Hex sits....forever.....with dots.......like this...........LOL
This is all I can really give you....
pic16
compiler tab
Location:
$(appdir)compilers\pic\boostc\boostc_$(family:/12F/16F).exe
Parameters:
-v -t PIC$(chip:u) "$(target).c"
Linker / Assembly
Location tab:
$(appdir)compilers\pic\boostc\boostlink_picmicro.exe
Parameters:
-ld "$(appdir)compilers\pic\boostc\lib" libc_$(family:/12F/16F).lib rand_$(family:/12F/16F).lib float_$(family:/12F/16F).lib "$(target).obj" -t PIC$(chip:u) -d "$(outdir:~-1)" -p "$(target)" -swcs 6 2
Programmer tab:
Location:
C:\Program Files (x86)\Flowcode 6\tools\PICkit3\PK3CMD.exe
Parameters:
-P$(chip) -F"$(target).hex" -E -M
Project options are a pic16f690
General options - clock speed = 19660800
Compile to C works every time
Compile to Hex sits....forever.....with dots.......like this...........LOL