read-only or R/W capable of PSRAM connected to G474 QSPI interface
In the QSPI chapter of G4series reference manual, we can confirm the support of external QSPI flash chip in mmap mode: "memory-mapped mode: the external flash memory is mapped to the device address space and is seen by the system as if it was an internal memory."
I need more RAM instead of code space, therefore my external space is PSRAM instead of FLASH.
Now I get the indirect mode R/W and mmap mode read all working.
My problem is that my mmao mode write operation always set the PSRAM data to zero, given non-zero value is written in my code.
My question is whether G474 QSPI controller support mmap write operation at all. My fundamental confused concept is that the QSPI controller has no idea what type of external PSRAM I am using. Therefore it's my responsibility to tell the CCR, or the QSPI controller what instruction byte content my PSRAM chip expects for Rd and Wr. However I didn't find the possibility to configure two instructions(R & W) in two different registers for the mmap mode R & W operation.
I found many official example projects for QSPI FLASH, but not for PSRAM.
This post also mentioned "Memory-mapped mode _won't_ work because that is read-only." https://community.st.com/t5/stm32-mcus-products/use-a-qspi-psram-chip-with-stm32l452xxx/m-p/126249
I read a few posts talking about octo-SPI interface does support PSRAM mmap R/W operation in other families, such as H7, but that's different hardware.





