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
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    /*
    * 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
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    HDL64.txt
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    ******************************************************************************
    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]
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    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
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    **** 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 ****
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • 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