interface ccstudio v4.0 using matlab 11

I have been working with ccstudio 3.0 for generating codes for pwm,Now i want to use the codes in ccsudio v4.0 , So how to interface matlab 2011 with ccstudio v4.0?

 채택된 답변

Kaustubha Govind
Kaustubha Govind 2012년 5월 7일

0 개 추천

댓글 수: 7

Siva Aduri
Siva Aduri 2012년 5월 29일
Thank you for answering my question.
Can you explain me what to do , i have made the x make file setup as said , but still the problem is arising it is not able to build it is telling unable to build .
Siva: Please post the exact error message that you receive.
Siva Aduri
Siva Aduri 2012년 6월 2일
Kaustubha Govind : There are 3 errors
First:The call to idelink_ert_make_rtw_hook, during the exit hook generated the following error:
Error while building the project.
The build process will terminate as a result.
second:The build failed with the following message: "C:/Program Files (x86)/Texas Instruments/ccsv4/tools/compiler/c2000/bin/cl2000" -I"C:\Program Files\MATLAB\R2012a\toolbox\idelink\extensions\ticcs\inc" -I"C:\Users\siva\Desktop\untitled_ticcs" -I"C:\Users\siva\Desktop" -I"C:\Program Files\MATLAB\R2012a\extern\include" -I"C:\Program Files\MATLAB\R2012a\simulink\include" -I"C:\Program Files\MATLAB\R2012a\rtw\c\src" -I"C:\Program Files\MATLAB\R2012a\rtw\c\src\ext_mode\common" -I"C:\Program Files\MATLAB\R2012a\rtw\c\ert" -D"__TICCSC__" -D"RT" -D"USE_RTMODEL" -ml -v28 -D"MODEL=untitled" -D"NUMST=1" -D"NCSTATES=0" -D"HAVESTDIO=" -D"ONESTEPFCN=1" -D"TERMFCN=1" -D"MAT_FILE=0" -D"MULTI_INSTANCE_CODE=0" -D"INTEGER_CODE=0" -D"MT=0" -D"TID01EQ=0" -I"include" -fr"./derived/" ./DSP280x_CodeStartBranch.asm ./DSP280x_CpuTimers.c ./DSP280x_DefaultIsr.c ./DSP280x_GlobalVariableDefs.c ./DSP280x_MemCopy.c ./DSP280x_PieCtrl.c ./DSP280x_PieVect.c ./DSP280x_SysCtrl.c ./DSP280x_usDelay.asm ./MW_c28xx_board.c ./MW_c28xx_csl.c ./MW_c28xx_pwm.c ./untitled.c ./untitled_main.c
[DSP280x_CodeStartBranch.asm]
[DSP280x_CpuTimers.c]
[DSP280x_DefaultIsr.c]
[DSP280x_GlobalVariableDefs.c]
[DSP280x_MemCopy.c]
[DSP280x_PieCtrl.c]
[DSP280x_PieVect.c]
[DSP280x_SysCtrl.c]
[DSP280x_usDelay.asm]
[MW_c28xx_board.c]
".\rtwtypes.h", line 29: fatal error: could not open source file "limits.h"
1 fatal error detected in the compilation of "./MW_c28xx_board.c".
Compilation terminated.
>> Compilation failure
gmake: *** [derived/DSP280x_CodeStartBranch.obj] Error 1
Kindly Help me resolve this.
Siva Aduri
Siva Aduri 2012년 6월 4일
And one more thing in the Matlab command window :
## Initial pass through model to cache user defined code
..
### Caching model source code
...............
### Writing header file untitled.h
.
### Writing header file untitled_types.h
### Writing header file rtwtypes.h
.
### Writing source file untitled.c
### Writing header file untitled_private.h
.
### Writing source file untitled_main.c
### TLC code generation complete.
.### Creating makefile: C:\Users\siva\Desktop\untitled_ticcs\untitled.mk
### Makefile creation done.
### Building makefile..."
i think there is some problem in building makefile .
Thanks in Advance .
Strange - I think limits.h is a standard header that comes with all C compilers (and also with CCS according to page 225 on http://www.ti.com/lit/ug/spru281f/spru281f.pdf), so I don't know why it can't find limits.h. Try doing a search for the file under C:/Program Files (x86)/Texas Instruments and see if it is present?
Siva Aduri
Siva Aduri 2012년 6월 6일
kaustubha Govind : Thank You for replying ,
I have searched and the file is present in C:\Program Files (x86)\Texas Instruments\ccsv4\tools\compiler\c2000\include.
Strange - I *think* the compiler (cl2000) is supposed to also look inside that include directory by default for header files. Perhaps you should try manually adding a -I"C:\Program Files (x86)\Texas Instruments\ccsv4\tools\compiler\c2000\include" compile option. Not sure how that is done with the CCS4.0 workflow, but you can try adding the directory under "Include directories" on the Custom Code pane of the Configuration Parameters window: http://www.mathworks.com/help/toolbox/rtw/ref/bq259jb-1.html

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Gurudev
Gurudev 2012년 12월 10일

0 개 추천

I also had a hard time getting Matlab and Simulink to work with CCS. There is a good video that helped me start:
The same video exists for CCSv3.3 which is older but has the automatic download and run integrated in Matlab: http://youtu.be/kiVOA5Js7Ag
I hope it help.

카테고리

도움말 센터File Exchange에서 Generated Code Compilation에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by