How to include a C2000 processor in the s-function Builder
4 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(1 个)
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.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!