I am using a PCB that designed myself. PSRAM and Flash are connected in parallel, and PSRAM's CS is connected to P0I missed this one. What kind of board is it, and how is PSRAM connected ?
What else is running besides that function ?
GMX is right. Proper configuration is necessary before using PSRAM. I referred to his code.
https://github.com/FreddyVRetro/pico_psram/
Afterwards, I retested the same code and put the read and write into different functions.
psram clk is 150MHz/2=75MHz, Not overclocked.
uncached 32-bit:
Write 8MB is 314655us -> 25.4MB/s
Read 8MB is 403915us -> 19.8MB/s
cached 32-bit:
Write 8MB is 1052191us -> 7.6MB/s
Read 8MB is 404287us -> 19.8MB/s
Setup psram is very important.
However, I haven't yet figured out the working principle of QMI and the meaning of some of its parameters.
I tried overclocking to 150MHz. The reading and writing speed has indeed increased. But there were many errors in the read verification.
Statistics: Posted by dazzlinggod — Fri Feb 21, 2025 3:03 am