Effacer les filtres
Effacer les filtres

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 vues (au cours des 30 derniers jours)

Réponses (1)

Raj
Raj le 5 Oct 2023
Modifié(e) : Raj le 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.

Catégories

En savoir plus sur Run on Target Hardware dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by