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

조회 수: 4 (최근 30일)
Altug Yanar
Altug Yanar 2017년 6월 23일
답변: Mandar Patwardhan 2017년 6월 27일
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

답변 (1개)

Mandar Patwardhan
Mandar Patwardhan 2017년 6월 27일
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.

카테고리

Help CenterFile Exchange에서 Embedded Coder Supported Hardware에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by