Sandro
Well-known member
Hi all,
I recently added to my code a new simple function, apparently harmless; the code is correctly compiled with Arduino IDE using all compiler options. But, if I use "Fastest" option (and I need fastest), even if the code is compiled without errors or alert, on runtime there are multiple errors. I tried for days different actions; I only found that any minimal change (inside the main code or inside most of my classes) makes the problem disappear.
My question is: can this be a compiler's error, either compiler's discovery of well hidden bug? Of course, in the second case I would take advantage of this opportunity and go deeper.
Unfortunately my code is large (https://github.com/SandroGrassia/Lilla-audio-sampler), and as I wrote it's impossible (for me) to isolate the issue (any little change makes the problem disappear)... useless to share the new simple function, it works and doesn't say anything, I belive:
Does anyone an answer/idea/tip/strategy to suggest?
I recently added to my code a new simple function, apparently harmless; the code is correctly compiled with Arduino IDE using all compiler options. But, if I use "Fastest" option (and I need fastest), even if the code is compiled without errors or alert, on runtime there are multiple errors. I tried for days different actions; I only found that any minimal change (inside the main code or inside most of my classes) makes the problem disappear.
My question is: can this be a compiler's error, either compiler's discovery of well hidden bug? Of course, in the second case I would take advantage of this opportunity and go deeper.
Unfortunately my code is large (https://github.com/SandroGrassia/Lilla-audio-sampler), and as I wrote it's impossible (for me) to isolate the issue (any little change makes the problem disappear)... useless to share the new simple function, it works and doesn't say anything, I belive:
Code:
void DISPLAY_frame_color(uint8_t col, uint8_t row, uint8_t chars, uint16_t color)
{
tft.drawRect((6.0 * col), (12.0 * row), (6 * chars) + 4, 11, color);
}
Does anyone an answer/idea/tip/strategy to suggest?