cancel
Showing results for 
Search instead for 
Did you mean: 

Configuring MPU for External SDRAM Framebuffer on STM32H750 with TouchGFX

nonoriri
Associate II

Hello,

I'm developing graphics on an STM32H750-based board using TouchGFX, and my framebuffer is located in external SDRAM.

I have a question regarding the MPU configuration for the external SDRAM that holds the framebuffer.

If I configure the cache policy to Write-back, Write-allocate, would the following MPU settings be appropriate?

MPU_InitStruct.TypeExtField = MPU_TEX_LEVEL1;
MPU_InitStruct.IsShareable = MPU_ACCESS_SHAREABLE;
MPU_InitStruct.IsCacheable = MPU_ACCESS_CACHEABLE;
MPU_InitStruct.IsBufferable = MPU_ACCESS_BUFFERABLE;

 Additionally, is it acceptable to enable both MPU_ACCESS_SHAREABLE and MPU_ACCESS_CACHEABLE at the same time?

I'm concerned that setting the SHAREABLE attribute might invalidate the CACHEABLE setting.

 

Thanks for any guidance!

0 REPLIES 0