cores icon indicating copy to clipboard operation
cores copied to clipboard

enable prefetching when accessing PSRAM over AHB

Open A-Dunstan opened this issue 1 year ago • 1 comments

The prefetch feature of FlexSPI2 is not being activated in FLEXSPI2_AHBCR, reducing performance when PSRAM is accessed sequentially. This commit turns it on and allocates all prefetch buffer space to RXBUF3 which will be used for all AHB masters (CPU/DMA/DCP/others).

As an example of possible performance improvement, this reduces the time for the psram test sketch from 36.54 seconds to 29.99 seconds (1x 8MB PSRAM, default 88MHz clock speed).

A-Dunstan avatar Jul 09 '23 05:07 A-Dunstan

Did some testing with this - variation of above psram test sketch and also went to LittleFS in PSRAM and ran Integrity test.

Saw same faster 8MB perf and also faster on 16MB T_4.1 to verified tests passed - the LittleFS Integrity seemed 5% faster and no errors.

Results noted here - that post #114 and #115

Defragster avatar Jul 13 '23 06:07 Defragster