Problem like suspended program occur when i use matlab2022b to use the Embedded Coder on My LaunchPad28379D

1 view (last 30 days)
Hi,there,I used Embedded Coder on my LaunchPad28379d for matlab2021a, and it worked very well without problems. But when I updated my Matlab to 2022b, I did the code generation and program running of the basic blink LED example, following exactly the same operation as before in the 2021a version. The code was successfully downloaded and the LED light was on, but it did not blink as required, but kept on, which was obviously wrong. I checked all the configurations, and they're exactly the same. Then I put the generated project into CCS, and it can run the lights normally, indicating that the generated code is correct. So how to solve the problem of program stuck in simulink.I also tried other examples and had the same problem with no output, but it worked fine in 2021a.
  2 Comments
志伟
志伟 on 23 Feb 2023
I found an interesting thing.when i change the Hardware Implementation> Hardware board to TI piccolo F2807X, the program run well and the LED blink in 0.5s. However my hardware is 28379d,and i don't change any configuration. Could someone help me ?

Sign in to comment.

Answers (1)

Vishwa
Vishwa on 15 May 2023
Edited: Vishwa on 16 May 2023
Hi,
Please reply if you are still facing the same issue. On my end, I am able to successfully blink LED on MATLAB r2022b with 3rd party software versions like yours.
Here are few suggestions to keep in mind,
  1. Constant block value should be greater than equal to 1.
  2. GPIO pin on Digital Output block must be configured to Toggle mode.
  3. Make sure that Simulink is able to deploy the embedded code to the target. Disconnect the COM port from CCS if connected.
I am also attaching a working Simulink model for you to compare with yours.
Hope that helps!
Vishwa
  2 Comments
BK
BK on 29 Jul 2023
Hi @Vishwa, The issue reported above is true and i am facing simillar issue. I am using CCS Version 10.0.0 instead of 12.2 shown in your screenshot. The LEDBlink program compiles and loads. But the LED is not blinking. If i load the same code through CCS, LED is blinking. Even i tried the program which you have preovided in your above solution. But i am facing same issue wirh R2022b. But the same LEDBlink simulink model is working perfectly with MATLAB R2021a.
Vishwa
Vishwa on 31 Jul 2023
Edited: Vishwa on 31 Jul 2023
Hi,
Kindly try with the recommended version of TI Code Composer Studio for R2022b, which is 11.0.0.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!