"Touchgfx + QSPI" : Switching between "Memory mapped mode" and "Indirect mode"
Hi everyone!
On my custom board, STM32F746IGT6, TouchGFX is OK (The QSPI is used as Indirect mode for data storage from the second task). Finally, I need more space for the images and fonts. So, I changed the *.ld linker file by adding;
QUADSPI (rx) : ORIGIN = 0x90000000, LENGTH = 16M
So now, by using CubeProgrammer (via External Loader enabled) can display images again properly. But I can not read QSPI by indirectly which is intended to hold user settings and logging data.
I have already try to search "Switching from read only memory mapped mode to Indirect mode.." topics etc.. but not get success.
I try to use;
//Indirect mode
inDirectModeActiveFlag=1;//to notify other tasks that memory is indirect mode
BSP_QSPI_Init();
BSP_QSPI_Read(....
BSP_QSPI_Write(... .. do something that I want
//And go back to mapped mode
BSP_QSPI_Init();
BSP_QSPI_MemoryMappedMode();
inDirectModeActiveFlag=0;
So, I also put the line;
if (inDirectModeActiveFlag==1) return;
to the Model::tick() function to do not disturb display
Any suggestion or help?
I think that the N25Q128a with 16M must be enogh to store application settings and logging data on itand the image files too.
Murat
