Selecting Compiler Options (AVR)

From Flowcode Help
Revision as of 10:35, 14 November 2018 by BenR (talk | contribs)
Jump to navigationJump to search

<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

Gen Compiler Options Compiler AVR.png

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

Gen Compiler Options Linker Assembler AVR.png

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

Gen Compiler Options Programmer AVR.png

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.


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

Gen Compiler Options File Viewer AVR.png

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).lst

Default external program to view source files:

$(outdir)$(target).c