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.

Not able to build a code

Other Parts Discussed in Thread: TMS320C6416T, CCSTUDIO, TMS320C6416

Device NAme: TMS320C6416T DSK

Not able to build the program for MATLAB-DSK interface using RTDX between PC & DSK.

shows the following error.

>> C:/CCStudio_v3.1/examples/dsk6416/rtdx/rtdx_matlab_sim/rtdx.h, line 16:   error: 
               illegal input character: hex 23
>> rtdx.h:   error: system error, can't open file 'ifndef.obj' for input: No
                    such file or directory
>> Compilation failure
Build Complete,
  3 Errors, 0 Warnings, 0 Remarks.
please help??

  • How did you get this code ?
    Is this from TI or 3rd party release or your own code ?
    Can you please attach your project ?

    Please refer to the following TI wiki.

    processors.wiki.ti.com/.../MatLab_and_CCS
  • sir the code is from a book "Chassaing,_Reay_-_Digital_Signal_Processing_and_Applications_with_the_TMS320C6713_and_TMS320C6416_DSK" page no 391


    #include <rtdx.h> //RTDX support file
    #include "target.h" //for init interrupt
    short buffer[10] = {0}; //init data from PC
    RTDX_CreateInputChannel(ichan); //data transfer PC-->DSK
    RTDX_CreateOutputChannel(ochan); //data transfer DSK-->PC
    void main(void)
    {
    int i;
    TARGET_INITIALIZE(); //init for interrupt
    while(!RTDX_isInputEnabled(&ichan)) //for MATLAB to enable RTDX
    puts("\n\n Waiting to read "); //while waiting
    RTDX_read(&ichan,buffer,sizeof(buffer));//read data by DSK
    puts("\n\n Read Completed");
    for (i = 0; I < 10; i++)
    buffer[i]++; //increment by 1 data from PC
    while(!RTDX_isOutputEnabled(&ochan)) //for MATLAB to enable RTDX
    puts("\n\n Waiting to write "); //while waiting
    RTDX_write(&ochan,buffer,sizeof(buffer));//send data from DSK to PC
    puts("\n\n Write Completed");
    while(1) {} // infinite loop
    }
  • Do you have "rtdx.lib", "device.h" , "intvecs.asm" and c6416dsk.cmd" ?
    You have to include the following file from BIOS directory.
    C:\ti\bios_5_42_01_09\packages\ti\rtdx\include\c6000\rtdx.h
  • Hi siddarth,

    As you mentioned that you are following up the book, "Chassaing", they would probably also mentioned how to compile etc.
    This forum is good to get answers for C64x processor related queries. Your query seems to be a programming language query.
    Please post your query in TI C/C++ compiler forum.

    First check what is the pre-requiste pacakges needed to compile the code which is given in the Rulph book ...etc.

    Using the "TMS320C6416T DSK", try some simple hello world program using CCS and then you can move onto your own or either from the book.

    The information you provided here is very vague and with just the compilation error shown here, it is tough to guide you.

    However, just with the errors you got, can give some hints.

    1. Go to the file, "rtdx.h" and check the line number 16 and try to find out the cause of the error, "illegal input character"
    2. Check whether the file "rtdx.h" exists in your PC and included to your project etc.