Difference between revisions of "Selecting Compiler Options (AVR)"
(18 intermediate revisions by 3 users not shown) | |||
Line 5: | Line 5: | ||
'''Options list''' | '''Options list''' | ||
− | See the [[Managing Compiler Options | + | 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__ | |
+ | ==Compiler== | ||
+ | [[File:Gen_Compiler_Options_Compiler_AVR.png|right|524x400px]] | ||
+ | '''Compiler location''' | ||
− | + | Sets the location of the file controlling compilation | |
− | + | Default: | |
− | + | <code>'''$(compileravr)batchfiles\avra.bat'''</code> | |
− | + | '''Compiler parameters''' | |
− | + | Adds command line parameters when called from flowcode | |
− | + | Default: | |
+ | <code>'''$(chip:l) "$(outdir)$(target).elf" "$(outdir)$(target).c" "$(outdir)$(target).lst"'''</code> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | ==Linker/Assembler== | |
+ | [[File:Gen_Compiler_Options_Linker_Assembler_AVR.png|right|524x400px]] | ||
+ | '''Linker/Assembler location''' | ||
− | + | Sets the location of the file controlling linking and assembly | |
− | |||
− | |||
− | Sets the location of the file controlling | ||
Default: | Default: | ||
− | + | <code>'''$(compileravr)batchfiles\avrb.bat'''</code> | |
− | ''' | + | '''Linker/Assembler parameters''' |
Adds command line parameters when called from flowcode | Adds command line parameters when called from flowcode | ||
Line 68: | Line 60: | ||
Default: | Default: | ||
− | + | <code>'''<empty>'''</code> | |
+ | |||
+ | There are no default parameters | ||
+ | |||
+ | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | ==Programmer== | ||
+ | [[File:Gen_Compiler_Options_Programmer_AVR.png|right|524x400px]] | ||
'''Programmer location''' | '''Programmer location''' | ||
Sets the location of the file controlling the programming of the target device | Sets the location of the file controlling the programming of the target device | ||
− | Default: | + | Default HP3006 AVR Programmer: |
+ | |||
+ | <code>'''$(compileravr)batchfiles\avrc_usbtiny.bat'''</code> | ||
+ | |||
+ | |||
+ | AVRISPmkII AVR Programmer: | ||
+ | |||
+ | <code>'''$(compileravr)batchfiles\avrc.bat'''</code> | ||
− | |||
Line 104: | Line 100: | ||
Default: | Default: | ||
− | + | <code>'''AVRDUDE $(chipalt) $(chip:l) "$(outdir)$(target).hex" "$(target).hex" 0 $(cfg0) $(cfg1) $(cfg2) $(cfg3)'''</code> | |
Line 117: | Line 113: | ||
− | + | [[Supporting_Third_Party_Programming_Tools|Click here for details on using a third party programming e.g. AVRISP]] | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 10:39, 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 file controlling compilation
Default:
$(compileravr)batchfiles\avra.bat
Compiler parameters
Adds command line parameters when called from flowcode
Default:
$(chip:l) "$(outdir)$(target).elf" "$(outdir)$(target).c" "$(outdir)$(target).lst"
Linker/Assembler
Linker/Assembler location
Sets the location of the file controlling linking and assembly
Default:
$(compileravr)batchfiles\avrb.bat
Linker/Assembler parameters
Adds command line parameters when called from flowcode
Default:
<empty>
There are no default parameters
Programmer
Programmer location
Sets the location of the file controlling the programming of the target device
Default HP3006 AVR Programmer:
$(compileravr)batchfiles\avrc_usbtiny.bat
AVRISPmkII AVR Programmer:
$(compileravr)batchfiles\avrc.bat
Programmer parameters
Adds command line parameters when called from flowcode
Default:
AVRDUDE $(chipalt) $(chip:l) "$(outdir)$(target).hex" "$(target).hex" 0 $(cfg0) $(cfg1) $(cfg2) $(cfg3)
Use programmer to set configuration options
This box should be left unchecked
Configuration parameters
This box should be left empty. Configuration parameters are set and downloaded from the Build > Configure menu.
Click here for details on using a third party programming e.g. AVRISP