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.

Memory mapping and linker, bin file

Other Parts Discussed in Thread: TMS320C6746

Dear All,

here is the memory configuration..

        name            origin    length      used     unused   attr    fill
----------------------  --------  ---------  --------  --------  ----  --------
  BOOT_RAM1             11800000   00000400  00000400  00000000  RW X  0
  BOOT_RAM2             11800400   00000c00  00000c00  00000000  RW X  0
  IRAM                  11801000   0003f000  0003f000  00000000  RW X  0
  DDR2_DATA             c0000000   00500000  00500000  00000000  RW X  0
  DDR2_CODE             c0500000   00500000  00500000  00000000  RW X  0

When i am creating binary file, except IRAM section every section filled unused section with zero in the total length of memory. Regarding IRAM section it is not taking 0x3F000 to build, some part is  missing in IRAM section ..why??.

0x4800 size of array is placing into DDR2_DATA section, MAP file having this allocation but in binary file, array is not present in DDR2_DATA section.

this is the command "${CG_TOOL_HEX}.exe -b ../../../Out/ss4_main_9_0.out -o ../../../Out/ss4_main_9_0.bin" in build options - steps - post operation

  • Which processor family are you working with and which version of the compiler tools?

    You might want to look into the --image option for the hex utility which generates a image by completely filling all the mapped memory ranges. You can use the --fill option with this, but would need to specify a ROMS directive to tell the utility which memory range to generate the image for. More details are in the "Hex Conversion Utility Description" chapter of the Assembly Language Tools Users Guide: http://processors.wiki.ti.com/index.php/TI_Compiler_Information#Compiler_Manuals

  • AartiG,

    this is info we are using

    TMS320C6746 processor family

    CCS5v 5.2.0.00069

    RTSC/XDCtool 3.23.03.53

    C/C++ Development tool 8.0.2.201202111925

    this is the command i am using in build - steps - post operation "${CG_TOOL_HEX}.exe ../../../Project/DSP_Main/Link.cmd"

    post linker file:

    ../../../Out/ss4_main_9_0.out /* input file */
    -b /* ascii format */
    --image /* create complete ROM image */
    --zero /* reset address origin to 0 */
    --memwidth 8 /* 8-bit memory */
    --map=../../../Out/abchex.map /* create a hex map file */

    ROMS
    {
        FLASH: org=0x60000000, len=0x40000, romwidth=8, files={../../../Out/abc.bin}
    }

    abchex.map file:

    ********************************************************************************
    TMS320C6x Hex Converter                                                   v7.3.4
    ********************************************************************************

    INPUT FILE NAME: <../../../Out/ss4_main_9_0.out>
    OUTPUT FORMAT:   Binary

    PHYSICAL MEMORY PARAMETERS
       Default data width   :   8
       Default memory width :   8
       Default output width :   8


    OUTPUT TRANSLATION MAP
    --------------------------------------------------------------------------------
    60000000..6003ffff  Page=0  Memory Width=8  ROM Width=8  "FLASH"
    --------------------------------------------------------------------------------
       OUTPUT FILES: ../../../Out/abc.bin [b0..b7]

    output on console:


    **** Build of configuration Debug for project SS4_DSP_Main ****

    C:\ti\ccsv5\utils\bin\gmake -k all
    'Building file: ../app.cfg'
    'Invoking: XDCtools'
    "C:/ti/xdctools_3_23_03_53/xs" --xdcpath="C:/ti/bios_6_33_04_39/packages;E:/SS4_MLBv9_cmd/Package;" xdc.tools.configuro -o configPkg -t ti.targets.C674 -p TMS320C6746_SS4 -r release -c "C:/ti/ccsv5/tools/compiler/c6000_7.3.4" --compileOptions "-g --optimize_with_debug" "../app.cfg"
    making package.mak (because of package.bld) ...
    generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
    configuring app.x674 from package/cfg/app_p674.cfg ...
    cl674 package/cfg/app_p674.c ...
    'Finished building: ../app.cfg'
    ' '
    'Building file: E:/SS4_MLBv9_cmd/Common/Boot_6746_A.asm'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv5/tools/compiler/c6000_7.3.4/bin/cl6x" -mv6740 -g --exceptions --rtti --cpp_default --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.3.4/include" --include_path="E:/SS4_MLBv9_cmd/Project/DSP_Main/Application_Include" --include_path="E:/SS4_MLBv9_cmd/Common_Include" --display_error_number --diag_warning=225 --abi=coffabi --preproc_with_compile --preproc_dependency="Common/Boot_6746_A.pp" --obj_directory="Common" --cmd_file="./configPkg/compiler.opt"  "E:/SS4_MLBv9_cmd/Common/Boot_6746_A.asm"
    "E:/SS4_MLBv9_cmd/Common/Boot_6746_A.asm", WARNING! at line 50: [W9999]
             Placing data in a code section (.nor_config_word) is discouraged. The
               data may be interpreted as code. This section will not be
               compressed.
                nop        5

    No Assembly Errors, 1 Assembly Warning
    'Finished building: E:/SS4_MLBv9_cmd/Common/Boot_6746_A.asm'
    ' '
    'Building file: E:/SS4_MLBv9_cmd/Common/Boot_6746_C.c'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv5/tools/compiler/c6000_7.3.4/bin/cl6x" -mv6740 -g --exceptions --rtti --cpp_default --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.3.4/include" --include_path="E:/SS4_MLBv9_cmd/Project/DSP_Main/Application_Include" --include_path="E:/SS4_MLBv9_cmd/Common_Include" --display_error_number --diag_warning=225 --abi=coffabi --preproc_with_compile --preproc_dependency="Common/Boot_6746_C.pp" --obj_directory="Common" --cmd_file="./configPkg/compiler.opt"  "E:/SS4_MLBv9_cmd/Common/Boot_6746_C.c"
    'Finished building: E:/SS4_MLBv9_cmd/Common/Boot_6746_C.c'
    ' '
    'Building file: E:/SS4_MLBv9_cmd/Common/Boot_6746_Init.c'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv5/tools/compiler/c6000_7.3.4/bin/cl6x" -mv6740 -g --exceptions --rtti --cpp_default --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.3.4/include" --include_path="E:/SS4_MLBv9_cmd/Project/DSP_Main/Application_Include" --include_path="E:/SS4_MLBv9_cmd/Common_Include" --display_error_number --diag_warning=225 --abi=coffabi --preproc_with_compile --preproc_dependency="Common/Boot_6746_Init.pp" --obj_directory="Common" --cmd_file="./configPkg/compiler.opt"  "E:/SS4_MLBv9_cmd/Common/Boot_6746_Init.c"
    'Finished building: E:/SS4_MLBv9_cmd/Common/Boot_6746_Init.c'
    ' '
    'Building file: E:/SS4_MLBv9_cmd/Common/DSP674x_Gpio.c'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv5/tools/compiler/c6000_7.3.4/bin/cl6x" -mv6740 -g --exceptions --rtti --cpp_default --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.3.4/include" --include_path="E:/SS4_MLBv9_cmd/Project/DSP_Main/Application_Include" --include_path="E:/SS4_MLBv9_cmd/Common_Include" --display_error_number --diag_warning=225 --abi=coffabi --preproc_with_compile --preproc_dependency="Common/DSP674x_Gpio.pp" --obj_directory="Common" --cmd_file="./configPkg/compiler.opt"  "E:/SS4_MLBv9_cmd/Common/DSP674x_Gpio.c"
    'Finished building: E:/SS4_MLBv9_cmd/Common/DSP674x_Gpio.c'
    ' '
    'Building file: E:/SS4_MLBv9_cmd/Common/DSP674x_McBSP.c'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv5/tools/compiler/c6000_7.3.4/bin/cl6x" -mv6740 -g --exceptions --rtti --cpp_default --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.3.4/include" --include_path="E:/SS4_MLBv9_cmd/Project/DSP_Main/Application_Include" --include_path="E:/SS4_MLBv9_cmd/Common_Include" --display_error_number --diag_warning=225 --abi=coffabi --preproc_with_compile --preproc_dependency="Common/DSP674x_McBSP.pp" --obj_directory="Common" --cmd_file="./configPkg/compiler.opt"  "E:/SS4_MLBv9_cmd/Common/DSP674x_McBSP.c"
    "E:/SS4_MLBv9_cmd/Common/DSP674x_McBSP.c", line 376: warning #552-D: variable "McBSPData" was set but never used
    "E:/SS4_MLBv9_cmd/Common/DSP674x_McBSP.c", line 412: warning #552-D: variable "McBSPData" was set but never used
    'Finished building: E:/SS4_MLBv9_cmd/Common/DSP674x_McBSP.c'
    ' '
    'Building file: E:/SS4_MLBv9_cmd/Common/DSP674x_SystCtrl.c'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv5/tools/compiler/c6000_7.3.4/bin/cl6x" -mv6740 -g --exceptions --rtti --cpp_default --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.3.4/include" --include_path="E:/SS4_MLBv9_cmd/Project/DSP_Main/Application_Include" --include_path="E:/SS4_MLBv9_cmd/Common_Include" --display_error_number --diag_warning=225 --abi=coffabi --preproc_with_compile --preproc_dependency="Common/DSP674x_SystCtrl.pp" --obj_directory="Common" --cmd_file="./configPkg/compiler.opt"  "E:/SS4_MLBv9_cmd/Common/DSP674x_SystCtrl.c"
    'Finished building: E:/SS4_MLBv9_cmd/Common/DSP674x_SystCtrl.c'
    ' '
    'Building file: E:/SS4_MLBv9_cmd/Common/ModbusCRC.c'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv5/tools/compiler/c6000_7.3.4/bin/cl6x" -mv6740 -g --exceptions --rtti --cpp_default --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.3.4/include" --include_path="E:/SS4_MLBv9_cmd/Project/DSP_Main/Application_Include" --include_path="E:/SS4_MLBv9_cmd/Common_Include" --display_error_number --diag_warning=225 --abi=coffabi --preproc_with_compile --preproc_dependency="Common/ModbusCRC.pp" --obj_directory="Common" --cmd_file="./configPkg/compiler.opt"  "E:/SS4_MLBv9_cmd/Common/ModbusCRC.c"
    'Finished building: E:/SS4_MLBv9_cmd/Common/ModbusCRC.c'
    ' '
    'Building file: E:/SS4_MLBv9_cmd/Common/Uart2.cpp'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv5/tools/compiler/c6000_7.3.4/bin/cl6x" -mv6740 -g --exceptions --rtti --cpp_default --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.3.4/include" --include_path="E:/SS4_MLBv9_cmd/Project/DSP_Main/Application_Include" --include_path="E:/SS4_MLBv9_cmd/Common_Include" --display_error_number --diag_warning=225 --abi=coffabi --preproc_with_compile --preproc_dependency="Common/Uart2.pp" --obj_directory="Common" --cmd_file="./configPkg/compiler.opt"  "E:/SS4_MLBv9_cmd/Common/Uart2.cpp"
    'Finished building: E:/SS4_MLBv9_cmd/Common/Uart2.cpp'
    ' '
    'Building file: E:/SS4_MLBv9_cmd/Common/c1649.c'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv5/tools/compiler/c6000_7.3.4/bin/cl6x" -mv6740 -g --exceptions --rtti --cpp_default --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.3.4/include" --include_path="E:/SS4_MLBv9_cmd/Project/DSP_Main/Application_Include" --include_path="E:/SS4_MLBv9_cmd/Common_Include" --display_error_number --diag_warning=225 --abi=coffabi --preproc_with_compile --preproc_dependency="Common/c1649.pp" --obj_directory="Common" --cmd_file="./configPkg/compiler.opt"  "E:/SS4_MLBv9_cmd/Common/c1649.c"
    'Finished building: E:/SS4_MLBv9_cmd/Common/c1649.c'
    ' '
    'Building file: E:/SS4_MLBv9_cmd/Common/crc.c'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv5/tools/compiler/c6000_7.3.4/bin/cl6x" -mv6740 -g --exceptions --rtti --cpp_default --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.3.4/include" --include_path="E:/SS4_MLBv9_cmd/Project/DSP_Main/Application_Include" --include_path="E:/SS4_MLBv9_cmd/Common_Include" --display_error_number --diag_warning=225 --abi=coffabi --preproc_with_compile --preproc_dependency="Common/crc.pp" --obj_directory="Common" --cmd_file="./configPkg/compiler.opt"  "E:/SS4_MLBv9_cmd/Common/crc.c"
    'Finished building: E:/SS4_MLBv9_cmd/Common/crc.c'
    ' '
    'Building file: ../Application/Adc.cpp'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv5/tools/compiler/c6000_7.3.4/bin/cl6x" -mv6740 -g --exceptions --rtti --cpp_default --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.3.4/include" --include_path="E:/SS4_MLBv9_cmd/Project/DSP_Main/Application_Include" --include_path="E:/SS4_MLBv9_cmd/Common_Include" --display_error_number --diag_warning=225 --abi=coffabi --preproc_with_compile --preproc_dependency="Application/Adc.pp" --obj_directory="Application" --cmd_file="./configPkg/compiler.opt"  "../Application/Adc.cpp"
    'Finished building: ../Application/Adc.cpp'
    ' '
    'Building file: ../Application/DSPComm_c.cpp'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv5/tools/compiler/c6000_7.3.4/bin/cl6x" -mv6740 -g --exceptions --rtti --cpp_default --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.3.4/include" --include_path="E:/SS4_MLBv9_cmd/Project/DSP_Main/Application_Include" --include_path="E:/SS4_MLBv9_cmd/Common_Include" --display_error_number --diag_warning=225 --abi=coffabi --preproc_with_compile --preproc_dependency="Application/DSPComm_c.pp" --obj_directory="Application" --cmd_file="./configPkg/compiler.opt"  "../Application/DSPComm_c.cpp"
    'Finished building: ../Application/DSPComm_c.cpp'
    ' '
    'Building file: ../Application/EventIntegrator.c'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv5/tools/compiler/c6000_7.3.4/bin/cl6x" -mv6740 -g --exceptions --rtti --cpp_default --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.3.4/include" --include_path="E:/SS4_MLBv9_cmd/Project/DSP_Main/Application_Include" --include_path="E:/SS4_MLBv9_cmd/Common_Include" --display_error_number --diag_warning=225 --abi=coffabi --preproc_with_compile --preproc_dependency="Application/EventIntegrator.pp" --obj_directory="Application" --cmd_file="./configPkg/compiler.opt"  "../Application/EventIntegrator.c"
    'Finished building: ../Application/EventIntegrator.c'
    ' '
    'Building file: ../Application/FPGA.cpp'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv5/tools/compiler/c6000_7.3.4/bin/cl6x" -mv6740 -g --exceptions --rtti --cpp_default --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.3.4/include" --include_path="E:/SS4_MLBv9_cmd/Project/DSP_Main/Application_Include" --include_path="E:/SS4_MLBv9_cmd/Common_Include" --display_error_number --diag_warning=225 --abi=coffabi --preproc_with_compile --preproc_dependency="Application/FPGA.pp" --obj_directory="Application" --cmd_file="./configPkg/compiler.opt"  "../Application/FPGA.cpp"
    "../Application/FPGA.cpp", line 518: warning #14-D: extra text after expected end of preprocessing directive
    'Finished building: ../Application/FPGA.cpp'
    ' '
    'Building file: ../Application/FXComm.cpp'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv5/tools/compiler/c6000_7.3.4/bin/cl6x" -mv6740 -g --exceptions --rtti --cpp_default --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.3.4/include" --include_path="E:/SS4_MLBv9_cmd/Project/DSP_Main/Application_Include" --include_path="E:/SS4_MLBv9_cmd/Common_Include" --display_error_number --diag_warning=225 --abi=coffabi --preproc_with_compile --preproc_dependency="Application/FXComm.pp" --obj_directory="Application" --cmd_file="./configPkg/compiler.opt"  "../Application/FXComm.cpp"
    "../Application/FXComm.cpp", line 378: warning #551-D: variable "ReqDataPkt" is used before its value is set
    'Finished building: ../Application/FXComm.cpp'
    ' '
    'Building file: ../Application/GateDriveHandler.cpp'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv5/tools/compiler/c6000_7.3.4/bin/cl6x" -mv6740 -g --exceptions --rtti --cpp_default --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.3.4/include" --include_path="E:/SS4_MLBv9_cmd/Project/DSP_Main/Application_Include" --include_path="E:/SS4_MLBv9_cmd/Common_Include" --display_error_number --diag_warning=225 --abi=coffabi --preproc_with_compile --preproc_dependency="Application/GateDriveHandler.pp" --obj_directory="Application" --cmd_file="./configPkg/compiler.opt"  "../Application/GateDriveHandler.cpp"
    'Finished building: ../Application/GateDriveHandler.cpp'
    ' '
    'Building file: ../Application/GateDriveTask.cpp'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv5/tools/compiler/c6000_7.3.4/bin/cl6x" -mv6740 -g --exceptions --rtti --cpp_default --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.3.4/include" --include_path="E:/SS4_MLBv9_cmd/Project/DSP_Main/Application_Include" --include_path="E:/SS4_MLBv9_cmd/Common_Include" --display_error_number --diag_warning=225 --abi=coffabi --preproc_with_compile --preproc_dependency="Application/GateDriveTask.pp" --obj_directory="Application" --cmd_file="./configPkg/compiler.opt"  "../Application/GateDriveTask.cpp"
    "../Application/GateDriveTask.cpp", line 129: warning #552-D: variable "result" was set but never used
    'Finished building: ../Application/GateDriveTask.cpp'
    ' '
    'Building file: ../Application/Init_c.c'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv5/tools/compiler/c6000_7.3.4/bin/cl6x" -mv6740 -g --exceptions --rtti --cpp_default --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.3.4/include" --include_path="E:/SS4_MLBv9_cmd/Project/DSP_Main/Application_Include" --include_path="E:/SS4_MLBv9_cmd/Common_Include" --display_error_number --diag_warning=225 --abi=coffabi --preproc_with_compile --preproc_dependency="Application/Init_c.pp" --obj_directory="Application" --cmd_file="./configPkg/compiler.opt"  "../Application/Init_c.c"
    'Finished building: ../Application/Init_c.c'
    ' '
    'Building file: ../Application/Metering.cpp'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv5/tools/compiler/c6000_7.3.4/bin/cl6x" -mv6740 -g --exceptions --rtti --cpp_default --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.3.4/include" --include_path="E:/SS4_MLBv9_cmd/Project/DSP_Main/Application_Include" --include_path="E:/SS4_MLBv9_cmd/Common_Include" --display_error_number --diag_warning=225 --abi=coffabi --preproc_with_compile --preproc_dependency="Application/Metering.pp" --obj_directory="Application" --cmd_file="./configPkg/compiler.opt"  "../Application/Metering.cpp"
    "../Application/Metering.cpp", line 327: warning #179-D: variable "TLMIDIndex" was declared but never referenced
    'Finished building: ../Application/Metering.cpp'
    ' '
    'Building file: ../Application/PQ_Status.cpp'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv5/tools/compiler/c6000_7.3.4/bin/cl6x" -mv6740 -g --exceptions --rtti --cpp_default --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.3.4/include" --include_path="E:/SS4_MLBv9_cmd/Project/DSP_Main/Application_Include" --include_path="E:/SS4_MLBv9_cmd/Common_Include" --display_error_number --diag_warning=225 --abi=coffabi --preproc_with_compile --preproc_dependency="Application/PQ_Status.pp" --obj_directory="Application" --cmd_file="./configPkg/compiler.opt"  "../Application/PQ_Status.cpp"
    "../Application/PQ_Status.cpp", line 89: warning #552-D: variable "Return" was set but never used
    'Finished building: ../Application/PQ_Status.cpp'
    ' '
    'Building file: ../Application/SignalProcessing_c.cpp'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv5/tools/compiler/c6000_7.3.4/bin/cl6x" -mv6740 -g --exceptions --rtti --cpp_default --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.3.4/include" --include_path="E:/SS4_MLBv9_cmd/Project/DSP_Main/Application_Include" --include_path="E:/SS4_MLBv9_cmd/Common_Include" --display_error_number --diag_warning=225 --abi=coffabi --preproc_with_compile --preproc_dependency="Application/SignalProcessing_c.pp" --obj_directory="Application" --cmd_file="./configPkg/compiler.opt"  "../Application/SignalProcessing_c.cpp"
    'Finished building: ../Application/SignalProcessing_c.cpp'
    ' '
    'Building file: ../Application/SysParmeter.cpp'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv5/tools/compiler/c6000_7.3.4/bin/cl6x" -mv6740 -g --exceptions --rtti --cpp_default --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.3.4/include" --include_path="E:/SS4_MLBv9_cmd/Project/DSP_Main/Application_Include" --include_path="E:/SS4_MLBv9_cmd/Common_Include" --display_error_number --diag_warning=225 --abi=coffabi --preproc_with_compile --preproc_dependency="Application/SysParmeter.pp" --obj_directory="Application" --cmd_file="./configPkg/compiler.opt"  "../Application/SysParmeter.cpp"
    'Finished building: ../Application/SysParmeter.cpp'
    ' '
    'Building file: ../Application/Timer_c.c'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv5/tools/compiler/c6000_7.3.4/bin/cl6x" -mv6740 -g --exceptions --rtti --cpp_default --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.3.4/include" --include_path="E:/SS4_MLBv9_cmd/Project/DSP_Main/Application_Include" --include_path="E:/SS4_MLBv9_cmd/Common_Include" --display_error_number --diag_warning=225 --abi=coffabi --preproc_with_compile --preproc_dependency="Application/Timer_c.pp" --obj_directory="Application" --cmd_file="./configPkg/compiler.opt"  "../Application/Timer_c.c"
    "../Application/Timer_c.c", line 116: warning #179-D: variable "TransferInfo" was declared but never referenced
    'Finished building: ../Application/Timer_c.c'
    ' '
    'Building file: ../Application/Transfer.cpp'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv5/tools/compiler/c6000_7.3.4/bin/cl6x" -mv6740 -g --exceptions --rtti --cpp_default --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.3.4/include" --include_path="E:/SS4_MLBv9_cmd/Project/DSP_Main/Application_Include" --include_path="E:/SS4_MLBv9_cmd/Common_Include" --display_error_number --diag_warning=225 --abi=coffabi --preproc_with_compile --preproc_dependency="Application/Transfer.pp" --obj_directory="Application" --cmd_file="./configPkg/compiler.opt"  "../Application/Transfer.cpp"
    'Finished building: ../Application/Transfer.cpp'
    ' '
    'Building file: ../Application/main.cpp'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv5/tools/compiler/c6000_7.3.4/bin/cl6x" -mv6740 -g --exceptions --rtti --cpp_default --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.3.4/include" --include_path="E:/SS4_MLBv9_cmd/Project/DSP_Main/Application_Include" --include_path="E:/SS4_MLBv9_cmd/Common_Include" --display_error_number --diag_warning=225 --abi=coffabi --preproc_with_compile --preproc_dependency="Application/main.pp" --obj_directory="Application" --cmd_file="./configPkg/compiler.opt"  "../Application/main.cpp"
    'Finished building: ../Application/main.cpp'
    ' '
    'Building target: ../../../Out/ss4_main_9_0.out'
    'Invoking: C6000 Linker'
    "C:/ti/ccsv5/tools/compiler/c6000_7.3.4/bin/cl6x" -mv6740 -g --exceptions --rtti --cpp_default --display_error_number --diag_warning=225 --abi=coffabi -z -m"SS4_DSP_Main.map" --stack_size=0x2000 --warn_sections --display_error_number -i"C:/ti/ccsv5/tools/compiler/c6000_7.3.4/lib" -i"C:/ti/ccsv5/tools/compiler/c6000_7.3.4/include" --reread_libs --entry_point=_flash_prog__Fv --rom_model -o "../../../Out/ss4_main_9_0.out" -l"./configPkg/linker.cmd"  "./Application/main.obj" "./Application/Transfer.obj" "./Application/Timer_c.obj" "./Application/SysParmeter.obj" "./Application/SignalProcessing_c.obj" "./Application/PQ_Status.obj" "./Application/Metering.obj" "./Application/Init_c.obj" "./Application/GateDriveTask.obj" "./Application/GateDriveHandler.obj" "./Application/FXComm.obj" "./Application/FPGA.obj" "./Application/EventIntegrator.obj" "./Application/DSPComm_c.obj" "./Application/Adc.obj" "./Common/crc.obj" "./Common/c1649.obj" "./Common/Uart2.obj" "./Common/ModbusCRC.obj" "./Common/DSP674x_SystCtrl.obj" "./Common/DSP674x_McBSP.obj" "./Common/DSP674x_Gpio.obj" "./Common/Boot_6746_Init.obj" "./Common/Boot_6746_C.obj" "./Common/Boot_6746_A.obj" -l"libc.a" -l"rts67plus.lib" "E:/SS4_MLBv9_cmd/Common/Linker_SS4.cmd"
    <Linking>
    "E:/SS4_MLBv9_cmd/Common/Linker_SS4.cmd", line 4: warning #10068-D: no matching
       section
    warning #10063-D: entry-point symbol other than "_c_int00" specified:
       "_flash_prog__Fv"
    'Finished building target: ../../../Out/ss4_main_9_0.out'
    ' '
    C:/ti/ccsv5/utils/bin/gmake --no-print-directory post-build
    'Create flash image: TI-TXT'
    C:/ti/ccsv5/tools/compiler/c6000_7.3.4/bin/hex6x.exe ../../../Project/DSP_Main/Link.cmd
    Translating to Binary format...
       "../../../Out/ss4_main_9_0.out"   ==> .nor_config_word
       "../../../Out/ss4_main_9_0.out"   ==> Boot_code
       "../../../Out/ss4_main_9_0.out"   ==> .text
       "../../../Out/ss4_main_9_0.out"   ==> .const
       "../../../Out/ss4_main_9_0.out"   ==> .cinit
       "../../../Out/ss4_main_9_0.out"   ==> .switch.1
       "../../../Out/ss4_main_9_0.out"   ==> .vecs
       "../../../Out/ss4_main_9_0.out"   ==> .switch.2
       "../../../Out/ss4_main_9_0.out"   ==> .pinit
       "../../../Out/ss4_main_9_0.out"   ==> DDR2_code
    warning: section ../../../Out/ss4_main_9_0.out(.nor_config_word) at 011800000h
       falls in unconfigured memory (skipped)
    warning: section ../../../Out/ss4_main_9_0.out(Boot_code) at 011800400h falls
       in unconfigured memory (skipped)
    warning: section ../../../Out/ss4_main_9_0.out(.text) at 011801000h falls in
       unconfigured memory (skipped)
    warning: section ../../../Out/ss4_main_9_0.out(.const) at 01182fb70h falls in
       unconfigured memory (skipped)
    warning: section ../../../Out/ss4_main_9_0.out(.cinit) at 011832d90h falls in
       unconfigured memory (skipped)
    warning: section ../../../Out/ss4_main_9_0.out(.switch.1) at 011838bd8h falls
       in unconfigured memory (skipped)
    warning: section ../../../Out/ss4_main_9_0.out(.vecs) at 011838c00h falls in
       unconfigured memory (skipped)
    warning: section ../../../Out/ss4_main_9_0.out(.switch.2) at 011838e00h falls
       in unconfigured memory (skipped)
    warning: section ../../../Out/ss4_main_9_0.out(.pinit) at 011839154h falls in
       unconfigured memory (skipped)
    warning: section ../../../Out/ss4_main_9_0.out(DDR2_code) at 0c0500000h falls
       in unconfigured memory (skipped)
    ' '

    **** Build Finished ****

    generated binary file contains all zeros

  • It appears that the application is being linked to the 0x11800000 address range. You can check the linker map file to confirm to what address the different sections are getting linked. Then make sure that the ROMS directive in your hex command line completely covers those memory ranges.

    So something like:

    ROMS
    {
        FLASH: org=0x11800000, len=0x80000, .....
    }

  • AartiG,

      DDR2_DATA             c0000000   00500000  00500000  00000000  RW X  0 this section is missing when Out file is converted into Binary file by HEX converter utility.

    this is the linker map file

    6443.map.txt

    this is the Hex command

    ROMS
    {
        FLASH: org=0x11800000, len=0x40000, romwidth=8, fill=0x0000, files={../../../Out/abc.bin}
    }

  • Your ROMS directive does not include the 0xC0000000 memory range. Please add another memory range within the ROMS directive that starts at 0xC0000000 and covers the entire range for DDR2_DATA and DDR2_CODE. The syntax for specifying multiple ranges within ROMS is shown in the C6000 Assembly Language Tools Users Guide (search for ROMS).

  • AArtiG,

    we kept DDR data and code section in ROMS directory by checking spru186w, but there is no change,

    Our dought is how to generate bin file for defined memory configuration, this is the cmd file which  we are using...where as binary file contains zero values..not data is presenting in that.

    ../../../Out/ss4_main_9_0.out     /* input file */

    -b                                 /* ascii format */
    --image                         /* create complete ROM image */
    --memwidth 8                     /* 8-bit memory */
    --map=../../../Out/abchex.map   /* create a hex map file */
    ROMS
    {
        FLASH: org=0x60000000, len=0x80000, romwidth=8, fill=0x0000, files={../../../Out/abc.bin}
    }

  • Can you attach all the files required for us to reproduce this at our end? Let us start with the .out file, hex command file and linker map file. If we need more files we will let you know. Please zip up these files and attach the zip file here.

  • Can you try the attached hex command file? The hex6x command line output shows that it converts all the initialized sections.

    3301.Link1.zip

     

  • actually in that file, for both sections bin file name is same, we made it different then build the project, two files are generated..we need the sections like BOOT_RAM1=0x400, BOOT_RAM2=0xC00, IRAM=0x3F000, DDR2_DATA=0x20000,DDR2_CODE=0x20000..this same as from linker MAP file..jus look at.....how to do that by hex cmd file with unused sections as holes in bin file.

  • You are correct, I had both ROMS directives set to the same binary file. I changed that to different files and have attached another command file. After converting using this command file, if you look at the corresponding hex map file, you can see all the converted sections as well as the fill of 0x0 between sections, which seems to match up with the link map file. I also verified that the output .bin files match up with the summary shown in the hex map file.

    If this is still not exactly what you were looking for, please use this example command file to experiment and modify as needed to suit your needs.

    7534.Link1.zip

     

     

  • AartiG,

    We tried to produce binary file with holes like total IRAM section is 0x40000 from that 0x381c7 bytes of memory is used unused bytes should be hole for total section to produce in binary file. but it is not producing like that 0x1f000 till there binary is generating..so can u tell to us how to produce that....

  • I'm still not up to speed on everything in this thread, but I am wondering about one thing ...

    There is no way to represent a memory hole in a binary file.  That's why you either use image mode, or you use different file names for different memory ranges.  I presume the memory ranges specified in the first post are still being used.  There is a large gap between the end of IRAM and the start of DDR2_DATA.  How do you intend to handle that gap?

    Thanks and regards,

    -George

  • George,

    This is the memory configuration after some chages finally we are using....

    name                  origin           length              used            unused      attr       fill

    ----------------------------------------------------------------------------------------------------

    BOOT_RAM1     11800000      00000400    00000400   00000000  RW X 0

    BOOT_RAM2     11800400      00000C00    00000C00  00000000  RW X 0

    IRAM                    11801000      0003F000    0003F000   00000000  RW X 0

    DDR2_CODE    C0000000     00020000    00020000   00000000  RW X 0

    DDR2_DATA      C0020000     00020000    00020000   00000000  RW X 0


    from this actual and expecting binary would be 512KB but where as hex utility generating 226KB, Our requirement is

    this binary will be write into first 512KB memory block in the nor flash..according to memory configuration for each section allocated like below mentioned offset of nor flash

    0-400 for BOOT_RAM1

    400-1000 for BOOT_RAM2

    1000-40000 for IRAM

    40000-60000 for DDR_CODE

    60000-80000 for DDR_DATA

    this is the memory map application required.

  • MSR said:
    from this actual and expecting binary would be 512KB

    Please describe how you arrive at that number.  I come up with something very different.  We obviously are not thinking about this the same way.

    MSR said:
    but where as hex utility generating 226KB

    Keep in mind the hex utility only converts intialized sections such as .text and .cinit.  Uninitialized sections like .bss and .data are not converted, even though they take up space in memory.  That explains at least part of the difference.

    Thanks and regards,

    -George