In STM32F7
, The code is running from the internal flash (default), we can read/write data from/to internal flash.
My problem is: I want to use external QSPI
flash for my code execution (Memory mapped mode).
Also during this mode, I would like to use the same QSPI
flash for my data storage (ie. saving some settings) while code is executing in QSPI
flash. But this is not possible since ST states that in its reference document (AN4760):
In Memory-mapped mode the QUADSPI allows the access to the external
memory for read operation through the memory mapped address region
(from 0x9000 0000 to 0x9FFF FFFF) and allows the external memory to
be seen just like an internal memory.
Is there any solution to my problem (write data to QSPI
flash) without exiting from memory mapped mode?
Is it possible to partition QSPI
flash into two parts? One is used for memory mapped mode and the other used as just read/write data into it.
Note: I don't want to jump from external flash to internal flash for write data, then jump to external flash again for executing the code.
Any help would be appreciated.
Thanks.