Skip to main content
Associate II
May 21, 2024
Solved

STM32H7 ADC DMA don't run with LWIP and RTOS

  • May 21, 2024
  • 2 replies
  • 1210 views

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

This topic has been closed for replies.
Best answer by mƎALLEm

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

 

2 replies

mƎALLEm
mƎALLEmBest answer
ST Technical Moderator
May 21, 2024

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 "Best answer" on the reply which solved your issue or answered your question.
Muhammed Güler
Senior III
May 21, 2024

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