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

5 visualizaciones (últimos 30 días)
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 comentarios
志伟
志伟 el 23 de Feb. de 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 ?
BK
BK el 29 de Jul. de 2023
Hi @志伟 , Did you manage to solve this problem. I am also facing the simillar issue with R2022b.

Iniciar sesión para comentar.

Respuestas (1)

Vishwa
Vishwa el 15 de Mayo de 2023
Editada: Vishwa el 16 de Mayo de 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 comentarios
BK
BK el 29 de Jul. de 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 el 31 de Jul. de 2023
Editada: Vishwa el 31 de Jul. de 2023
Hi,
Kindly try with the recommended version of TI Code Composer Studio for R2022b, which is 11.0.0.

Iniciar sesión para comentar.

Community Treasure Hunt

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

Start Hunting!

Translated by