Simulink Model for the two CPUs of F28379 LaunchPad is validated but does not compile

5 views (last 30 days)
I am trying to get familiar with setting tasks on the two seprate CPUs of F28379 LaunchPad. To the best of my knowledge I have configured the two separate task managers required for each CPU and made each of them control one of the LEDs on board using 1-bit timers with 1s time triggering. Everything went well untill I decided to interconnect the two CPUs by sending data from CPU1 to CPU2.
When I add the IPC between the two CPUs, so that the 1st CPU "asks" from the 2nd CPU to switch off its LED when the other LED is ON , the model validates well, but I get the following error message during compilation and cannot proceed to load&run:
"...\DualCoreStart\minimal_sw_c28xCPU1_ert_rtw\minimal_sw_c28xCPU1.h", line 52: error: expected an identifier
I opened the .h file and at that line it reads:
typedef struct {
real32_T CPU1; /* '<Root>/CPU1' */
} B_minimal_sw_c28xCPU1_T;
How can this error message be caused by my top-model, or the referenced models for each CPU? I used the interprocess data write in the 1st CPU (inside its referenced model), the interprocess data read in the 2nd CPU (inside its referenced model) and the interprocess data channel in between the two models.
How can this error message be caused by my top-model, or the referenced models for each CPU? I have attached the very simple top model and the two referenced models for the two CPUs.

Answers (0)

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!