2.1.1.1. TI ARM CGT

The tool is located in tools/waf-tools.

2.1.1.1.1. Tool Documentation

Implements a waf tool to use TI ARM CGT (https://www.ti.com/tool/ARM-CGT).

class f_ti_arm_cgt.AtTemplate(template)

Bases: Template

Custom ‘Template’-string to support the @{abc}’ syntax

Filters which output files are not meant to be linked

class f_ti_arm_cgt.app_crc_gen(*args: Any, **kwargs: Any)

Bases: Task

Task create the CRC file from the .bin file

class f_ti_arm_cgt.asm(*args: Any, **kwargs: Any)

Bases: Task

class to run the TI ARM CGT compiler in compiler mode to create object files from assembler sources.

f_ti_arm_cgt.asm_hook(self, node)

Creates the compiled task for assembler sources f_ti_arm_cgt.create_compiled_task_asm().

class f_ti_arm_cgt.bingen(*args: Any, **kwargs: Any)

Bases: Task

Task create bin file from elf files

class f_ti_arm_cgt.c(*args: Any, **kwargs: Any)

Bases: Task

This class implements the TI ARM CGT compiler in compiler mode to create object files from c sources. Additionally an aux file (user information file), a crl files (cross-reference listing file) and a rl file (output preprocessor listing) are generated.

keyword()

Displayed keyword when source files are compiled

f_ti_arm_cgt.c_hook(self, node)

Creates all related task generators for C sources, which are

class f_ti_arm_cgt.c_pp(*args: Any, **kwargs: Any)

Bases: Task

class to run the TI ARM CGT compiler in “preproc_only” mode, to have a pp file that includes the preprocess information

class f_ti_arm_cgt.c_ppd(*args: Any, **kwargs: Any)

Bases: Task

class to run the TI ARM CGT compiler in “preproc_dependency” mode, to have a ppd file that includes dependency information

class f_ti_arm_cgt.c_ppi(*args: Any, **kwargs: Any)

Bases: Task

class to run the TI ARM CGT compiler in “preproc_includes” mode, to have a ppi file that includes the include information

class f_ti_arm_cgt.c_ppm(*args: Any, **kwargs: Any)

Bases: Task

class to run the TI ARM CGT compiler in “preproc_macros” mode, to have a ppm file that includes all compile time macros

f_ti_arm_cgt.cgt_flags(ctx)

Sets flags and related configuration options of the compiler.

class f_ti_arm_cgt.clean_pp_file(*args: Any, **kwargs: Any)

Bases: Task

Task to remove some information from the preprocessed files

run()

Removes empty lines and strips some intrinsics that should not be included in the postprocessed file

f_ti_arm_cgt.configure(ctx)

Configuration step of the TI ARM CGT compiler tool

class f_ti_arm_cgt.copy_to_out_dir(*args: Any, **kwargs: Any)

Bases: Task

This class implements the copying of a node to another location in the build tree

run()

Copy the generated elf file to build directory of the variant

class f_ti_arm_cgt.cprogram(*args: Any, **kwargs: Any)

Bases: link_task

class to run the TI ARM CGT compiler in linker mode to create the target

class f_ti_arm_cgt.create_app_build_cfg_source(*args: Any, **kwargs: Any)

Bases: Task

creates the app build configuration information file

f_ti_arm_cgt.create_compiled_task_asm(self, name, node)

Creates the assembler task and binds it to the f_ti_arm_cgt.asm class.

The created tasks are appended to the list of compiled_tasks.

f_ti_arm_cgt.create_compiled_task_c(self, name, node)

Creates the assembler task and binds it to the f_ti_arm_cgt.c class.

The created tasks are appended to the list of compiled_tasks.

f_ti_arm_cgt.create_compiled_task_c_pp(self, name, node)

Creates the pp task and binds it to the f_ti_arm_cgt.c_pp class.

f_ti_arm_cgt.create_compiled_task_c_ppd(self, name, node)

Creates the ppd task and binds it to the f_ti_arm_cgt.c_ppd class.

f_ti_arm_cgt.create_compiled_task_c_ppi(self, name, node)

Creates the ppi task and binds it to the f_ti_arm_cgt.c_ppi class.

f_ti_arm_cgt.create_compiled_task_c_ppm(self, name, node)

Creates the ppm task and binds it to the f_ti_arm_cgt.c_ppm class.

class f_ti_arm_cgt.create_version_source(*args: Any, **kwargs: Any)

Bases: Task

creates the version information file

class f_ti_arm_cgt.cstlib(*args: Any, **kwargs: Any)

Bases: stlink_task

c static library

f_ti_arm_cgt.find_armar(ctx)

Configures the archive tool

f_ti_arm_cgt.find_armcl(ctx)

Configures the compiler, determines the compiler version, and sets the default include paths.

class f_ti_arm_cgt.get_stack(*args: Any, **kwargs: Any)

Bases: Task

gathers all stack information in one file

run()

Gathers the stack usage information

class f_ti_arm_cgt.hexgen(*args: Any, **kwargs: Any)

Bases: Task

Task create hex file from elf files

class f_ti_arm_cgt.nm(*args: Any, **kwargs: Any)

Bases: Task

Task to run armnm on all input files

f_ti_arm_cgt.options(opt)

Configurable options of the f_ti_arm_cgt tool.

Furthermore the default formatter gets replaced by f_ti_arm_cgt.armclFormatter.

f_ti_arm_cgt.remove_targets(task)

General helper function to remove targets

class f_ti_arm_cgt.size(*args: Any, **kwargs: Any)

Bases: Task

Task to run size on all input files

Bases: link_task

static link task

f_ti_arm_cgt.tiprogram(bld: waflib.Build.BuildContext, *k, **kw)

Wrapper for bld.program for simpler target configuration. The linker script is added as env input/output dependency for the target. Based on the target name all related targets are created:

  • binary: <target>.<format>

  • linker information: <target>.<format>.xml

  • map information: <target>.<format>.map

class f_ti_arm_cgt.update_lauterbach_script(*args: Any, **kwargs: Any)

Bases: Task

Task create the CRC file from the .bin file