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 )

Respuestas (1)

Kaustubha Govind
Kaustubha Govind el 14 de Mzo. de 2012

0 votos

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 comentarios

Venkat
Venkat el 19 de Mzo. de 2012
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 el 19 de Mzo. de 2012
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 el 20 de Mzo. de 2012
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 el 21 de Mzo. de 2012
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 el 4 de Mayo de 2015
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

Iniciar sesión para comentar.

Categorías

Más información sobre Code Generation and Deployment en Centro de ayuda y File Exchange.

Productos

Preguntada:

el 13 de Mzo. de 2012

Comentada:

el 4 de Mayo de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by