Please note as of Wednesday, August 15th, 2018 this wiki has been set to read only. If you are a TI Employee and require Edit ability please contact x0211426 from the company directory.

Python scripts for AIS and COFF

From Texas Instruments Wiki
Jump to: navigation, search

Commandline tools written in python for reading COFF files, generating and dumping AIS images.

These allow the generation of AIS image to be integrated into a commandline or makefile build.

NOTE: These scripts come with no guarantee, though they have been used to create a bootloader and application image that do work on a C6747 DSP. Bug reports gratefully accepted.

The script sources can be viewed/downloaded/cloned at this github gist


Generate AIS image from .out file.

Currently supports TMS320C6747/45/43 Bootloader ROM d800k002

Usage: [options] input.coff [output.ais]


 -h, --help            show this help message and exit
 -c, --enable-crc      enable per-section CRCs
 -r ROM, --rom=ROM     rom version, eg d800k002
 -s, --sequential-read
                       use SPI sequential read
 -v, --verbose         verbose log output
 -b EMIFB_CONFIG, --emifb-config=EMIFB_CONFIG
                       E.g. --emifb-config="sdcfg=0x10620, sdtim1=0x01912a08,
                       sdtim2=0x70080005, sdrfc=0x8000079e"
 -p PLL_CONFIG, --pll-config=PLL_CONFIG
                       E.g. --pll-config="pllm=29, postdiv=1, plldiv3=3,
                       plldiv5=2, plldiv7=5, clkmode=1, pll_lock_cnt=402,
 -m PINMUX_CONFIG, --pinmux-config=PINMUX_CONFIG
                       PINMUX_CONFIG=regnum,value[,optional mask]. May be
                       used more than once E.g. --pinmux-config=0,0x10011101


Read AIS file, showing the commands used. Useful for comparing TI aisgen output to the output. Also can generate C header file with AIS content.

Usage: [options]


 -h, --help            show this help message and exit
 -g, --generate-header
                       generate full header file on stdout


Read a TI COFF file into a python object. Currently supports section data and entry point, sufficient for generating loadable image, but doesn't support whole symbol table, or partially linked files.

Usage: [options]


 -h, --help       show this help message and exit
 -d, --dump_data  dump section data