cancel
Showing results for 
Search instead for 
Did you mean: 

STM32U585 MPU cacheability?

BDoon.1
Associate III

I am using an STM32U585QI.  I have some memory mapped PSRAM that I'm using.  I have enabled DCACHE, but do I have to manually do something with the MPU for it to cache memory accesses to/from the memory?  The reference manual says:

"In addition, the AHB bus traffic to the memory regions can be cacheable or noncacheable.
An incoming memory request to DCACHE is defined as cacheable according to its AHB
transaction memory lookup attribute.

...

These AHB attributes depend on the memory protection unit (MPU) programming for the
addressed region."

 

If I don't call HAL_MPU_Enable or set it in any way, will memory mapped and DMA reads/writes to the external memory region go through the data cache?

0 REPLIES 0