Data memory exceeding the available memory on Arduino Uno
13 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
panda xl
le 13 Juin 2019
Déplacé(e) : Walter Roberson
le 26 Oct 2024 à 19:34
can you solve this problem ? i have same problem
Abiodun
le 26 Oct 2024 à 19:30
Hello All,
I have this same problem and I would like to know how the memory issues can be solved.
Thanks
Réponses (1)
埃博拉酱
le 27 Oct 2024 à 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 commentaires
Voir également
Catégories
En savoir plus sur Modeling dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!