Data memory exceeding the available memory on Arduino Uno
4 次查看(过去 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 个评论
Abiodun
2024-10-26
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Modeling 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!