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/CCSTUDIO3: TMS320DM8168

Part Number: CCSTUDIO3
Other Parts Discussed in Thread: TMS320DM8168, CCSTUDIO

Tool/software: Code Composer Studio

developing at TMS320DM8168.
CCS version is 5.1.0.09.

A8 program was coded C.
DSP progrma was coded C, used 2 library file.
(1 library file coded c. another library file coded c++)
dsp program excute normally in debugger mode, but image using ti tool(hex6x) not operation.

want to use 2 library file, and make image.
why DSP program was not operation??

  • Hi Chul,

    Welcome in the e2e forum.

    From what I understand you need to create CCStudio project for DSP user space application. And you have problems to create DSP executable from within CCStudio (.xe674 file). Is that correct?

    Can you provide me the exact steps you are doing to create DSP program, I want to try this on my side?

    Regards,
    Pavel

  • Hi
    I can not find *.xe674 file in project folder.
    I click build project at dsp application program project, created .out file.

    A8 App. Project - C - coded
    DSP App. project - C coded / 2 Library(A, B)
    A. DSP Library - C coded
    B . DSP Library - C++ coded

    Step(Debug mode)
    1. change in CCS debug mode
    2. A8 connetct
    3. A8 program load(.out file) & run
    4. DSP connect
    5. DSP program load(.out file) & run
    6. operation successful

    Step(excute mode)
    1. make image using hex6x(convert .out --> .bin)
    (make image using hex470 in A8)
    2. download flash memory
    3. reset (Configuration flash boot mode)
    4. not operation(A8 - success / DSP - unsuccess)

    but dsp application include only 1 library file(Lib A - C coded). then operation successful both mode(debug & excute)
  • Chul,

    Make sure you initialize DSP/C674x from GEL file before loading DSP application. You should also provide -mv6740 option in compiler command line for creating proper DSP/C674x application. See the below pointers for more info:

    You can also try with pre-built DSP application (DSPClockSpeed.out) to check if that will work on your side:

    chul hee Park said:
    Step(Debug mode)
    1. change in CCS debug mode
    2. A8 connetct
    3. A8 program load(.out file) & run
    4. DSP connect
    5. DSP program load(.out file) & run
    6. operation successful

    Can you provide me CCS screen shot for the successful DSP out file loading and running?

    chul hee Park said:
    Step(excute mode)
    1. make image using hex6x(convert .out --> .bin)
    (make image using hex470 in A8)
    2. download flash memory
    3. reset (Configuration flash boot mode)
    4. not operation(A8 - success / DSP - unsuccess)

    Can you provide me CCS screen shot for the unsuccessful DSP bin file loading and running?

    chul hee Park said:
    but dsp application include only 1 library file(Lib A - C coded). then operation successful both mode(debug & excute)

    Can you provide me CCS screen shot for the successful DSP bin file (with Lib A only) loading and running?

    Regards,
    Pavel

  • I have been developing C in the past.
    I have never created a library file.
    Both debugging and bin files are working properly.
    The gel file is only used on the A8, not on the DSP.

    This time, i have to apply the library file written in C ++ in the new project.
    The C ++ library file is implemented using class inside.

    If i comment the part of the library file that is implemented in the class and create the bin file, it will run normally
    (new features are not available). It is also possible to declare variables inside a class.
    However, if a function is declared inside a class, it will not be possible to create it as a bin file.

    my build option

    C library build options.
    -mv6740 -g --keep_unneeded_statics --gcc --display_error_number --diag_warning = 225 --abi = eabi --std_lib_func_defined --std_lib_func_not_defined --std_lib_func_redefined

    C ++ library build option.
    -mv6740 -g --keep_unneeded_statics --exceptions --rtti --gcc --display_error_number --diag_warning = 225 --mem_model: const = far --abi = eabi --std_lib_func_defined --std_lib_func_not_defined --std_lib_func_redefined

    Build options for projects that use two libraries.
    -mv6740 -g --keep_unneeded_statics --rtti --gcc --display_error_number --diag_warning = 225 --mem_model: const = far --abi = eabi --std_lib_func_defined --std_lib_func_not_defined --std_lib_func_redefined
    (include path option is omitted.)

    My question is why DSP programs written in C that use libraries written in C ++ will not work if i change them to bin files.
  • Chul,

    chul hee Park said:
    This time, i have to apply the library file written in C ++ in the new project.
    The C ++ library file is implemented using class inside.

    chul hee Park said:
    If i comment the part of the library file that is implemented in the class and create the bin file, it will run normally
    (new features are not available). It is also possible to declare variables inside a class.
    However, if a function is declared inside a class, it will not be possible to create it as a bin file.

    chul hee Park said:
    My question is why DSP programs written in C that use libraries written in C ++ will not work if i change them to bin files.

    This issue is not DM816x device specific, thus I would suggest you to ask/post in TI C/C++ compiler forum (link below) and/or CCStudio forum (link below).

    Regards,
    Pavel