And then create this array, with a size of 12. And it worked well, no RAM issues.
DATA myData[12];
Now (with v.0.2.2) only works if the size of myData[] array is 1. If I put a bigger value, the core blinks in red 8 times (RAM issue). I don’t understand why there is such a big difference from 12 to only 1 in the new firmware update. I read the new firmware needs more RAM but in my case the difference is huge.
Any ideas of what could it be or if it is normal in the new firmware update?
Thanks @kennethlimcp for your answer!! The point is that when I verify the code with myData[12] (size of array 12) I get I have used 84% of RAM so in theory I should work, isn’t it?
Output of arm-none-eabi-size:
text data bss dec hex
77528 3116 14164 94808 17258
In a nutshell:
Flash used 80644 / 110592 72.9 %
RAM used 17280 / 20480 84.4 %
Since @clex does not explicitly state if his array myData is declared public or within a function, it’s not easy to give a definite answer.
There is a fundamental difference between the two kinds of variables.
Maybe this thread that deals with a similar question might be interesting to read.