cancel
Showing results for 
Search instead for 
Did you mean: 

[STM32H730ZBT] I2S no data with DMA and D-Cache enabled

sebxx4
Associate III

Hello, 

I need to have D-Cache enabled to improve performance of FMC external SDRAM (it's >3x slower without D-Cache enabled). I also want to use I2S for audio. But with D-Cache enabled, I don't get any data from ADC. What can I do to use I2S with D-Cache enabled?

1 ACCEPTED SOLUTION

Accepted Solutions
mƎALLEm
ST Employee

Hello,

You need to ensure a data coherency when it turns to the DMA usage while D-cache is enabled.

Need to perform cache maintenance by software.

Refer to the AN4839 "Level 1 cache on STM32F7 Series and STM32H7 Series", especially the section: 3.2 Example for cache maintenance and data coherency and the scenario described in it:

mALLEm_0-1771514592953.png

 

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

View solution in original post

1 REPLY 1
mƎALLEm
ST Employee

Hello,

You need to ensure a data coherency when it turns to the DMA usage while D-cache is enabled.

Need to perform cache maintenance by software.

Refer to the AN4839 "Level 1 cache on STM32F7 Series and STM32H7 Series", especially the section: 3.2 Example for cache maintenance and data coherency and the scenario described in it:

mALLEm_0-1771514592953.png

 

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.