Problem like suspended program occur when i use matlab2022b to use the Embedded Coder on My LaunchPad28379D
Show older comments
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.



Answers (1)
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,
- Constant block value should be greater than equal to 1.
- GPIO pin on Digital Output block must be configured to Toggle mode.
- 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
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.
Categories
Find more on Texas Instruments C2000 Processors in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!