Clear Filters
Clear Filters

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

10 views (last 30 days)

Answers (1)

Raj
Raj on 5 Oct 2023
Edited: Raj on 6 Oct 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.

Community Treasure Hunt

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

Start Hunting!