Open mmzeynalli opened 4 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?
The problem is, I can't create large array, before sending/receiving smth. Can creation of 960 length static array cause wdt reset?
I think you should try this.
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