Skip to main content
RKadl
Associate II
Aug 19, 2020 9:58 AM UTC
Solved

Can we interface SRAM/pSRAM with the STM32L496controller on QUAD SPI?

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.

This topic has been closed for replies.
Andreas Bolsch
Andreas BolschBest answer
Lead III
Aug 19, 2020 10:20 AM UTC

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.

3 replies

Andreas Bolsch
Andreas BolschBest answer
Lead III
Aug 19, 2020 10:20 AM UTC

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.

RKadl
RKadlAuthor
Associate II
Aug 20, 2020 5:25 AM UTC

Thank you Andreas.

if there is a way to interface both flash and SRAM on the same QSPI port?

Andreas Bolsch
Lead III
Aug 20, 2020 7:26 AM UTC

In a way, yes:

https://community.st.com/s/question/0D53W00000FyuCKSAZ/stm32-qspi-flash-read-only-problem-in-memory-mapped-mode?t=1597906790782

If there's only one pin available for NCS via AF selection, you could still use an external demultiplexer.