Jump to content

Selecting Compiler Options (ARM): Difference between revisions

From Flowcode Help
ReeceL (talk | contribs)
No edit summary
No edit summary
 
(19 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<sidebar>Sidebar: Managing Compiler Options</sidebar>
Allows users to set the Compiler options.
Allows users to set the Compiler options.


Line 4: Line 5:
'''Options list'''
'''Options list'''


See the [[Managing compiler options|Managing Compiler Settings]] topic for more information on using this feature.
See the [[Managing Compiler Options]] topic for more information on using this feature.




'''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. AT91SAM7S128


(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:


<code>'''$(compilerstarm)batch\stm32comp.bat'''</code>


%a Alternative target name as written e.g. m32


(generally used by the programmer)
'''Compiler parameters'''
 
Adds command line parameters when called from Flowcode


%A Alternative target name forced to upper-case
Default:


<code>'''""$(target)" "$(outdir)" "$(chipalt)" "$(family)" "$(lscript)" "$(clock)" "$(romsize)" "$(ramsize)"'''</code>


%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'''
==Linker/Assembler==
[[File:Gen_Compiler_Options_Linker_Assembler_ARM.png|right|524x400px]]
'''Linker/Assembler location'''


Sets the location of the file controlling compilation
Sets the location of the file controlling linking and assembly


Default:
Default:


C:\Program Files\Matrix Multimedia\Flowcode_ARM\Tools\MX_bats\arm7comp.bat
<code>'''$(appdir)tools\DoNothing\DoNothing.exe'''</code>




'''Compiler parameters'''
'''Linker/Assembler parameters'''


Adds command line parameters when called from Flowcode
Adds command line parameters when called from Flowcode
Line 67: Line 63:
Default:
Default:


"%f" "%D"
<code>'''<empty>'''</code>
 
There are no default parameters
 
 




'''Linker/Assembler location'''


Sets the location of the file controlling linking and assembly


Default:


C:\Program Files\Matrix Multimedia\Flowcode_ARM\Tools\MX_bats\arm7link.bat




'''Linker/Assembler parameters'''


Adds command line parameters when called from Flowcode


Default:


"%f"




==Programmer==
[[File:Gen_Compiler_Options_Programmer_ARM.png|right|524x400px]]
'''Programmer location'''
'''Programmer location'''


Line 94: Line 88:
Default:
Default:


C:\Program Files\Matrix Multimedia\Flowcode_ARM\Tools\mLoader.exe
<code>'''$(compilerstarm)batch\stm32prog.bat'''</code>




Line 103: Line 97:
Default:
Default:


"%f.bin"
<code>'''""$(outdir)" "$(target)"'''</code>




Line 113: Line 107:
'''Configuration parameters'''
'''Configuration parameters'''


This box should be left empty. Configuration parameters are set and downloaded from the Build->Configure menu.
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.

Latest revision as of 10:41, 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:

$(compilerstarm)batch\stm32comp.bat


Compiler parameters

Adds command line parameters when called from Flowcode

Default:

""$(target)" "$(outdir)" "$(chipalt)" "$(family)" "$(lscript)" "$(clock)" "$(romsize)" "$(ramsize)"









Linker/Assembler

Linker/Assembler location

Sets the location of the file controlling linking and assembly

Default:

$(appdir)tools\DoNothing\DoNothing.exe


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:

$(compilerstarm)batch\stm32prog.bat


Programmer parameters

Adds command line parameters when called from Flowcode

Default:

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


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.