why memory arduino full ?

4 ビュー (過去 30 日間)
panda xl
panda xl 2019 年 6 月 13 日
回答済み: Raj 2023 年 10 月 9 日
The following error occurred during deployment to your hardware board: The generated code exceeds the available memory on the processor. It uses 10.2% of available program memory and 105.9% of available Data memory.
this problem appear again, before i use Uno and the probem same, Its about memory. After that i decide to use Mega 2560 and the problem same. Can anybody help me, this project include fuzzy controller. Thanks
  1 件のコメント
abhishek choudhary
abhishek choudhary 2022 年 3 月 13 日
same here. anybody solve this problem?? please help

サインインしてコメントする。

回答 (1 件)

Raj
Raj 2023 年 10 月 9 日
Hello,
As you can see in your logs, it's the data memory that exceeds and not the program memory. While program memory is the code memory that stores the executable, data memory is more of volatile memory used for storing variables and other runtime data during program execution.
There are some workarounds you can try to fix your issue-
  • Reduce complexity of the model. More complex models generate bigger codes, hence more variables in workspace which results in overflow of memory.
  • You can also go ahead and check if there are any unnecessary variables which are unused in your code. If yes go ahead and remove them.
  • Try redesigning the algorithms which might help in optimizing working memory usage.
I hope you are able to fix your issue

カテゴリ

Help Center および File ExchangeModeling についてさらに検索

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by