C6711 Compiler, Assembler and Linker Settings
Compiler
-- Development Options
Project -> Options -> Compiler -> -gs
See page 3-12 of 1 day manual for full options
-- Performance Options
Project -> Options -> Compiler -> -k -mgt -o3 -pm -mv6710 (add -ms if size is a problem!)
-- the -mv6710 tells the compiler to use hardware floating point.Ancillary Compilation Settings
It is necessary to search various include libraries to find the support code for the boards and chips. (BSL and CSL) This compiler option typically looks like:
Project -> Options -> Compiler
-iC:\ti\c6000\dsk\include
-iC:\ti\c6000\ssl\include
-iC:\ti\c60001day\ti\preliminary_bsl\includeIt is also necessary to let the csl (chiphal.h) know which board you are running.
This can be done in the file, or better on the fly as a compiler option:
-dCHIP_6711
-dBOARD_6711DSK
Assembler
Project -> Options -> Assembler -> -gls
Little Endian
Linker
Project -> Options -> Linker ->
-o filename
-m mapfilename
-c autoinitialize globals
-x (checks exhaustively so order of linking doesn't matter)
-- using map files is good practice as it tells you how memory is organized (and exceeded)