Matlab Coder output into CCS (version 3.1)

I have a .m file of matlab for audio application. I used the matlab coder to convert the code into c code so that i can put it into TI DSP dsk6713. The conversion was successful , but i received a lot of .c and .h files. I need help in understanding as to how to implement this code into a ccs project where i have to add these functions . The audio input is done directly. The processing part's code was done in matlab, so i hv to implement these functions into the audio input (which is already obtained in ccs )

回答 (1 件)

Kaustubha Govind
Kaustubha Govind 2012 年 3 月 14 日

0 投票

There should have been a .mk file generated with all the code - it should show you the exact compilation commands needed. Simplistically speaking of course, you can simply add all the .c and .h files into your CCS project and simply call the top-level generated function from your main file.
FYI, if you have access to the Embedded Coder product, C6713 is amongst the supported hardware. This will make your work much easier because the product already ships with driver blocks for the board's peripherals. However, this applies only to Simulink models, and there is a learning curve if you're a MATLAB user.

5 件のコメント

Venkat
Venkat 2012 年 3 月 19 日
Thank you for your response, We tried using simulink to generate the files required for programming the DSK. The simulink calls the CCS , but while building it gives the error as "must define RT" , may I know what is the error about ? (previously i faced many "cannot find source file errors , i added the .h files to the location and those errors were rectified")
P.S. using matlab7.0 and ccs3.1 versions , so there is no compatibility issues i suppose
Kaustubha Govind
Kaustubha Govind 2012 年 3 月 19 日
I'm not sure what could be causing that category of errors. I think CCS 3.0 is the supported version with MATLAB 7.0 (R14) - not sure if the errors are because you're using CCS 3.1. Have you been able to try with a newer version of MATLAB? Also, please start a new question if you have issues specific to CCS support.
Venkat
Venkat 2012 年 3 月 20 日
Tried with matlab version R2007b , but it says ccs3.1 isn't compatible and only ccs3.3 is compatible. so matlab 7.0 was used when the above mentioned errors occured
Kaustubha Govind
Kaustubha Govind 2012 年 3 月 21 日
I believe the releases that support CCS 3.1 are R2006a, R2006b and R2007a. Will it be possible for you to try with one of these?
mohammad naseer M N
mohammad naseer M N 2015 年 5 月 4 日
mam, i am unable do matlab 2007a simulink with ccs3.1 for dsk6713 kit,it shows error as "could not connect to ccs,please ensure your ccs installation is set up properly" please replay to Naseer@edgate.in

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeCode Generation and Deployment についてさらに検索

製品

質問済み:

2012 年 3 月 13 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by