How to include a C2000 processor in the s-function Builder

4 Ansichten (letzte 30 Tage)
Altug Yanar
Altug Yanar am 23 Jun. 2017
I want to convert a C-Code from Code Composer Studio to the s-function Builder. I use a C2000 processor which needs device specific include files like DSP28x_Project.h. So i paste the file directories to the Libraries of the s-function builder but the compiler prints always the error:
C:\Users\Altug Yanar\Documents\MATLAB\Resolver\controller.c:8:82: fatal error: DSP28x_Project.h: No such file or directory #include DSP28x_Project.h // Device Headerfile and Examples Include File ^ compilation terminated.
Did anyone had same issues like that ?
My Libraries look like:
#ifndef MATLAB_MEX_FILE
INC_PATH C:/ti/ccsv6/tools/compiler/ti-cgt-c6000_6.4.6/include
INC_PATH C:/ti/conrolSUITE/device_support/f2833x/v142/DSP2833x_common/include
INC_PATH C:/ti/conrolSUITE/device_support/f2833x/v142/DSP2833x_headers/include
#include "controller.h"
#endif

Antworten (1)

Mandar Patwardhan
Mandar Patwardhan am 27 Jun. 2017
The following link on the Texas Instruments suggests that the header files are located in the ti/controlSUITE directory. I can see that INC_PATH command has a typo. The folder name is given as conrolSUITE instead of controlSUITE. Check the path again and update the INC_PATH accordingly.

Community Treasure Hunt

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

Start Hunting!

Translated by