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 ?
Problem like suspended program occur when i use matlab2022b to use the Embedded Coder on My LaunchPad28379D
5 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (1 件)
Vishwa
2023 年 5 月 15 日
編集済み: Vishwa
2023 年 5 月 16 日
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 件のコメント
BK
2023 年 7 月 29 日
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.
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!