Data memory exceeding the available memory on Arduino Uno

10 Ansichten (letzte 30 Tage)
SHAMANTH GOWDA
SHAMANTH GOWDA am 17 Mär. 2018
Beantwortet: 埃博拉酱 am 27 Okt. 2024 um 1:18
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 Kommentare
panda xl
panda xl am 13 Jun. 2019
Verschoben: Walter Roberson am 26 Okt. 2024 um 19:34
can you solve this problem ? i have same problem
Abiodun
Abiodun am 26 Okt. 2024 um 19:30
Hello All,
I have this same problem and I would like to know how the memory issues can be solved.
Thanks

Melden Sie sich an, um zu kommentieren.

Antworten (1)

埃博拉酱
埃博拉酱 am 27 Okt. 2024 um 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.

Community Treasure Hunt

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

Start Hunting!

Translated by