The following error occurred during deployment to your hardware board: The generated code exceeds the available memory on the processor. It uses 137.9% of available program
17 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
The image below shows the error I encounter while trying to Run on board (Monitor & Tune). I am using Arduino Uno R3 board and MG995R servo motor for the test. Nevertheless if I deploy this very simple simulink block to arduino, it will deploy and run perfectly. What could I change?

0 comentarios
Respuestas (2)
Shreeya
el 4 de Jul. de 2024
Hey
I suppose the error message suggests that you need to optimize the generated code such that it can be executed on the processor. I'm linking the document which lists the various strategies available for the memory optimization of the code:
0 comentarios
Saurabh
el 10 de Dic. de 2024
I've responded to a similar question in the MATLAB answer thread. Please review it to see if any of the suggested workarounds resolve your issue.
0 comentarios
Ver también
Categorías
Más información sobre Arduino Hardware en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!