I am trying to run the demos with Link for Code Composer Studio such as RTDXTUTORIAL and RTDXLMSDEMO but they are returning error messages.
MATLAB: Do the demos which shipped with the Link for Code Composer Studio 1.3.1 (R14) fail with a TI DSK
ccsdemodskEmbedded IDE Link CCerrorfailrtdxlmsdemortdxtutorialti
Related Solutions
Some general guidelines to save code in Flash Memory can be found here:
In order to store generated code in the internal Flash memory of the C28xx DSPs, you need a Flash Programmer (the TI Flash programmer is installed by default with Code Composer Studio). The following process guides you through the necessary steps in detail:
1. Drag the F2812, F2808, or F28335 Stand alone using Flash Memory Target Preference block into the model. This block can be found in Target Support Package TC2 >> C2000 Target Preferences. If you do not have Target Support Package TC2 installed or you have a different board, use the Custom Board block from Embedded IDE Link CC >> Target Preferences, and manually configure its parameters.
2. Press "Ctrl + E" to open the Configuration Parameters window. Select Real-Time Workshop >> Embedded IDE Link CC, and set the Build action to "Build". Apply the change and close the window.
3. Make sure the board is connected to your PC and turned on. Press "Ctrl + B" to build the mode. When this process is completed successfully, MATLAB command prompt displays:
### Build complete
and Code Composer Studio Output window displays:
Build Complete,
0 Errors, 0 Warnings, 0 Remarks.
4. In Code Composer Studio, launch the Flash Programmer by selecting Tools >> F28xx On-Chip Flash Programmer. Select the radio button named "Erase, Program, Verify", and click on the "Execute Operation" button. Once this operation is completed, you should see the following message in the Code Composer Studio Output window:
Erase/Program/Verify Operation succeeded
**** End Erase/Program/Verify Operation. ***
5. In Code Composer Studio, Select Debug >> Disconnect. Then, unplug the power for the board, and physically disconnect the board from the PC.
6. Now that the code is saved in the C28xx DSP chip nonvolatile memory, you must set an indicator for the chip before you can run this code. This indicator is set by the Bootloader Modes of the particular chip. For example, on F2812 eZdsp, you need to change the jumper setting for JP7 from the factory default settings. On F2808 eZdsp, you need to change the switches 1 and 3 on bank SW1 from the factory default settings. On F28335 eZdsp, you need to change the switch 3 on bank SW1 from the factory default settings. For precise instructions, refer to the specific DSP Boot ROM Reference Guide found on the TI Web page:
and the Spectrum Digital ™ Reference Guides for the eZdsp chips:
Evaluation Modules and DSP Starter Kits > C2000 Family section:
7. To run the code in Flash Memory, turn on the board. The code starts to run as soon as the power is plugged in.
To make MATLAB Link for Code Composer Studio 1.2 (R13.0.1+) fully compatible with Code Composer Studio 2.2, you need to download a patch.
Following are the steps for downloading the patch:
1. Download Link1p2PatchForCCS2p2.exe from the bottom of the page and copy it into the $MATLABROOT\toolbox\ccslink directory
(where $MATLABROOT is the root MATLAB directory)
2. Double-click on the executable Link1p2PatchForCCS2p2.exe' and click on 'Unzip'.
3. A window displaying "6 file(s) unzipped succesfully" will appear. Click OK and close the WinZip window.
4. Restart MATLAB
--------------------------------------------------------------------------------
Following are some of the issues you may come across when using MATLAB Link for Code Composer Studio 1.2 (R13.0.1+) with Code Composer Studio 2.2 and the corresponding solutions for these issues.
--------------------------------------------------------------------------------
1. Time-out issue with demos on OMAP Simulator
Problem:
- Setup OMAP CCS 2.2 for OMAP3.1 Platform Simulator and run ccstutorial/ccsfirdemo/multiproctutorial
- At some point the demo seems to stop and a time out error is thrown in MATLAB.
Solution:
This is due to a bug in the OMAP3.1 Platform Simulator on CCS 2.2 - if you open and load any ARM or C55x program, it takes a long time to run to any point in the program.
--------------------------------------------------------------------------------
2. Demo issues on the C5416 DSK using XDS-510
Problem 1:
When running rtdxtutorial, the demo terminates and you get the error:
Enable: Enable failed on channel: ichan
Problem 2:
When running rtdxlmsdemo, at the point when the following text is displayed in MATLAB
Reading coefficient updates and filtered results from target - frame 1...
the process takes a long time and eventually errors out: ERROR: ReadMsg: Timeout waiting for CCS to confirm completion: waiting for 1 message 50 seconds might not be enough time for reading the data messages. Hit the 'view script' button and increase the value of the 'TimeOut' variable at the beginning of the script.
Solution:
- Open the CCS IDE
- At the left pane, click (+) on GEL Files and remove the existing GEL file(s) loaded.
- Left-click GEL Files again and choose Load GEL… Go to TIROOT\cc\gel and choose c5416_dsk.gel. (where TIROOT is the root folder for TI)
- Re-run the demo.
--------------------------------------------------------------------------------
3. ccsfirdemo times out on the C2812 DSK using XDS-510
Problem:
When running ccsfirdemo, it times out during the Run Target stage.
Solution:
Download the patch Link1p2PatchForCCS2p2.exe.
--------------------------------------------------------------------------------
4. RTDXTUTORIAL/RTDXLMSDEMO on OMAP Simulator
Problem:
Setup OMAP CCS 2.2 for OMAP3.1 Platform Simulator
Problem description:
- Run rtdxtutorial (or rtdxlmsdemo) and choose the C5500 processor when prompted to select a target.
- During 'load', a dialog box pops up in the CCS IDE:
RTDX target application does not match emulation protocol! Loaded program was created with an rtdx library which does not match the target device.
- If you hit OK and continue with the demo, eventually the demo errors out and exits. Error thrown in MATLAB is:
ERROR: "CCSDSP:The server threw an exception."
This error is related to demo issue no.1 (Time-out issue with demos in OMAP
simulator). You can still run RTDXLMSDEMO or RTDXTUTORIAL on a C55x
simulator by configuring a single C55x simulator in your CCS Set-up instead
of using the OMAP simulator and then running the demo.
--------------------------------------------------------------------------------
5. CCSTUTORIAL/CCSFIRDEMO on ARM 7 Big Endian Simulator
Problem:
During 'load', a dialog box pops up in the CCS IDE:
Data verification failed at address 0x20. Please verify target memory and memory map."
Solution:
- Before running ccstutorial or ccsfirdemo, open CCS IDE and do the following:
- Go to the Option menu
- Select Memory Map...
- Enable Memory Mapping
- Enter a Starting Address of 0x20
- Enter a Length of 0x7FFE0
- Enter Attributes of RAM
- Click the Add button
- Click Done to leave the dialog
Also, when running the ccstutorial, CCS IDE throws the message: "Can't Run Target CPU: Error number -2164 Error address 0" in the Messages window. This does not affect the demo.
--------------------------------------------------------------------------------
6. RTDXLMSDEMO on C6211 Big Endian Simulator
Problem:
During load, a dialog box pops up in the CCS IDE:
File C:\MATLAB6p5\toolbox\ccslink\ccsdemos\rtdxlms\c6x\rtdxdemo_sim6xe.out Does not match the target type, not loaded.
Solution:
- You have to rebuild the project rtddemo_sim6xe.pjt in $MATLAB\toolbox\ccslink\ccsdemos\rtdxlms\c6x:
- Open the project in the CCS IDE. Go to Project->Build Options. Under the Compiler tab, select C621x (-mv6210) under Target Version. Click OK.
- Build the project and re-run the demo.
Note: Since other processors use the same demo project, make sure you to return the Build Options to its original settings and rebuild the project.
Related Question
- Does the host stop receiving data when I use the RTDX program from CCS and a MATLAB script in Link for Code Composer Studio 1.3.1 (R14)
- Is Hardware-in-the-Loop (HIL) optimization supported when using the Link for Code Composer Studio 1.3.1 (R14) with the TI C6x or C54x DSK
- Do the demos not work on the C6701 EVM board with Link for Code Composer Studio 1.3.1 (R14)
- What boards does the Developers Kit for TI DSP Version 1.2 (R12.1) support
- Is there a list of Frequently Asked Questions regarding the MATLAB Link for Code Composer Studio
- Does the C6713DSK run at the wrong clock speed when DSP/BIOS is disabled for the Embedded Target-TI C6000 DSP
- Am I unable to open the sample Code Composer Studio project file provided with MATLAB Link for Code Composer Studio
Best Answer