This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello,
i want to use Simulink to generate code for my F28335 Device in Experimenters Kit.
I installed Control Suite and Code Composer Studio 5.2 (from delivered DVD)
Then i configured Matlab as described here:
http://www.mathworks.com/matlabcentral/answers/25472-ccs-5-1-integration-when-and-how
I tried a simple project in Simulink. I am using the Target Preferences Block with following settings:
-Texas Instruments Code Composer Studio v4(makefile generation only)
-C2000 Custom Board
-F28335 Processor
-CPU Clock 150MHz
I added some Blocks to get the onboard LEDs blinking.
When i build the Model i get following output:
### Generating code into build folder: C:\Users\Wohlfahrt\Documents\MATLAB\F28335testled_ticcs
### Invoking Target Language Compiler on F28335testled.rtw
### Using System Target File: C:\Program Files (x86)\MATLAB\R2012a\toolbox\idelink\foundation\pjtgenerator\rtw\idelink_ert.tlc
### Loading TLC function libraries
....
Warning: The data type "int8" uses a word size that is not available on the intended target.
Fixed-point signals using this data type will be put inside a larger word or multi words. When used,
extra software will be generated to force this larger word or multi words to emulate a smaller
word. This emulation is helpful when your prototype target and your final
production target are not the same. If the smaller word size does NOT exist
on the final production target, then consider increasing the word size to
one that is supported.
Warning: The data type "uint8" uses a word size that is not available on the intended target.
.
Warning: The data type "boolean" uses a word size that is not available on the intended target.
### Initial pass through model to cache user defined code
..
### Caching model source code
............................
### Writing header file F28335testled.h
### Writing header file F28335testled_types.h
.
### Writing header file rtwtypes.h
### Writing source file F28335testled.c
.
### Writing header file F28335testled_private.h
### Writing source file F28335testled_data.c
.
### Writing source file F28335testled_main.c
### TLC code generation complete.
.### Creating makefile: C:\Users\Wohlfahrt\Documents\MATLAB\F28335testled_ticcs\F28335testled.mk
### Makefile creation done.
### Building makefile...
### Build done.
### Downloading program: C:\Users\Wohlfahrt\Documents\MATLAB\F28335testled_ticcs\F28335testled.out
### Download done.
A Command Window appears:
A Folder is generated with many files in it. A subfolder "CustomMW" with the .out file is there.
How can i load the Code into CCS and Program the Device?
I tried several things but didnt get it working.
Everithyng i got is this:
**** Build of configuration Default for project test2 ****
make all
Cannot run program "make": Launching failed
Error: Program "make" is not found in PATH
PATH=[C:\ti\ccsv5\ccs_base\common\bin;C:\ti\ccsv5\ccs_base\common\uscif;C:\ti\ccsv5\ccs_base\DebugServer\license;C:/ti/ccsv5/eclipse/jre/bin/client;C:/ti/ccsv5/eclipse/jre/bin;C:/ti/ccsv5/eclipse/jre/lib/i386;C:\Program Files (x86)\Microchip\MPLAB C30\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\MATLAB\R2012a\runtime\win32;C:\Program Files (x86)\MATLAB\R2012a\bin;C:\Program Files\MATLAB\R2012a\runtime\win64;C:\Program Files\MATLAB\R2012a\bin;C:\Program Files\MATLAB\R2011b\runtime\win64;C:\Program Files\MATLAB\R2011b\bin;C:\Program Files (x86)\QuickTime Alternative\QTSystem;C:\ti\ccsv5\ccs_base\scripting\bin;C:\ti\ccsv5\utils\bin;;C:\ti\ccsv5\eclipse;]
**** Build Finished ****
In project properties - Debug it says:
The project test2 is not device specific.
I dont know where to look anymore. Please Help!
Sorry but I don't have enough knowledge about integrating Matlab with CCSv5 to provide a good answer. I think this question will be better answered by Matlab or you can post to the newsgroup from where you got this information.
CCS5 integration is not as "deep" as with CCS3.3: it's not capable of automatically calling CCS, loading and executing the program.
That command window shouldn't appear: I'm quite sure it's because in the Configuration Parameters / Code Generation / IDE Link / Build Action you have set "build and execute" (as you would for v3.3) and not just "build". After building, you need to connect to the target in a debug session in CCS5 and load the .out file.
I hope this still helps someone else, as I assume you already had time to figure ir out :-)
Regargs!
Martin
Well... I just realized, having the "build and execute" option isn't supposed to be incorrect either (anyway, I just put "build" and it works fine, i get the .out in CustomMW and I avoid the command line window poping up).
I strongly recommend this video by Antonin from mathworks to everyone: