Data memory exceeding the available memory on Arduino Uno

13 次查看(过去 30 天)
Hello
I have been getting this error since I started using my Arduino Uno board for my simulink project. It says that the data memory has exceeded by 200%. But all I am trying to do is to read and write data to the board via simulink. I have designed a Fuzzy controller to control the speed of the dc motor. This Fuzzy block is the one consuming more memory. But what I don't get is that why should the whole model be dumped on the board? Can't the board work irrespective of the model? What I mean to say is that I want my board to just transmit and receive data and all the processing work is to be done on simulink. Or is there a way to change the build options for this case?
Thanks.
  2 个评论
panda xl
panda xl 2019-6-13
移动:Walter Roberson 2024-10-26,19:34
can you solve this problem ? i have same problem
Abiodun
Abiodun 2024-10-26,19:30
Hello All,
I have this same problem and I would like to know how the memory issues can be solved.
Thanks

请先登录,再进行评论。

回答(1 个)

埃博拉酱
埃博拉酱 2024-10-27,1:18
If you're convinced that the memory is running out because the entire model is loaded onto the board, that's normal. Since your screenshot shows that the inputs and outputs are both pins on the board, then the whole calculation process should naturally be done on the board as well.
If the board needs to continue working while disconnected from the PC, it is obvious that the entire model must be stored on the board. Do you want to detach the work of the board from the model, i.e., hand over some complex calculations to a PC that is connected to the board?
If so, then it would be a completely different issue. I'm not sure if Simulink can handle the runtime interaction between the board and the PC. If it can't, you'll probably have to manually write some C++ code using the Arduino IDE.

类别

Help CenterFile Exchange 中查找有关 Modeling 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by