Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Library is preventing the use of long arrays #55

Open
mmzeynalli opened this issue May 1, 2020 · 3 comments
Open

Library is preventing the use of long arrays #55

mmzeynalli opened this issue May 1, 2020 · 3 comments

Comments

@mmzeynalli
Copy link

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
Copy link

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
Copy link
Author

mmzeynalli commented Dec 12, 2020

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

@PozitronikTech
Copy link

PozitronikTech commented Dec 18, 2020

I think you should try this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants