RTDX link to F28335
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
Akash Mullangi
2012-12-3
Hi Josip ,
Where can I find the host and target model for f28335?
or did you build it on your own ?
Antonin
2012-12-6
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.
回答(2 个)
Hossein
2012-4-8
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 个评论
Saran Sangkharat
2019-1-18
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 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!