Skip to main content
RKadl
Associate II
August 19, 2020
Solved

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

  • August 19, 2020
  • 1 reply
  • 3772 views

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.
Best answer by Andreas Bolsch

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.

1 reply

Andreas Bolsch
Andreas BolschBest answer
Lead III
August 19, 2020

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
August 20, 2020

Thank you Andreas.

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

Andreas Bolsch
Lead III
August 20, 2020

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.