Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable prefetching when accessing PSRAM over AHB #708

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

A-Dunstan
Copy link
Contributor

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).

@Defragster
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants