2020-08-19 02:58 AM
Hi,
We have use STM32L496 controller, can I interface external SRAM or pSRAM on QSPI pins?
If not, what is the other option for accessing the external SRAM.
Solved! Go to Solution.
2020-08-19 03:20 AM
There are only few SRAMs with serial interface available, and those offer only rather limited capacity. Furthermore, QSPI does support only memory-mapped read. You could use indirect write, of course. For read/write in large chunks (purely sequential!) speed penalty wouldn't be too bad, but for random access ... Use FSMC for external parallel (P)SRAM if enough pins available.
2020-08-19 03:20 AM
There are only few SRAMs with serial interface available, and those offer only rather limited capacity. Furthermore, QSPI does support only memory-mapped read. You could use indirect write, of course. For read/write in large chunks (purely sequential!) speed penalty wouldn't be too bad, but for random access ... Use FSMC for external parallel (P)SRAM if enough pins available.
2020-08-19 10:25 PM
Thank you Andreas.
if there is a way to interface both flash and SRAM on the same QSPI port?
2020-08-20 12:26 AM
In a way, yes:
If there's only one pin available for NCS via AF selection, you could still use an external demultiplexer.