Ethernet DMA error - how to handle it?
- January 30, 2026
- 6 replies
- 666 views
Hello!
I am writing a program for STM32F769I-DISCO board that uses FreeRTOS and LwIP to communicate with the server and send data to it. It generally works, but unplugging and plugging Ethernet cable (especially doing it several times within a few seconds) usually causes Ethernet DMA errors which make program stop calling HAL_ETH_IRQHandler and thus board can't even try to reconnect to server. I don't know how I should handle those errors and where to look for information that could offer a solution to my problem.
Any kind of help, whether a direct response or a link to helpful resources, is appreciated.
Ethernet DMASR register
heth error code
MPU and Ethernet descriptors
EDIT 1: Added ethernetif.c and lwip.c files to attachments and screenshot of MPU configuration.
