Thank you very much !
first check the mem usage all along the sketch, second optimize the strings.
i'll let you know the result.
Thank you very much !
first check the mem usage all along the sketch, second optimize the strings.
i'll let you know the result.
Good news! I've found where the problem was ![]()
It was not a memory overflow, I never go under 900 byte of free memory before optimizing. But I've learn a lot about it, and I want to thank you for this ![]()
Now I got more than 1k of free mem with the complete sketch loaded.
The problem was on the 'noInterrupts()' command inside of the while loop.
I don't know why but disable the interrupt is causing the Arduino to freeze.
I'm curious if someone could tell me why is this happening ![]()
Anyway, my project is complete now and working good.
I don't know why but disable the interrupt is causing the Arduino to freeze.
I'm curious if someone could tell me why is this happening
Lots of things depend on interrupts happening. Like millis() getting updated. Which delay() depends on.
Disabling interrupts is rarely a good idea, unless you really know what you are doing.
So it's better now without disable it.
Thank you ![]()
And another example of why, when we say "post all your code", we really mean it.
This part was in the first code I've posted ![]()
But I understand and will post everything now ![]()