The following error occurred during deployment to your hardware board: The generated code exceeds the available memory on the processor. It uses 98.1% of available program me
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/786860/image.jpeg)
0 comentarios
Respuestas (1)
Raj
el 5 de Oct. de 2023
Editada: Raj
el 6 de Oct. de 2023
Hello Yang,
Atmega 328p microcontroller has a Program Memory Size of 32 KB and a RAM of just 2 KB.This is fairly less than the memory that is required by the code generated by your model to do its processing.
Data memory that is a volatile memory is used for storing variables, intermediate results, and other runtime data during program execution. Overflow of data memory indicates you might have way too many variables and you can solve it either by optimizing your code or deleting unused variables to clear up space.
You can also think of using a different development board that has bigger memory storage capacity and a better RAM to carry out the processing that you require.
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!