How can I ensure a successful build of the PIL simulation project using Embedded IDE Link 4.2 (R2010b) and Code Composer Studio v3.3 for 'F28335 eZdsp' target ?

1 view (last 30 days)
I would like to create a PIL simulation block using Embedded IDE link and Code Composer Studio v3.3 to which I connect a F28335 eZdsp target. It fails to build succesfully from the steps that I follow.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 2 Feb 2011
Here is a quick summary of the steps that need to be followed to accomplish a successful build of the PIL simulation project using Embedded IDE Link 4.2 (R2010b) and Code Composer Studio v3.3 for 'F28335 eZdsp' target.
1. In your top level model and model references used below, use the following settings in the Configuration parameters:
a. Make sure you include the Target Preferences block on the model window. Select the appropriate target in the targets options.
b. Select the 'Hardware Implementation' option. Check that the 'Generic' options in the drop down is selected and you set in the Largest Atomic Size field, 'int' for integer option. After this setting revert back to the 'Texas Instruments' option in the drop down.
c. In the SIL & PIL Verification option, select:
Create block: PIL
d. Select the Embedded IDE link in the Real Time Workshop. In this window, select:
Build format: Project
Build action: Build and execute
2. Open your Code Composer Studio v3.3 and set the select the target from the 'Available Boards Option'. This will set up the target board on which the Code Composer Studio will build the project after establishing the link with MATLAB. Close the Code Composer Studio, while quitting select the 'Open Code Composer Studio on start up' to 'No'.
3. Go to the top level model and select the Ctrl+B option to build this project. This should complete the full build of the project and create the 'modelname_pbs.mexw32' file and an untitled model window with the PIL block for the example in the current working directory.
NOTE: In the workspace a CC_Obj is created upon creation of MATLAB link to Code Composer Studio. Everytime that you make changes to configuration settings on Code Composer Studio, you should clear the CC_Obj in MATLAb using the CLEAR command from command line.
4. After this step to run the code on the target, hit the play button on the top level model i.e the harness model from your example. On my environment the PIL executes perfectly on the F28335 Simulator that I have installed on my computer. Please check with your colleague for the relevant information on how to run this on a physical target once you have the projects available in your Code Composer Studio v3.3.

More Answers (0)

Tags

No tags entered yet.

Products


Release

R2010b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!