[FAQ] TMS320C6678: Steps to generate a btbl file from .out using Hex6x Utility?

Part Number: TMS320C6678

Tool/software:

Hi Team,

Could you explain the steps to generate a btbl file from .out?

Regards,

Betsy Varughese

  • The main steps includes:

    1. Create a Hex conversion command file (.cmd/.rmd)
    2. Run the hex utility using the created .cmd/.rmd and .out file
    3. The "step :2" will generate a .btbl

    The details of each step involved in creating the boot image is described below. 

    The RBL expects the image flashed on the SPI flash to be in Boot Table Format. First, we have to convert the application code into a Boot Table Format, using hex6x utility present inside the CCS Installation directory/ C66x CGT. (..\ccsv12\tools\compiler\ti-cgt-c6000_8.3.13\bin\hex6x.exe).

    The hex6x utility expects the following:- An rmd file in which you have to provide the path to the application binary/.out file and a format in which the bootable table is expected.

    The detailed decription of hex6x utility is  available in "TMS320C6000 Assembly Language Tools documentation" :TMS320C6000 Assembly Language Tools (Section 10).

    It reads the sections in the application binary and creates a flat binary boot table format that allows the ROM to interpret and load the sections of the application binary.

    The RMD file contains , the following informations:-

      • The application .out file has to be flashed
      • -a for the output hex format in ASCII
      • -e the entry point for the address. i.e._c_init00
      • Output file that contains the application .out in bootable format
      • Memory sections with the MEM and ROW WIDTH

    Create a rmd file example.rmd using the editor as follows:

    Run hex6x with example.rmd "hex6x example.rmd"

    Regards,

    Betsy Varughese