Error while deploying the Simulink model to Arduino

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

 Respuesta aceptada

Madhu Govindarajan
Madhu Govindarajan el 26 de Nov. de 2018
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 comentarios

Thank you Sir. Is it possible to generate code for a certain number of blocks in this model and deploy it to Arduino?
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.
Thank you Sir.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Arduino Hardware en Centro de ayuda y File Exchange.

Productos

Versión

R2017a

Preguntada:

el 21 de Nov. de 2018

Comentada:

el 28 de Nov. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by