ESP32 PSRAM performance drop
Posted: Tue Mar 07, 2023 6:27 pm
I experience strange behaviour of my sketch. It deals with playing audio samples thru i2s ADC. First I allocate 3MB of PSRAM with ps_alloc(), and then cache sample data from LittleFS files to PSRAM byte array cause flash performance is not enough. Initially I only used only 300-500kB of the reserved 3MB, and it was all ok. But when I loaded almost all 3MB of data, It began to stumble. And the strange thing is that it stumbles at the same data in the first 300-500kB which was doing ok, when there were no following data. I can't understand what consumes those extra microseconds. Any ideas, please?