Difference between revisions of "Selecting Compiler Options (ARM)"

From Flowcode Help
Jump to navigationJump to search
 
(4 intermediate revisions by 2 users not shown)
Line 8: Line 8:
  
  
'''Substitute variables used by Flowcode'''
+
[[Managing_Compiler_Options#Compiler_variables|Substitute variables used by Flowcode]] are the same for all platforms.
  
'''%T''' Target name as written e.g. <code>'''AT91SAM7S128</code>'''
 
  
: (generally used by the compiler)
+
__NOTOC__
 +
==Compiler==
 +
[[File:Gen_Compiler_Options_Compiler_ARM.png|right|524x400px]]
 +
'''Compiler location'''
  
'''%t''' Target name forced to lower-case
+
Sets the location of the file controlling compilation
  
'''%p''' Target name forced to upper-case
+
Default:
  
'''%a''' Alternative target name as written e.g. <code>'''m32</code>'''
+
<code>'''$(appdir)compilers\arm\batchfiles\arm7comp.bat'''</code>
  
: (generally used by the programmer)
 
  
'''%A''' Alternative target name forced to upper-case
+
'''Compiler parameters'''
  
'''%f''' Long file name without extension e.g. <code>'''C:\Development\Flowcode\TestProgram.fcf</code>''' becomes:
+
Adds command line parameters when called from Flowcode
  
: <code>'''TestProgram</code>'''
+
Default:
  
'''%F''' Short filename without extension e.g. C:\Development\Flowcode\TestProgram.fcf becomes:
+
<code>'''"$(target)" "$(outdir)"'''</code>
  
: TestPr~1
 
  
'''%d''' Long file path for the Flowcode file e.g. <code>'''C:\Development\Flowcode\TestProgram.fcf</code>''' becomes:
 
  
: <code>'''C:\Development\Flowcode</code>'''
 
  
'''%D''' Short file path for the Flowcode file <code>'''C:\Development\Flowcode\TestProgram.fcf</code>''' becomes:
 
  
[[File:Gen_Compiler_Options_Compiler_ARM.png|right|524x400px]]
 
  
: <code>'''C:\Develo~1\Flowcode</code>'''
 
  
'''%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:
 
 
<code>'''$(appdir)compilers\arm\batchfiles\arm7comp.bat'''</code>
 
 
 
'''Compiler parameters'''
 
  
Adds command line parameters when called from Flowcode
 
  
Default:
 
  
<code>'''"$(target)" "$(outdir)"'''</code>
+
==Linker/Assembler==
 
[[File:Gen_Compiler_Options_Linker_Assembler_ARM.png|right|524x400px]]
 
[[File:Gen_Compiler_Options_Linker_Assembler_ARM.png|right|524x400px]]
<br /><br />
 
 
'''Linker/Assembler location'''
 
'''Linker/Assembler location'''
  
Line 87: Line 66:
  
 
There are no default parameters
 
There are no default parameters
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
==Programmer==
 
[[File:Gen_Compiler_Options_Programmer_ARM.png|right|524x400px]]
 
[[File:Gen_Compiler_Options_Programmer_ARM.png|right|524x400px]]
<br /><br />
 
 
'''Programmer location'''
 
'''Programmer location'''
  
Line 118: Line 111:
  
 
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==
 
[[File:Gen_Compiler_Options_File_Viewer_ARM.png|right|524x400px]]
 
[[File:Gen_Compiler_Options_File_Viewer_ARM.png|right|524x400px]]
<br /><br />
 
 
'''File Viewer location'''
 
'''File Viewer location'''
  

Latest revision as of 09:26, 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.


Compiler

Gen Compiler Options Compiler ARM.png

Compiler location

Sets the location of the file controlling compilation

Default:

$(appdir)compilers\arm\batchfiles\arm7comp.bat


Compiler parameters

Adds command line parameters when called from Flowcode

Default:

"$(target)" "$(outdir)"









Linker/Assembler

Gen Compiler Options Linker Assembler ARM.png

Linker/Assembler location

Sets the location of the file controlling linking and assembly

Default:

$(appdir)compilers\arm\batchfiles\arm7link.bat


Linker/Assembler parameters

Adds command line parameters when called from Flowcode

Default:

<empty>

There are no default parameters








Programmer

Gen Compiler Options Programmer ARM.png

Programmer location

Sets the location of the file controlling the programming of the target device

Default:

$(appdir)tools\mLoader\mLoader.exe


Programmer parameters

Adds command line parameters when called from Flowcode

Default:

"$(outdir)$(target).bin"


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 ARM.png

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:

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