cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H7 ADC DMA don't run with LWIP and RTOS

Stefano1
Associate

Hello everyone,

I have to use the ADC 16b converter with DMA which does not work if DCache is enabled but, to use LWIP and RTOS it is necessary that DCache is enabled.

Does anyone know how to fix the problem?

Thank you in advance

1 ACCEPTED SOLUTION

Accepted Solutions
SofLit
ST Employee

Hello,

Seems you have a cache coherency issue. 

Please check the AN4839 "Level 1 cache on STM32F7 Series and STM32H7 Series" especially the section 3.2 Example for cache maintenance and data coherency and how to overcome this behavior:

SofLit_0-1716365805786.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

2 REPLIES 2
SofLit
ST Employee

Hello,

Seems you have a cache coherency issue. 

Please check the AN4839 "Level 1 cache on STM32F7 Series and STM32H7 Series" especially the section 3.2 Example for cache maintenance and data coherency and how to overcome this behavior:

SofLit_0-1716365805786.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.
Muhammed Güler
Senior III

You need to configure the Memory Protection Unit to prevent caching of the address area used by peripherals.