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.

Speech recognition with TMS320C6713

Other Parts Discussed in Thread: CCSTUDIO

Hello

I am working Speech recognition with C6713 ,I have generated CCS code ,form matlab simulink model ,but when I run this code in CCS 3.1 it gives following error's .could any 1 help me on this .

[test7_main.c] "C:\CCStudio_v3.1\C6000\cgtools\bin\cl6x" -g -q -fr"./Debug" -i"." -i"C:/CCStudio_v3.1/c6000/dsk6713/include" -d"_DEBUG" -d"CHIP_6713" -ml3 -mv6710 -@"C:/CCStudio_v3.1/MyProjects/rec_spc/Debug.lkf" "test7_main.c"
"C:\CCStudio_v3.1\c6000\dsk6713\include\dsp_rt.h", line 47: warning: incompatible redefinition of macro "FRAME_SIZE" (declared at line 28 of "test7_private.h")
"test7_main.c", line 85: error: identifier "startSEM" is undefined
"test7_main.c", line 90: error: identifier "rtClockSEM" is undefined
"test7_main.c", line 102: error: identifier "stopSEM" is undefined
"test7_main.c", line 150: error: identifier "rtClockSEM" is undefined
"test7_main.c", line 151: error: identifier "startSEM" is undefined
"test7_main.c", line 159: error: identifier "stopSEM" is undefined
"test7_main.c", line 165: error: identifier "tBaseRateTSK" is undefined
7 errors detected in the compilation of "test7_main.c".

>> Compilation failure

Compile Complete,
  7 Errors, 1 Warnings, 0 Remarks.

  • Ramlakhan,

    Welcome to the TI E2E forum. I hope you will find many good answers here and in the TI.com documents and in the TI Wiki Pages. Be sure to search those for helpful information and to browse for the questions others may have asked on similar topics.

    You need to start from a prepared and known-working example to get your build procedure working right. I am not familiar with the c6000/dsk6713/include folder structure (mine have csl inserted in there) and I do not have the dsp_rt.h header file. If these files came from MatLab, then their prepared examples are what you need to start from to get your build procedure working.

    I assume you can read and understand the error messages that you listed above. Since these are variables and macros that are used or written in your own files, all we can tell you is that you have refined or not defined them. What additional information would you like provided by the compiler?

    Regards,
    RandyP

  • Hello RandyP

    As  the code is  generated from the MATLAB simulink model ,the variables and macros should be comes with that code only, I have included the dsp_rt.h header file. I want to know 1 thing ,the code generated from MATLAB 2012a with the compatibility of CCS 4.1 .Is this possible to run that code in CCS 3.1.

  • Ramlakhan,

    You will need to check with MathWorks about the code they generate. MatLab is not a TI product, but a lot of people have used it with TI DSPs for many years.

    Any code can be run on any version of CCS, in the most general sense. Newer versions of BIOS or TI Compiler tools may not be compatible, though.

    It is usually best to either use the version of tools that a program is developed and tested with, or a newer version.

    Your problems do not appear to have any relationship to the TI tools, from my examination. You do not have the right build implementation. You need to start from something smaller and get it working, like a TI example and a MatLab example.

    You may be missing some files from the MatLab results, and you appear to have added a macro that MatLab would not have expected or an extra file that MatLab did not intend you to use. Please look to the MatLab documentation and the MathWorks team for the best support for using MatLab in your project.

    Regards,
    RandyP

  • Hi Ramlakhan,

    I am also trying for the speech recognition using simulink. I am new to the simulink area. It will be so kind of you if you guide me for so. waiting for you affirmative reply.

    regards,

    Swapnil

  • hello RandyP

    I worked according to your suggestion ,and  now I have included all the missing header files generated from matlab in to CCS  project file .

      Now i got a new Error related to the REAL time ,i.e

    in a C6000_main.h file gives  "Error must be RT"

    and  in C file of CSL "rtClockSEM "  ,

    I want to know How it could be solve or these are the problem related to my code generation in real time????????????????????????????????

  • hello Swapnil Daphal

    i will surely help to work on speech recognition related with SIMULINK .

    just post your problem ,i will reply you as I can.

  • Ramlakhan,

    ramlakhan singh sengar said:

    in a C6000_main.h file gives  "Error must be RT"

    and  in C file of CSL "rtClockSEM "  ,

    I have no file by the name C6000_main.h, so this may be generated by MatLab, also.

    The error message looks like a special-check type of error, so you will need to look in the C6000_main.h file to find the condition that leads to this error message. I have seen special-check messages (my amateur name for it) in TI CSL for conditions such as not having a valid -dCHIP_<device name> in the build, so yours may be similar.

    Generally, TI CSL files begin with the prefix "csl_", so I am not sure that "rtClockSEM" is a CSL file from TI. Please look to the comments at the top of the files to determine where they were generated.

    Have you been able to get a simpler MatLab example to build correctly?

    Can you check the MatLab documentation for this error message or search for the string "RT" (whole word)?

    Regards,
    RandyP

  • Hello RandyP


    yes C6000_main.h is a matlab generated file ,i had  already changed build options in the CCS file but still i got this error's .

    the other error is of #include "MW_c6xxx_csl.h" is a real time error "rtClockSEM"

    and i  tried other example to bulid and they can be easily builded by CCS and run as well on TMS320C6713.

    Could you help to resolve these error's by any other approach.

    Regards

    RAMLAKHAN SINGH SENGAR

  • Ramlakhan Singh Sengar,

    My earlier suggestions are the only way I can help.

    Contacting MathWorks for support for their product output is the best way, unless someone steps up on the forum with experience with what you are doing. I will stay silent after this post so someone else may join the discussion.

    MathWorks may have contacts with consultants who can help you directly, through a contract arrangement.

    Regards,
    RandyP

  • Thanks for replying Ramlakhan,

    I have just started with MATLAB simulink..

    How to take the big database in DSP,  which is stored in PC ? How to access these speech files into the simulink model??

    Do you have any sample model for simulink in the speech recognition, So that I can have idea regarding the same?

    with regards,

    Swapnil