I am attempting to use the old DSK6713 spectrum digital DSP boards with new 64-bit Windows 7 OS. Previously we used CCSv3 and could simply make matlab simulink models and generate code for CCSv3 with matlabs Real Time Workshop. I realize the newer CCSv4 does not work like this and you must utilize makefiles in matalb, target configuration files in CCSv4, and a command prompt to actually send the code to the DSP board.
I have been attempting this by going through the following mathworks tutorial: http://www.mathworks.com/help/toolbox/ecoder/ug/bs6imgj-208.html#index_c
I tried everything in here, but I still can not manage to pass a simple simulink model into CCSv4 or the DSK6713.
When I try to build my model to generate the .out file to pass to CCSv4 matlab outputs the following:
### Generating code into build folder: C:\Users\bschilli\Desktop\delay\delay_ticcs
### Invoking Target Language Compiler on delay.rtw
### Using System Target File: C:\Program Files\MATLAB\R2011b\toolbox\idelink\foundation\pjtgenerator\rtw\idelink_ert.tlc
### Loading TLC function libraries
.....
### Initial pass through model to cache user defined code
..
### Caching model source code
......................
### Writing header file delay.h
.
### Writing header file delay_types.h
### Writing header file MW_c6xxx_csl.h
.
### Writing source file MW_c6xxx_csl.c
### Writing header file MW_c6xxx_bsl.h
.
### Writing source file MW_c6xxx_bsl.c
### Writing header file rtwtypes.h
.
### Writing source file delay.c
### Writing header file delay_private.h
.
### Writing source file delay_data.c
### Writing source file delay_main.c
### TLC code generation complete.
.### Creating project marker file: rtw_proj.tmw
### Creating makefile: C:\Users\bschilli\Desktop\delay\delay_ticcs\delay.mk
### Makefile creation done.
### Building makefile...
And then it always breaks down with a few error messages popping up. As such I am assuming I am doing something wrong with my makefiles, but I can not figure out what. The error message that comes up looks like this:
The build failed with the following message: "C:/Program Files/Texas Instruments/ccsv4/tools/compiler/C6000/bin/cl6x" -I"C:\Program Files\MATLAB\R2011b\toolbox\idelink\extensions\ticcs\inc" -I"C:\Users\bschilli\Desktop\delay\delay_ticcs" -I"C:\Users\bschilli\Desktop\delay" -I"C:\Program Files\MATLAB\R2011b\extern\include" -I"C:\Program Files\MATLAB\R2011b\simulink\include" -I"C:\Program Files\MATLAB\R2011b\rtw\c\src" -I"C:\Program Files\MATLAB\R2011b\toolbox\dsp\include" -D"CHIP_6713" -D"__TICCSC__" -D"RT" -D"USE_RTMODEL" -mv6710 -D"MODEL=delay" -D"NUMST=1" -D"NCSTATES=0" -D"HAVESTDIO=" -D"INTEGER_CODE=0" -D"MT=0" -I"C:\Program Files\Texas Instruments\ccsv4\tools\compiler\C6000\include" -I"C:\Program Files\Texas Instruments\ccsv4\tools\compiler\c6000\include" -fr"./derived/" ./rt_sim.c ./MW_c6xxx_bsl.c ./MW_c6xxx_csl.c ./delay.c ./delay_data.c ./delay_main.c ./rtGetInf.c ./rtGetNaN.c ./rt_nonfinite.c [rt_sim.c] "./rt_sim.c",
line 68: warning: variable "td_struct" was declared but never referenced
[MW_c6xxx_bsl.c] ".\MW_c6xxx_csl.h", line 3: fatal error: could not open source file "csl_edma.h"
1 fatal error detected in the compilation of "./MW_c6xxx_bsl.c".
Compilation terminated.
gmake: *** [derived/rt_sim.obj] Error 1
Please send any input you might have on what the errors means or what dumb thing I may be doing wrong. I can provide more details about my process but I essentially followed the mathworks tutorial as best I could. Thanks for any help.