Simulink error,STM32-MAT package,Invalid index:Component:Simulink | Category:Block diagram error.

23 次查看(过去 30 天)
QQ图片20190421114743.png
QQ图片20190421114759.png
Matlab version:2018b
STM32-MAT version:4.4.2
Before I used the simple demo from ST ,I tried to build a model for STM32F407 which is very simple.It just contains a pulse generators and a GPIO block,when i click the simulation button, everything go right.But if I want to bulid it in C/C++,matlab report a error.I don't know whitch block makes mistakes.Maybe there is several mistakes in configuration?So I decide to use the demo from ST,but it doesn't work out.The same problem occurs.
QQ截图20190421122958.jpg
The installation path is set.I have checked the configuration two times,it should be right.
How to fix it?
By the way,the demo is saved by matlab 2016b.
If someone can help me,thanks for your kindness. :)

回答(1 个)

SADIK YILDIZ
SADIK YILDIZ 2021-5-23
Hi;
I have used MATLAB R2018b. I had same problem. I updated MATLAB Add-Ons. The problem had been solved (You can see solution in figure)

产品

Community Treasure Hunt

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

Start Hunting!

Translated by