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/TMS320F28335: Matlab generated code for code composer studio

Part Number: TMS320F28335

Tool/software: Code Composer Studio

Hello all,

I am working on TMS320F28335 microcontroller. I have configured that microcontroller with matalb 2015b . I have made a required simulink model and deployed that model to microcontroller card to get desired output. It is working fine. After deploying the model and build process , matlab has generated a folder with file name_ert_rtw and this file contains some c source file and headers files and some other files. Now, i want to use these files in code composer studio 6 to get desired output without interfacing with matlab.

Can i do this ? Please help me in this. I will be very thank full to you. I have attached that folder, please find the attachment.code_ert_rtw.zip

  • GAURAV SHARMA said:
    Now, i want to use these files in code composer studio 6 to get desired output without interfacing with matlab.

    The makefile in the Matlab generated folder has references to source files in the Matlab texasinstrumentsc2000 support package. You could either:

    a) Import the Matlab generated folder into CCS as a "Existing Code as Makefile Project" and get CCS to compile using the Matlab generated makefile.

    b) Create a new CCS project using the Matlab generated project source files, and set the CCS project to compile the source files in the Matlab texasinstrumentsc2000 support package as linked resources.

    However, you won't be able to compile the project without the Matlab texasinstrumentsc2000 support package files which are only available if you have Simulink, Simulink Coder, MATLAB Coder and Embedded Coder licenses.

    Can you clarify what you mean by "get desired output without interfacing with matlab"?

  • Thanks for replaying.

    My mean was that i have interfaced matlab with microcontroller and made a simulink model for my work and deployed that model on microcontroller to get output on gpio pins. It was working fine. Matlab has generated a folder for that model which contains some files. I have attached that folder. Matlab has generated code files for my simulink model in that folder,now i want to run that files in CCS6 to get same output without interfacing my microcontroller again with matlab .

    Will you please see that folder and files and can i do this with the help of those files. Can you please tell me more about this ?
  • GAURAV SHARMA said:
    Matlab has generated a folder for that model which contains some files. I have attached that folder.

    The HERIC_INC_sine_pwm.mk Makefile in the attached .zip file builds a HERIC_INV_sine_pwm.out executable, but the HERIC_INV_sine_pwm.out file was not in the attached .zip file.

    If you have the HERIC_INV_sine_pwm.out executable file you can use the CCS Projectless Debug to program the executable and run it.

    Another option is the command line Loadti

  • Thanks. I got the .out file and it is working in CCS.