Difference between revisions of "Selecting Compiler Options (PICmicro)"
(Created page with "Allows users to set the Compiler options. '''Options list''' See the Managing Compiler Settings topic for more information on using this feature. '''Substitute variables ...") |
|||
(26 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
+ | <sidebar>Sidebar: Managing Compiler Options</sidebar> | ||
Allows users to set the Compiler options. | Allows users to set the Compiler options. | ||
Line 4: | Line 5: | ||
'''Options list''' | '''Options list''' | ||
− | See the Managing Compiler | + | See the [[Managing Compiler Options]] topic for more information on using this feature. |
− | + | [[Managing_Compiler_Options#Compiler_variables|Substitute variables used by Flowcode]] are the same for all platforms. | |
+ | |||
+ | __NOTOC__ | ||
+ | ==BoostC Compiler== | ||
+ | [[File:Gen_Compiler_Options_Compiler_PIC.png|right|524x400px]] | ||
+ | '''Compiler location''' | ||
+ | |||
+ | Sets the Compiler location. | ||
+ | |||
+ | Default: | ||
+ | |||
+ | <code>'''$(appdir)compilers\pic\boostc\boostc_$(family:/12F/16F).exe'''</code> | ||
+ | |||
+ | |||
+ | '''Compiler parameters''' | ||
+ | |||
+ | Adds command line parameters when called from Flowcode | ||
+ | |||
+ | Default: | ||
+ | |||
+ | <code>'''-v -t PIC$(chip:u) "$(target).c"'''</code> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | ==BoostC Linker/Assembler== | ||
+ | [[File:Gen_Compiler_Options_Linker_Assembler_PIC.png|right|524x400px]] | ||
'''Linker/Assembler location''' | '''Linker/Assembler location''' | ||
Line 42: | Line 53: | ||
Default: | Default: | ||
− | '' | + | <code>'''$(appdir)compilers\pic\boostc\boostlink_picmicro.exe'''</code> |
+ | |||
'''Linker/Assembler parameters''' | '''Linker/Assembler parameters''' | ||
Line 50: | Line 62: | ||
Default: | Default: | ||
− | ''-ld " | + | <code>'''-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)"'''</code> |
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
− | |||
+ | ==HI-TECH C Compiler== | ||
+ | [[File:Gen_HI-TECH_C_Compiler.png|right|524x400px]] | ||
'''Compiler location''' | '''Compiler location''' | ||
Sets the Compiler location. | Sets the Compiler location. | ||
− | Default 16F: | + | Default 10/12/16F: |
− | ''C:\Program Files\ | + | <code>'''C:\Program Files (x86)\HI-TECH Software\PICC\PRO\9.83\bin\picc.exe'''</code> |
Default 18F: | Default 18F: | ||
− | ''C:\Program Files\ | + | <code>'''C:\Program Files (x86)\HI-TECH Software\PICC-18\PRO\9.80\bin\picc18.exe'''</code> |
Line 76: | Line 96: | ||
Default: | Default: | ||
− | --CHIP= | + | <code>'''--CHIP=$(chip) -N48 $(target).c'''</code> |
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ==HI-TECH C Linker/Assembler== | ||
+ | [[File:Gen_HI-TECH_C_Linker_Assembler.png|right|524x400px]] | ||
'''Linker/Assembler location''' | '''Linker/Assembler location''' | ||
Line 85: | Line 115: | ||
Default: | Default: | ||
− | '' | + | <code>'''$(appdir)\tools\Dummy\DoNothing.exe'''</code> |
Line 93: | Line 123: | ||
Default: | Default: | ||
+ | |||
+ | <code>'''<empty>'''</code> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ==Programmer== | ||
+ | [[File:Gen_Compiler_Options_Programmer_PIC.png|right|524x400px]] | ||
'''Programmer location''' | '''Programmer location''' | ||
Line 101: | Line 149: | ||
Default: | Default: | ||
− | '' | + | <code>'''$(appdir)tools\PPP\PPPv3.exe'''</code> |
To use the PICkit2 programmer change the location to | To use the PICkit2 programmer change the location to | ||
− | '' | + | <code>'''$(appdir)tools\PICkit2\pk2cmd.exe'''</code> |
To use the PICkit3 programmer change the location to | To use the PICkit3 programmer change the location to | ||
− | '' | + | <code>'''$(appdir)tools\PICkit3\pk3cmd.exe'''</code> |
Line 120: | Line 168: | ||
Default: | Default: | ||
− | ''-cs 2 -nogui " | + | <code>'''-cs 2 -chip PIC$(chip) -nogui "$(outdir)$(target).hex"'''</code> |
To use the PICkit2 programmer change the parameters to | To use the PICkit2 programmer change the parameters to | ||
− | ''- | + | <code>'''-B $(appdir)tools\PICkit2\ -PPIC%p -F$(target).hex -M -A5 -R'''</code> |
To use the PICkit3 programmer change the parameters to | To use the PICkit3 programmer change the parameters to | ||
− | ''-P | + | <code>'''-P$(chip) -F$(target).hex -E -M -Y'''</code> |
Line 144: | Line 192: | ||
Default: | Default: | ||
− | ''-cs 2 -chip PIC | + | <code>'''-cs 2 -chip PIC$(chip) -config'''</code> |
Note: The above Programmer defaults assume that you are using the PPP Programming application from Matrix Multimedia. | Note: The above Programmer defaults assume that you are using the PPP Programming application from Matrix Multimedia. | ||
Line 155: | Line 203: | ||
+ | ==File Viewer== | ||
+ | [[File:Gen_Compiler_Options_File_Viewer_PIC.png|right|524x400px]] | ||
'''File Viewer location''' | '''File Viewer location''' | ||
Sets the File viewer location for viewing C and Assembly files. | Sets the File viewer location for viewing C and Assembly files. | ||
− | |||
− | |||
Default: | Default: | ||
− | ''< | + | <code>'''C:\Windows\Notepad.exe'''</code> |
Line 170: | Line 218: | ||
Adds command line parameters for the File viewer program | Adds command line parameters for the File viewer program | ||
− | Default | + | Default Assembly file viewer |
+ | |||
+ | <code>'''$(outdir)$(target).asm'''</code> | ||
+ | |||
+ | Default external program to view source files | ||
− | + | <code>'''$(outdir)$(target).c'''</code> |
Latest revision as of 10:00, 20 September 2013
<sidebar>Sidebar: Managing Compiler Options</sidebar> Allows users to set the Compiler options.
Options list
See the Managing Compiler Options topic for more information on using this feature.
Substitute variables used by Flowcode are the same for all platforms.
BoostC Compiler
Compiler location
Sets the Compiler location.
Default:
$(appdir)compilers\pic\boostc\boostc_$(family:/12F/16F).exe
Compiler parameters
Adds command line parameters when called from Flowcode
Default:
-v -t PIC$(chip:u) "$(target).c"
BoostC Linker/Assembler
Linker/Assembler location
Sets the Assembler program location.
Default:
$(appdir)compilers\pic\boostc\boostlink_picmicro.exe
Linker/Assembler parameters
Adds command line parameters when called from Flowcode
Default:
-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)"
HI-TECH C Compiler
Compiler location
Sets the Compiler location.
Default 10/12/16F:
C:\Program Files (x86)\HI-TECH Software\PICC\PRO\9.83\bin\picc.exe
Default 18F:
C:\Program Files (x86)\HI-TECH Software\PICC-18\PRO\9.80\bin\picc18.exe
Compiler parameters
Adds command line parameters when called from Flowcode
Default:
--CHIP=$(chip) -N48 $(target).c
HI-TECH C Linker/Assembler
Linker/Assembler location
Sets the Assembler program location.
Default:
$(appdir)\tools\Dummy\DoNothing.exe
Linker/Assembler parameters
Adds command line parameters when called from Flowcode
Default:
<empty>
Programmer
Programmer location
Sets the Programmer application location.
Default:
$(appdir)tools\PPP\PPPv3.exe
To use the PICkit2 programmer change the location to
$(appdir)tools\PICkit2\pk2cmd.exe
To use the PICkit3 programmer change the location to
$(appdir)tools\PICkit3\pk3cmd.exe
Programmer parameters
Adds command line parameters for the Programmer application.
Default:
-cs 2 -chip PIC$(chip) -nogui "$(outdir)$(target).hex"
To use the PICkit2 programmer change the parameters to
-B $(appdir)tools\PICkit2\ -PPIC%p -F$(target).hex -M -A5 -R
To use the PICkit3 programmer change the parameters to
-P$(chip) -F$(target).hex -E -M -Y
Use Programmer to set configuration options
Check box to allow the Programmer application to be used to set up the configuration of the device. This setting needs to be unticked to allow you to use non default programming applications such as the PicKit2.
Configuration parameters
Supplies the command line parameters needed for configuration.
Default:
-cs 2 -chip PIC$(chip) -config
Note: The above Programmer defaults assume that you are using the PPP Programming application from Matrix Multimedia. If you are using an alternative programming application you will need to consult the documentation for that application for the required parameters and settings.
Additionally configuration words can be embedded into the program using the Supplementary code feature, or C Code icons.
For help using the PicKit2 Programmer with Flowcode, untick the "Use Programmer to set configuration options" button and then click here to view the configuration settings required.
File Viewer
File Viewer location
Sets the File viewer location for viewing C and Assembly files.
Default:
C:\Windows\Notepad.exe
File Viewer parameters
Adds command line parameters for the File viewer program
Default Assembly file viewer
$(outdir)$(target).asm
Default external program to view source files
$(outdir)$(target).c