STM32H75x QSPI flash memory mapped mode questions
Hi,
I've have to port an existing huge application from F4 to a H753 board. The F4 has PNOR the H7 dual QSPI flash.
One task parses XML configuration data from PNOR flash. A second task stores data e.g. log data in same PNOR.
Parsing configuration data use of string functions which require a memory address, while writing to QSPI requires indirect mode. This would require kind of flash memory management, which I guess is bit tricky to handle.
I started using indirect mode only and DMA to read chunks of data into memory buffers before parsing it. This works fine. A QSPI read request can suspend an ongoing erase operation, so it is not blocked or delayed. Great.
But compared to the PNOR read, the latency when reading data chunks into buffers in indirect mode drops the data processing performance. Therefore I want to check if using memory mapped mode is worth some time spent for investigations.
I've read that QSPI read has a prefetch buffer. Is this mechanism available for data read too or only for XIP? The H75x has 32 byte FIFO so I think this may speed up sequential memory mapped reads e.g. as used by strcmp()? Any experience?
I had problems (and also read about it here in this forum) when switching QSPI interface from memory mapped mode to indirect mode and vice versa. Does an MCU with OSPI or XSPI interface have advantages regarding this application?
Thank you
