MATLAB: Can I use the TI C6211 simulator with the Embedded Target for TI C6000 DSP 1.0 (R13.0.1)

c6211ccscodecomposerembeddedstudiotargetTarget Support Package TC2ti

I would like to use the TI C6211 simulator with the Embedded Target for TI C6000 DSP. I have set the board and processor selection to MANUAL, and the Board Name to C6211_Device_Simulator
I receive the following errors from the build process:
File C:\MATLAB\work\lms_gaurav_c6000_rtw\test.out
Does not match the target type, not loaded. RTDX target
application does not match emulation protocol. Loaded
program was created with an RTDX library which does not
match the target device.
Error executing build command: Error using ==> make_rtw
Error using ==>
c:/matlab/toolbox/ccslink/ccslink/private/loadproject_titarget
There was a problem loading the COFF file.
Make sure that the build was successful and that the
selected board is of the correct type

Best Answer

The Embedded Target for TI C6000 DSP 1.0 (R13.0.1) does not fully support the TI C6211.
The problem occurs because the C6x compiler options are set to compile specifically for the C6711 chip with the RTW Option "Code generation target type set to "C6711DSK". The resulting binary file cannot be loaded to a C6211, because the code contains floating point instructions.
As a workaround, try the following:
After the Embedded Target generates the CCS project, go to the Code Composer Studio project options and set the compiler option "Target Version" to "C621x (-mv6210)". Recompiling the project will produce the right code for C6211, i.e., floating-point math will be implemented by integer assembly code.
To run on the simulator, the RTDX library should be changed. If you are using DSP/BIOS, go to the CDB file, choose "Input/Output", choose "RTDX", right-click, "Properties", and set RTDX Mode to "Simulator". If you are not using DSP/BIOS, substitute rtdxsim.lib for rtdx.lib in the project files or linking options.