Error while deploying the Simulink model to Arduino
1 次查看(过去 30 天)
显示 更早的评论
I was trying to deploy a Simulink model to my Arduino Uno, but got the error message as follows: "Maximum variable size allowed by the program is exceeded". Please help me to solve this problem. I have attached my simulink model and the error message screenshot with this question
0 个评论
采纳的回答
Madhu Govindarajan
2018-11-26
This error happens if the algorithm cannot be fit inside the Arduino memory. if merely deploying the code throws this error, I recommend attempting to implement simpler versions of your algorithm.
3 个评论
Madhu Govindarajan
2018-11-27
If you have Simulink Coder, then you can generate code out of blocks and call it from Arduino IDE. This is a little bit more involved workflow and I dont know the details. You might have to reach out to Technical Support for this.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Modeling 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!