RTDX link to F28335
5 views (last 30 days)
Show older comments
Hello,
I'm using MATLAB R2008a with TC2 and ‘IDE link for CCS’ to communicate with Spectrum Digital's F28335 eZdsp evaluation board. Also I'm using CCS v3.3 and RTDX library (rtdxfp.lib) that comes with newest version of the DSP/BIOS (5.41.10.36). I have tested Simulink<-->F28335 communication in two steps:
1. Simulink-->F28335
- F28335_h2t_target.mdl the model from which target application is automatically created consists of : Target Preferences, From RTDX and To Memory blocks
- F28335_h2t_host.mdl host model that sends data to F28335 during execution consists of: Constant and RTDX Write blocks
- when I run the host model simulation it loads target application onto DSC, runs it and specified memory location is loaded with the constant
2. F28335-->Simulink
- F28335_t2h_target.mdl the model from which target application is automatically created consists of: Target Preferences, Constant and To RTDX blocks
- F28335_t2h_host.mdl host model that receives data from F28335 during execution consists of RTDX Read and Display blocks
- when I start the host model simulation, Simulink generates error message:
Error evaluating registered method 'Outputs' of M-S-Function 'sfcn_TargetToHost' in 'F28335_t2h_host/RTDX Read'. ReadMessage: Timed out waiting for CCS to confirm completion. The following is the MATLAB call stack (file names and line numbers) that produced this error: ['C:\MATLAB\toolbox\ccslink\ccslinkblks\rtdxsimblks\sfcn_TargetToHost.m'] [227].
- by setting brakepoints in CCS I validated that application on the microcontroller executes, that is F28335_t2h_target_step() function calls RTDX_write() function, but it seems as if it doesn't perform RTDX write?!
I tried using both sets of models (with different Target Preferences block in target models) to communicate with F2812 eZdsp board, and it worked fine. For this I used rtdxx.lib from DSP/BIOS ver. 5.31.09, because it didn't work with newer versions of the library. This older DSP/BIOS doesn't include rtdxfp.lib library needed for F28335 project.
What am I doing wrong? Has anyone managed to make this kind of combination work?
2 Comments
Akash Mullangi
on 3 Dec 2012
Hi Josip ,
Where can I find the host and target model for f28335?
or did you build it on your own ?
Antonin
on 6 Dec 2012
Target side RTDX blocks can be found in the simulink library browser.
Host side RTDX blocks can be found in a demo library by manually typing:
rtdxsimlib
at the MATLAB command prompt.
One common mistake leading to the error message pasted above is to have wrong output dimensions in the host side RTDX read block. Make sure the "Output Dimensions" field of the Host RTDX read block is matching what your target is sending. If your target is just sending a scalar, the Output Dimensions should be [1 1]. Also make sure the data type is matching what your target is sending. I hope it helps,
Cheers,
Antonin.
Answers (2)
Hossein
on 8 Apr 2012
For using F28335 you have to use matlab version 2009b .or using this instruction for lower version:(bug reports : 521642) which i put the link below.
wish you luck
0 Comments
Saran Sangkharat
on 18 Jan 2019
Hello, Everybody
I'm using a MATLAB/Simulink 2018a with CCSv8.1 to communicate with F28335 for simulation hardware close loop.Please tell me what is the block's name can I use.Because I can't use RTDX's block it doesn't appear for using.
Sorry for my issue if you don't understand.Because I just to learn about this project.
0 Comments
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!