This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/TMS320C6416: Inclusion of RT library

Part Number: TMS320C6416

Tool/software: Code Composer Studio

Ported legacy code from CCS3.3 to CCS v7.2.0. The code is in assembly.

In CCS General, run time library is left blank. 

The map New Microsoft Word Document (2).docxshows inclusion of run time library

.text      0    00001780    00002780    
                  00001780    00000ae0     Read120Mwtimestamp.obj (.text)
                  00002260    000007a0     SerialIn.obj (.text)
                  00002a00    00000440     LDLASER8xR2.obj (.text)
                  00002e40    000003a0     CRC-iniFordt.obj (.text)
                  000031e0    00000220     MotorR3.obj (.text)
                  00003400    00000200     MainDualA-DR3.obj (.text)
                  00003600    00000100     ClearRegs.obj (.text)
                  00003700    00000100     SETADCr2.obj (.text)
                  00003800    000000e0     EtherRESET.obj (.text)
                  000038e0    000000e0     EtherRecieve.obj (.text)
                  000039c0    000000e0     Ethersetuphdl.obj (.text)
                  00003aa0    000000e0     rts6400.lib : autoinit.obj (.text:__auto_init)
                  00003b80    000000e0                 : memcpy64.obj (.text:_memcpy)
                  00003c60    000000c0                 : exit.obj (.text:_exit)
                  00003d20    000000a0                 : cpy_tbl.obj (.text:_copy_in)
                  00003dc0    00000080                 : cpp_init.obj (.text:___TI_cpp_init)
                  00003e40    00000060                 : boot.obj (.text:_c_int00)
                  00003ea0    00000040                 : args_main.obj (.text:__args_main)
                  00003ee0    00000020                 : exit.obj (.text:_abort)
.stack     0    00003f00    00000320     UNINITIALIZED
                  00003f00    00000008     rts6400.lib : boot.obj (.stack)
                  00003f08    00000318     --HOLE--
.cinit     0    00004220    00000034    
                  00004220    0000002c     rts6400.lib : exit.obj (.cinit)
                  0000424c    00000004     --HOLE-- [fill = 00000000]
                  00004250    00000004     (.pad.cinit) [fill = 0]
.far       0    00004254    0000000c     UNINITIALIZED
                  00004254    0000000c     rts6400.lib : exit.obj (.far)
.pend      0    00004260    00000004    
                  00004260    00000004     StoreEprom11-02.obj (.pend)
  • Hello,
    Please provide your full build output. You can copy and paste to a text file and then attach the text file here. Also provide the EpromBoot11-02.cmd file and any other linker command files and options files that may have been used.

    Thanks
    ki
  • EpromBoot11-02.txt
    /*
     *  Copyright 2001 by Texas Instruments Incorporated.
     *  All rights reserved. Property of Texas Instruments Incorporated.
     *  Restricted rights to use, duplicate or disclose this code are
     *  granted through contract.
     */
    /*
     *  ======== volume.cmd ======== 
     *
     */
    
    
    MEMORY 
    {
    	BOOT			: origin = 0x0, len=0x400,fill=0x0000
    	VECTOR			: origin = 0x400, len=0x200 
    	RAM			: origin = 0x600, len=0x4A00,FILL=0x0000 
            DATA			: origin = 0x5100, len = 0xF00, FILL= 0X0000 
            MDATA			: origin = 0x6000, len = 0x1C00, FILL = 0x0 
            DATA2			: origin = 0x7C00, len = 0x400, FILL= 0X0000 
    }
    SECTIONS
    {
    	.boot	>BOOT	
            .vectors > VECTOR
            .main: load= 0X600
            .text	>RAM 
            .bss	>DATA
           	.data   >DATA
           	.pend	>RAM	
            .data2  >DATA2
            .cinit	>RAM
            .far	>RAM
            .stack	>RAM
       
    }
    
    HDL64.txt
    ******************************************************************************
                   TMS320C6x Linker PC v7.3.0                      
    ******************************************************************************
    >> Linked Fri Jul 13 10:09:07 2018
    
    OUTPUT FILE NAME:   <C:/Users/kvallabhaneni/Desktop/HDL2_V306_112608/HDL2-June2708/../Debug/HDL64.out>
    ENTRY POINT SYMBOL: "_c_int00"  address: 00003e40
    
    
    MEMORY CONFIGURATION
    
             name            origin    length      used     unused   attr    fill
    ----------------------  --------  ---------  --------  --------  ----  --------
      BOOT                  00000000   00000400  00000400  00000000  RWIX  00000000
      VECTOR                00000400   00000200  00000200  00000000  RWIX
      RAM                   00000600   00004a00  00004a00  00000000  RWIX  00000000
      DATA                  00005100   00000f00  00000f00  00000000  RWIX  00000000
      MDATA                 00006000   00001c00  00001c00  00000000  RWIX  00000000
      DATA2                 00007c00   00000400  00000400  00000000  RWIX  00000000
    
    
    SECTION ALLOCATION MAP
    
     output                                  attributes/
    section   page    origin      length       input sections
    --------  ----  ----------  ----------   ----------------
    .boot      0    00000000    000000c0     
                      00000000    000000c0     StoreEprom11-02.obj (.boot)
    
    $fill000   0    000000c0    00000340     
                      000000c0    00000340     --HOLE-- [fill = 00000000]
    
    .vectors   0    00000400    00000200     
                      00000400    00000200     StoreEprom11-02.obj (.vectors)
    
    .main      0    00000600    00001180     
                      00000600    00001180     MainDualA-DR3.obj (.main)
    
    .text      0    00001780    00002780     
                      00001780    00000ae0     Read120Mwtimestamp.obj (.text)
                      00002260    000007a0     SerialIn.obj (.text)
                      00002a00    00000440     LDLASER8xR2.obj (.text)
                      00002e40    000003a0     CRC-iniFordt.obj (.text)
                      000031e0    00000220     MotorR3.obj (.text)
                      00003400    00000200     MainDualA-DR3.obj (.text)
                      00003600    00000100     ClearRegs.obj (.text)
                      00003700    00000100     SETADCr2.obj (.text)
                      00003800    000000e0     EtherRESET.obj (.text)
                      000038e0    000000e0     EtherRecieve.obj (.text)
                      000039c0    000000e0     Ethersetuphdl.obj (.text)
                      00003aa0    000000e0     rts6400.lib : autoinit.obj (.text:__auto_init)
                      00003b80    000000e0                 : memcpy64.obj (.text:_memcpy)
                      00003c60    000000c0                 : exit.obj (.text:_exit)
                      00003d20    000000a0                 : cpy_tbl.obj (.text:_copy_in)
                      00003dc0    00000080                 : cpp_init.obj (.text:___TI_cpp_init)
                      00003e40    00000060                 : boot.obj (.text:_c_int00)
                      00003ea0    00000040                 : args_main.obj (.text:__args_main)
                      00003ee0    00000020                 : exit.obj (.text:_abort)
    
    .stack     0    00003f00    00000320     UNINITIALIZED
                      00003f00    00000008     rts6400.lib : boot.obj (.stack)
                      00003f08    00000318     --HOLE--
    
    .cinit     0    00004220    00000034     
                      00004220    0000002c     rts6400.lib : exit.obj (.cinit)
                      0000424c    00000004     --HOLE-- [fill = 00000000]
                      00004250    00000004     (.pad.cinit) [fill = 0]
    
    .far       0    00004254    0000000c     UNINITIALIZED
                      00004254    0000000c     rts6400.lib : exit.obj (.far)
    
    .pend      0    00004260    00000004     
                      00004260    00000004     StoreEprom11-02.obj (.pend)
    
    $fill001   0    00004264    00000d9c     
                      00004264    00000d9c     --HOLE-- [fill = 00000000]
    
    .bss       0    00005100    00000000     UNINITIALIZED
    
    .data      0    00005100    00000ec0     
                      00005100    000008f4     MainDualA-DR3.obj (.data)
                      000059f4    0000000c     --HOLE-- [fill = 00000000]
                      00005a00    00000240     SerialIn.obj (.data)
                      00005c40    00000180     Time01.obj (.data)
                      00005dc0    000000c0     Read120Mwtimestamp.obj (.data)
                      00005e80    00000060     LDLASER8xR2.obj (.data)
                      00005ee0    00000054     MotorR3.obj (.data)
                      00005f34    0000000c     --HOLE-- [fill = 00000000]
                      00005f40    00000034     CRC-iniFordt.obj (.data)
                      00005f74    00000030     SETADCr2.obj (.data)
                      00005fa4    0000001c     --HOLE-- [fill = 00000000]
    
    $fill002   0    00005fc0    00000040     
                      00005fc0    00000040     --HOLE-- [fill = 00000000]
    
    $fill003   0    00006000    00001c00     
                      00006000    00001c00     --HOLE-- [fill = 00000000]
    
    .data2     0    00007c00    00000100     
                      00007c00    00000100     Read120Mwtimestamp.obj (.data2)
    
    $fill004   0    00007d00    00000300     
                      00007d00    00000300     --HOLE-- [fill = 00000000]
    
    
    GLOBAL SYMBOLS: SORTED ALPHABETICALLY BY Name 
    
    address    name
    --------   ----
    00005100   $bss
    00005100   .bss
    00005100   .data
    00001780   .text
    00007c00   BUFTBL1
    00007c80   BUFTBL2
    00003ee0   C$$EXIT
    000014f4   CALDATA
    00003600   CLEARREG
    00005c00   CODEWORD
    000055f4   CRCTBLE
    00007d00   DISTBLE
    00005100   DIVTABLE
    0000381c   ERESET
    000038f4   ETHERREC
    00007180   ETHTBLE
    00005514   FORDER
    00002e40   INITCRC
    00005df0   LCORTBL
    00002a00   LDLASER
    00003400   LFIFO
    00005e80   LINFO
    00005dd0   LPOWTBL
    00005f24   MORDER
    00005ee0   MOTDATA
    00005ee4   MOTTBLE
    00005520   PACORD
    000039e0   PHY
    000016f8   POWERORD
    00005524   POWERORD2
    00004260   PROGEND
    00002260   READEND
    000013b0   READRET
    00001780   READSEND6
    00000000   RESET
    000031e0   RUNMOTOR
    00005e80   SENTBLE
    00002260   SERIAL
    00005f84   SERTBL
    00003700   SETADC
    00003500   SQTBL
    00005c90   TIME
    00005c50   TIMETBLE
    00005c70   TINFO
    00000a3c   TOP
    00005f42   XEDATA
    00005f58   XIPDATA
    00005c38   XTBLE
    00004220   __STACK_END
    00000320   __STACK_SIZE
    00000001   __TI_args_main
    00003dc0   ___TI_cpp_init
    0000425c   ___TI_enable_exit_profile_output
    ffffffff   ___TI_pprof_out_hndl
    ffffffff   ___TI_prof_data_size
    ffffffff   ___TI_prof_data_start
    ffffffff   ___binit__
    00005100   ___bss__
    ffffffff   ___c_args__
    00004220   ___cinit__
    00005100   ___data__
    00005fc0   ___edata__
    00005100   ___end__
    00003f00   ___etext__
    ffffffff   ___pinit__
    00001780   ___text__
    00003ea0   __args_main
    00003aa0   __auto_init
    00004254   __cleanup_ptr
    00004258   __dtors_ptr
    00003f00   __stack
    00003ee0   _abort
    00003e40   _c_int00
    00003d20   _copy_in
    00003c60   _exit
    00000600   _main
    00003b80   _memcpy
    ffffffff   binit
    00004220   cinit
    00005fc0   edata
    00005100   end
    00003f00   etext
    ffffffff   pinit
    00000420   unused1
    00000560   unused11
    00000580   unused12
    000005a0   unused13
    00000440   unused2
    00000460   unused3
    000004e0   unused7
    00000500   unused8
    00000520   unused9
    
    
    GLOBAL SYMBOLS: SORTED BY Symbol Address 
    
    address    name
    --------   ----
    00000000   RESET
    00000001   __TI_args_main
    00000320   __STACK_SIZE
    00000420   unused1
    00000440   unused2
    00000460   unused3
    000004e0   unused7
    00000500   unused8
    00000520   unused9
    00000560   unused11
    00000580   unused12
    000005a0   unused13
    00000600   _main
    00000a3c   TOP
    000013b0   READRET
    000014f4   CALDATA
    000016f8   POWERORD
    00001780   .text
    00001780   READSEND6
    00001780   ___text__
    00002260   READEND
    00002260   SERIAL
    00002a00   LDLASER
    00002e40   INITCRC
    000031e0   RUNMOTOR
    00003400   LFIFO
    00003500   SQTBL
    00003600   CLEARREG
    00003700   SETADC
    0000381c   ERESET
    000038f4   ETHERREC
    000039e0   PHY
    00003aa0   __auto_init
    00003b80   _memcpy
    00003c60   _exit
    00003d20   _copy_in
    00003dc0   ___TI_cpp_init
    00003e40   _c_int00
    00003ea0   __args_main
    00003ee0   C$$EXIT
    00003ee0   _abort
    00003f00   ___etext__
    00003f00   __stack
    00003f00   etext
    00004220   __STACK_END
    00004220   ___cinit__
    00004220   cinit
    00004254   __cleanup_ptr
    00004258   __dtors_ptr
    0000425c   ___TI_enable_exit_profile_output
    00004260   PROGEND
    00005100   $bss
    00005100   .bss
    00005100   .data
    00005100   DIVTABLE
    00005100   ___bss__
    00005100   ___data__
    00005100   ___end__
    00005100   end
    00005514   FORDER
    00005520   PACORD
    00005524   POWERORD2
    000055f4   CRCTBLE
    00005c00   CODEWORD
    00005c38   XTBLE
    00005c50   TIMETBLE
    00005c70   TINFO
    00005c90   TIME
    00005dd0   LPOWTBL
    00005df0   LCORTBL
    00005e80   LINFO
    00005e80   SENTBLE
    00005ee0   MOTDATA
    00005ee4   MOTTBLE
    00005f24   MORDER
    00005f42   XEDATA
    00005f58   XIPDATA
    00005f84   SERTBL
    00005fc0   ___edata__
    00005fc0   edata
    00007180   ETHTBLE
    00007c00   BUFTBL1
    00007c80   BUFTBL2
    00007d00   DISTBLE
    ffffffff   ___TI_pprof_out_hndl
    ffffffff   ___TI_prof_data_size
    ffffffff   ___TI_prof_data_start
    ffffffff   ___binit__
    ffffffff   ___c_args__
    ffffffff   ___pinit__
    ffffffff   binit
    ffffffff   pinit
    
    [92 symbols]
    
    8640.New Microsoft Word Document (2).docx

  • Hello,
    Please provide your full build output. Basically I am looking for all the build messages in the Build Console. You can copy and paste to a text file and then attach the text file here.

    Thanks
    ki
  • 5078.build.txt
    **** Build of configuration Debug for project HDL2-June2708 ****
    
    "C:\\ti\\ccsv7\\utils\\bin\\gmake" -k -j 8 all -O 
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv7/tools/compiler/bin/cl6x" -mv6400 -g -O2 -ms0 --program_level_compile --define=c6416 --include_path="C:/Users/kvallabhaneni/Desktop/HDL2_V306_112608/HDL2-June2708" --include_path="C:/ti/xdais_7_00_00_27/packages/ti/xdais" --include_path="c:/CCSTUD~1.3MC/C6000/csl/include" --include_path="C:/ti/ccsv7/tools/compiler/include" --display_error_number --no_bad_aliases --mem_model:data=near --abi=coffabi --call_assumptions=2 --std_lib_func_not_defined -k --asm_listing  "C:/Users/kvallabhaneni/Desktop/HDL2_V306_112608/CRC-iniFordt.sa" "C:/Users/kvallabhaneni/Desktop/HDL2_V306_112608/LDLASER8xR2.sa" "C:/Users/kvallabhaneni/Desktop/HDL2_V306_112608/MotorR3.sa" "C:/Users/kvallabhaneni/Desktop/HDL2_V306_112608/Read120Mwtimestamp.sa" "C:/Users/kvallabhaneni/Desktop/HDL2_V306_112608/SETADCr2.sa" "C:/Users/kvallabhaneni/Desktop/HDL2_V306_112608/SerialIn.sa" "C:/Users/kvallabhaneni/Desktop/HDL2_V306_112608/SyncDMA.sa" "C:/Users/kvallabhaneni/Desktop/HDL2_V306_112608/Time01.sa"  "C:/Users/kvallabhaneni/Desktop/HDL2_V306_112608/ClearRegs.asm" "C:/Users/kvallabhaneni/Desktop/HDL2_V306_112608/EtherRESET.asm" "C:/Users/kvallabhaneni/Desktop/HDL2_V306_112608/EtherRecieve.asm" "C:/Users/kvallabhaneni/Desktop/HDL2_V306_112608/Ethersetuphdl.asm" "C:/Users/kvallabhaneni/Desktop/HDL2_V306_112608/MainDualA-DR3.asm" "C:/Users/kvallabhaneni/Desktop/HDL2_V306_112608/StoreEprom11-02.asm"  
    {CRC-iniFordt.sa}
    {LDLASER8xR2.sa}
    {MotorR3.sa}
    {Read120Mwtimestamp.sa}
    {SETADCr2.sa}
    {SerialIn.sa}
    {SyncDMA.sa}
    {Time01.sa}
    [ClearRegs.asm]
    [EtherRESET.asm]
    [EtherRecieve.asm]
    [Ethersetuphdl.asm]
    [MainDualA-DR3.asm]
    [StoreEprom11-02.asm]
    'Finished building: CRC-iniFordt.obj'
    ' '
    'Building target: C:/Users/kvallabhaneni/Desktop/HDL2_V306_112608/HDL2-June2708/../Debug/HDL64.out'
    'Invoking: C6000 Linker'
    "C:/ti/ccsv7/tools/compiler/bin/cl6x" -mv6400 -g -O2 -ms0 --program_level_compile --define=c6416 --display_error_number --no_bad_aliases --mem_model:data=near --abi=coffabi --call_assumptions=2 --std_lib_func_not_defined -k --asm_listing -z -m"C:/Users/kvallabhaneni/Desktop/HDL2_V306_112608/Debug/HDL64.map" --stack_size=800 --warn_sections --display_error_number -i"C:/Users/kvallabhaneni/Desktop/HDL2_V306_112608/HDL2-June2708" -i"C:/Users/kvallabhaneni/Desktop/HDL2_V306_112608" -i"c:/CCSTUD~1.3MC/C6000/csl/lib" -i"C:/ti/ccsv7/tools/compiler/lib" -i"C:/ti/ccsv7/tools/compiler/include" --reread_libs --xml_link_info="HDL2-June2708_linkInfo.xml" --make_static --rom_model --trampolines=off -o "C:/Users/kvallabhaneni/Desktop/HDL2_V306_112608/HDL2-June2708/../Debug/HDL64.out" "CRC-iniFordt.obj"  "C:/Users/kvallabhaneni/Desktop/HDL2_V306_112608/EpromBoot11-02.cmd" "CRC-iniFordt.obj" "ClearRegs.obj" "EtherRESET.obj" "EtherRecieve.obj" "Ethersetuphdl.obj" "LDLASER8xR2.obj" "MainDualA-DR3.obj" "MotorR3.obj" "Read120Mwtimestamp.obj" "SETADCr2.obj" "SerialIn.obj" "StoreEprom11-02.obj" "SyncDMA.obj" "Time01.obj"  
    <Linking>
    'Finished building target: C:/Users/kvallabhaneni/Desktop/HDL2_V306_112608/HDL2-June2708/../Debug/HDL64.out'
    ' '
    
    **** Build Finished ****
    

  • Thanks. I forwarded this issue to our compiler guru and he noticed that there linker option "--rom_model" is being used. This will automatically include the rts library. If you do not need this option, please clear it in the linker options in the project properties (Build -> C6000 Linker -> Advanced Options -> Runtime Environment -> Initialization model).

    Thanks
    ki