Data memory exceeding the available memory on Arduino Uno

13 visualizaciones (últimos 30 días)
SHAMANTH GOWDA
SHAMANTH GOWDA el 17 de Mzo. de 2018
Respondida: 埃博拉酱 el 27 de Oct. de 2024 a las 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 comentarios
panda xl
panda xl el 13 de Jun. de 2019
Movida: Walter Roberson el 26 de Oct. de 2024 a las 19:34
can you solve this problem ? i have same problem
Abiodun
Abiodun el 26 de Oct. de 2024 a las 19:30
Hello All,
I have this same problem and I would like to know how the memory issues can be solved.
Thanks

Iniciar sesión para comentar.

Respuestas (1)

埃博拉酱
埃博拉酱 el 27 de Oct. de 2024 a las 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.

Categorías

Más información sobre Modeling en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by