freetronics / DMD2

Beta release of a new Dot Matrix Display Arduino library
http://forum.freetronics.com/viewtopic.php?f=26&t=5893
GNU General Public License v3.0
80 stars 71 forks source link

Library is preventing the use of long arrays #55

Open mmzeynalli opened 4 years ago

mmzeynalli commented 4 years ago

Recently I do simple project where I send pixel data from RaspberryPi via UART. In this project, I created array of ~1000 length (screens are 3x5, it makes around 960 bytes of data). First I created it dynamically via calloc, and memory allocation failed. Changing array to static did not change anything. Then, I removed array and tried to increase Arduino buffer size instead. However, even though I have enough buffer size, my code even wont print something to the Serial (and I am not talking about RPi - Arduino yet).

P. S. There is the same issue in original DMD library, and I opened issues in both of them

PozitronikTech commented 3 years ago

I think the wacthdog intervenes because the time during uart sending is too long. For this reason, communication may not be possible. My suggestion, you can try sending piece by piece?

mmzeynalli commented 3 years ago

The problem is, I can't create large array, before sending/receiving smth. Can creation of 960 length static array cause wdt reset?

PozitronikTech commented 3 years ago

I think you should try this.