vinot:
PaulS:
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.
If you have evidence that you think disproves what PaulS wrote, then either the evidence is wrong, or you are misinterpreting it. What PaulS wrote is absolutely and fundamentally correct.