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 Center および File ExchangeEmbedded Coder Supported Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by