PaulS:
And the solution seems to come again with malloc().
Not possible. If you can't fit a statically sized array in SRAM, there is no way to fit an identically sized, dynamically allocated on in SRAM.
well, in fact, with the duration times in the original code, the program runs smooth, so it can.
The problem comes when I rise the duration of calibration because I fill the memory with more "tests" as ardu is reading the sensor in its full frequency (the while () loop) ...still don't know how many times is. I use a CD4067, must read again the spreadsheet...
thanks anyway!