STM32H7S7 use PSRAM for Touch GFX and FREERTOS HEAP
Hi,
I am using the STM32H7S7L8H6H microcontroller paired with the APS256XXN-OBx9 PSRAM, configured for two main purposes:
-
Framebuffer for TouchGFX. (320*240 16bpp dual frame buffer).
-
Heap region for FreeRTOS (
heap_5.c), as my application is large and combining SRAM3 with DTCM leads to full SRAM
To follow ST's recommendations for TouchGFX, I configured the MPU without caching for the PSRAM region. However, this causes the FreeRTOS heap located in that same region to be non-cached, resulting in significantly slower performance.
I attempted to divide the PSRAM into two separate MPU zones (one cached for the heap and one non-cached for the framebuffer), but doing so introduced graphical glitches on the screen.
Do you have any recommendations or best practices to mitigate this issue and achieve both good heap performance and stable display output?
Thanks

