Other Parts Discussed in Thread: CONTROLSUITE,
Dear friends,
I am in a project that uses the C2000 LaunchPads with the MATLAB Simulink Embedded Coder. I have two boards of this family: the F28027 and the F28379D.
I use this tool very easily with the F28027: all the blocks can be connected, the real-time works perfectly and also runs in a standalone mode. But when I try to program the F28379D, I fail to upload the program. And don't know why... so, I would like to know if someone knows the issue.
I created two Simulink (.slx) projects: one named "Test_CPU1" and the other "Test_CPU2". Their configurations (Model Configuration Parameters > Hardware Implementation) are the same, except for the "Build options > Select CPU, that are "CPU1" for the first and "CPU2" for the second. The "Test_CPU1" blinks the on board red LED (at D9) and the "Test_CPU2" blinks the blue LED (D10), using a "Pulse Generator" block (that also works in the F28027). The blocks and their configuration are the same that I've made in the F28027 project, but changing the Digital Output block to one that fits the F2837xD family.
Then, I click on "Deploy to hardware" in the "Test_CPU1" file. Wait some time and it seems that Simulink works fine. No error messages, the same "View Diagnostics" window as the F28027. But, the red LED doesn't blink, it just stays on. Then, I do the same thing in the "Test_CPU2" file. No errors, and Simulink doesn't complain. But the blue LED doesn't blink, and also stays on.
I've already checked the LED pins in the board and in the Simulink blocks. The board doesn't seems to have any issue: its "out-of-the-box demo" worked perfectly (including the TI's surprise) and can also be debugged with CCS v6 and v7, using the dual core projects that are in the controSUITE examples.
Can someone help me? What, besides the "CPU select", must be done in the Simulink to dual core MCUs?
Thanks in advance,
Gabriel
Software info:
MATLAB R2017a with TI's Embedded Coder for C2000 Processors
CCS v6.2 (although it isn't being used, but it is in the configurations)
controlSUITE v3.4.6
Windows 10
Board info:
LaunchPad LAUNCHXL-F28379D v1.1