Difference between revisions of "Selecting Compiler Options (dsPIC/PIC24)"
(18 intermediate revisions by 3 users not shown) | |||
Line 8: | Line 8: | ||
− | + | [[Managing_Compiler_Options#Compiler_variables|Substitute variables used by Flowcode]] are the same for all platforms. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | __NOTOC__ | ||
+ | ==Compiler== | ||
+ | [[File:Gen_Compiler_Options_Compiler_PIC16.png|right|524x400px]] | ||
'''Compiler location''' | '''Compiler location''' | ||
Line 25: | Line 19: | ||
Default: | Default: | ||
− | <code>'''$( | + | <code>'''$(compilerpic16)batchfiles\pic16_C30_comp.bat'''</code> |
Line 34: | Line 28: | ||
Default: | Default: | ||
− | <code>''"$(outdir)$(target)" "$(outdir)" "$(chip:u)"'''</code> | + | <code>'''"$(outdir)$(target)" "$(outdir)" "$(chip:u)"'''</code> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | ==Linker/Assembler== | ||
+ | [[File:Gen_Compiler_Options_Linker_Assembler_PIC16.png|right|524x400px]] | ||
+ | '''Linker/Assembler location''' | ||
− | + | Sets the Assembler program location. | |
− | + | Default: | |
+ | <code>'''$(compilerpic16)batchfiles\pic16_C30_link.bat'''</code> | ||
− | |||
− | + | '''Linker/Assembler parameters''' | |
− | + | Adds command line parameters when called from Flowcode | |
− | |||
− | |||
− | Adds command line parameters | ||
Default: | Default: | ||
− | <code>''' | + | <code>'''"$(outdir)$(target)" $(chip:u) $(family)'''</code> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | ''' | + | ==Programmer== |
+ | [[File:Gen_Compiler_Options_Programmer_PIC16.png|right|524x400px]] | ||
+ | '''Programmer location''' | ||
− | + | Sets the Programmer application location. | |
Default: | Default: | ||
− | <code>''' | + | <code>'''$(appdir)tools\mLoader\mLoader.exe'''</code> |
− | + | '''Programmer parameters''' | |
− | |||
− | + | Adds command line parameters for the Programmer application. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Default: | Default: | ||
− | <code>''' | + | <code>'''-chip $(chip:u) "$(target).hex"'''</code> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | [[Supporting_Third_Party_Programming_Tools|Click here for details on using a third party programming e.g. PICkit]] |
Latest revision as of 10:38, 14 November 2018
<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.
Compiler
Compiler location
Sets the location of the Microchip C30 compiler.
Default:
$(compilerpic16)batchfiles\pic16_C30_comp.bat
Compiler parameters
Adds command line parameters when called from Flowcode
Default:
"$(outdir)$(target)" "$(outdir)" "$(chip:u)"
Linker/Assembler
Linker/Assembler location
Sets the Assembler program location.
Default:
$(compilerpic16)batchfiles\pic16_C30_link.bat
Linker/Assembler parameters
Adds command line parameters when called from Flowcode
Default:
"$(outdir)$(target)" $(chip:u) $(family)
Programmer
Programmer location
Sets the Programmer application location.
Default:
$(appdir)tools\mLoader\mLoader.exe
Programmer parameters
Adds command line parameters for the Programmer application.
Default:
-chip $(chip:u) "$(target).hex"
Click here for details on using a third party programming e.g. PICkit