Difference between revisions of "Selecting Compiler Options (AVR)"
Line 26: | Line 26: | ||
%f Long file name without extension e.g. C:\Development\Flowcode\TestProgram.fcf becomes: | %f Long file name without extension e.g. C:\Development\Flowcode\TestProgram.fcf becomes: | ||
− | + | ||
+ | TestProgram | ||
+ | |||
%F Short filename without extension e.g. C:\Development\Flowcode\TestProgram.fcf becomes: | %F Short filename without extension e.g. C:\Development\Flowcode\TestProgram.fcf becomes: | ||
− | + | ||
+ | TestPr~1 | ||
+ | |||
%d Long file path for the Flowcode file e.g. C:\Development\Flowcode\TestProgram.fcf becomes: | %d Long file path for the Flowcode file e.g. C:\Development\Flowcode\TestProgram.fcf becomes: | ||
− | + | ||
+ | C:\Development\Flowcode | ||
+ | |||
%D Short file path for the Flowcode file C:\Development\Flowcode\TestProgram.fcf becomes: | %D Short file path for the Flowcode file C:\Development\Flowcode\TestProgram.fcf becomes: | ||
− | + | ||
+ | C:\Develo~1\Flowcode | ||
+ | |||
%c0 Configuration byte count | %c0 Configuration byte count | ||
+ | |||
%c1 Configuration byte #1 | %c1 Configuration byte #1 | ||
+ | |||
%c2 Configuration byte #2 | %c2 Configuration byte #2 | ||
+ | |||
%c3 Configuration byte #3 | %c3 Configuration byte #3 | ||
− | Compiler location | + | |
+ | '''Compiler location''' | ||
+ | |||
Sets the location of the file controlling compilation | Sets the location of the file controlling compilation | ||
+ | |||
Default: | Default: | ||
+ | |||
C:\Program Files\Matrix Multimedia\Flowcode_AVR\Tools\MX_bats\avra.bat | C:\Program Files\Matrix Multimedia\Flowcode_AVR\Tools\MX_bats\avra.bat | ||
− | Compiler parameters | + | |
+ | '''Compiler parameters''' | ||
+ | |||
Adds command line parameters when called from flowcode | Adds command line parameters when called from flowcode | ||
+ | |||
Default: | Default: | ||
+ | |||
%t "%D\%f.elf" "%D\%f.c" "%D\%f.lst" | %t "%D\%f.elf" "%D\%f.c" "%D\%f.lst" | ||
− | Linker/Assembler location | + | |
+ | '''Linker/Assembler location''' | ||
+ | |||
Sets the location of the file controlling linking and assembly | Sets the location of the file controlling linking and assembly | ||
+ | |||
Default: | Default: | ||
+ | |||
C:\Program Files\Matrix Multimedia\Flowcode_AVR\Tools\MX_bats\avrb.bat | C:\Program Files\Matrix Multimedia\Flowcode_AVR\Tools\MX_bats\avrb.bat | ||
− | Linker/Assembler parameters | + | |
+ | '''Linker/Assembler parameters''' | ||
+ | |||
Adds command line parameters when called from flowcode | Adds command line parameters when called from flowcode | ||
+ | |||
Default: | Default: | ||
+ | |||
"%D\%f.elf" "%D\%f.hex" | "%D\%f.elf" "%D\%f.hex" | ||
− | 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: | ||
+ | |||
C:\Program Files\Matrix Multimedia\Flowcode_AVR\Tools\MX_bats\avrc.bat | C:\Program Files\Matrix Multimedia\Flowcode_AVR\Tools\MX_bats\avrc.bat | ||
− | Programmer parameters | + | |
+ | '''Programmer parameters''' | ||
+ | |||
Adds command line parameters when called from flowcode | Adds command line parameters when called from flowcode | ||
+ | |||
Default: | Default: | ||
+ | |||
%a avrispmkii usb "%f.hex" %cfg %c0 %c1 %c2 %c3 | %a avrispmkii usb "%f.hex" %cfg %c0 %c1 %c2 %c3 | ||
− | Use programmer to set configuration options | + | |
+ | '''Use programmer to set configuration options''' | ||
+ | |||
This box should be left unchecked | This box should be left unchecked | ||
− | Configuration parameters | + | |
− | This box should be left empty. Configuration parameters are set and downloaded from the Build | + | '''Configuration parameters''' |
+ | |||
+ | This box should be left empty. Configuration parameters are set and downloaded from the Build > Configure menu. | ||
+ | |||
Note: The above parameters assume you are using the AVRDUDE programming application and AVRISPmkII programmer. If you are using an alternative programming application or programmer you will need to consult the relevant documentation for the required parameters and settings. | Note: The above parameters assume you are using the AVRDUDE programming application and AVRISPmkII programmer. If you are using an alternative programming application or programmer you will need to consult the relevant documentation for the required parameters and settings. | ||
− | 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. | ||
+ | |||
The default is empty, this activates the use of the internal C code viewer. | The default is empty, this activates the use of the internal C code viewer. | ||
+ | |||
Default: | Default: | ||
− | |||
− | File Viewer parameters | + | ''<empty>'' |
+ | |||
+ | '''File Viewer parameters''' | ||
+ | |||
Adds command line parameters for the File viewer program | Adds command line parameters for the File viewer program | ||
+ | |||
Default: | Default: | ||
+ | |||
Blank. NO PARAMETERS. | Blank. NO PARAMETERS. |
Revision as of 11:55, 16 May 2013
Allows users to set the Compiler options.
Options list
See the Managing Compiler Settings topic for more information on using this feature.
Substitute variables used by Flowcode
%T Target name as written e.g. atmega32
(generally used by the compiler)
%t Target name forced to lower-case
%p Target name forced to upper-case
%a Alternative target name as written e.g. m32
(generally used by the programmer)
%A Alternative target name forced to upper-case
%f Long file name without extension e.g. C:\Development\Flowcode\TestProgram.fcf becomes:
TestProgram
%F Short filename without extension e.g. C:\Development\Flowcode\TestProgram.fcf becomes:
TestPr~1
%d Long file path for the Flowcode file e.g. C:\Development\Flowcode\TestProgram.fcf becomes:
C:\Development\Flowcode
%D Short file path for the Flowcode file C:\Development\Flowcode\TestProgram.fcf becomes:
C:\Develo~1\Flowcode
%c0 Configuration byte count
%c1 Configuration byte #1
%c2 Configuration byte #2
%c3 Configuration byte #3
Compiler location
Sets the location of the file controlling compilation
Default:
C:\Program Files\Matrix Multimedia\Flowcode_AVR\Tools\MX_bats\avra.bat
Compiler parameters
Adds command line parameters when called from flowcode
Default:
%t "%D\%f.elf" "%D\%f.c" "%D\%f.lst"
Linker/Assembler location
Sets the location of the file controlling linking and assembly
Default:
C:\Program Files\Matrix Multimedia\Flowcode_AVR\Tools\MX_bats\avrb.bat
Linker/Assembler parameters
Adds command line parameters when called from flowcode
Default:
"%D\%f.elf" "%D\%f.hex"
Programmer location
Sets the location of the file controlling the programming of the target device
Default:
C:\Program Files\Matrix Multimedia\Flowcode_AVR\Tools\MX_bats\avrc.bat
Programmer parameters
Adds command line parameters when called from flowcode
Default:
%a avrispmkii usb "%f.hex" %cfg %c0 %c1 %c2 %c3
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.
Note: The above parameters assume you are using the AVRDUDE programming application and AVRISPmkII programmer. If you are using an alternative programming application or programmer you will need to consult the relevant documentation for the required parameters and settings.
File Viewer location
Sets the File viewer location for viewing C and Assembly files.
The default is empty, this activates the use of the internal C code viewer.
Default:
<empty>
File Viewer parameters
Adds command line parameters for the File viewer program
Default:
Blank. NO PARAMETERS.