cancel
Showing results for 
Search instead for 
Did you mean: 

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

RKadl
Associate II

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Andreas Bolsch
Lead II

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.

View solution in original post

3 REPLIES 3
Andreas Bolsch
Lead II

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.

Thank you Andreas.

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

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.