Skip to main content
Associate
June 23, 2026
Question

[LWIP] Rx buffers zero copy no MPU config

  • June 23, 2026
  • 2 replies
  • 74 views

HI

How to create a project for STM32H7 with Ethernet and LwIP stack working | Community

Rx buffers labeled “Zero Copy” and are used by DMA and CPU are not marked by MPU for cacheable? 
only descriptors are.

 

I couldn’t find any special clean or flush cache operations in code as well.

 

Why is that?

 

Image below shows only descriptors (512B) and TX (LWIP heap) are noncacheable.

 

 

2 replies

ST Employee
August 7, 2026

Hello,

Thank you for your report,

The RX zero-copy buffers are not necessarily left cacheable without precautions; they are either placed in a memory region configured to avoid cache coherency issues, or cache coherency is handled by another part of the code. Descriptors are always treated separately because they are directly accessed by the DMA, whereas packet buffers follow a strategy specific to the LwIP/STM32H7 integration.

 

With Regards,

If your question is answered, please close this topic by clicking ""Accept as Solution"".
Visitor
August 7, 2026
 

This is a good point about how the zero-copy RX buffers are handled. It sounds like the cacheability is intentional and managed by the LwIP/STM32H7 integration rather than requiring MPU configuration. The explanation about DMA access makes the behavior much clearer.