Skip to main content
Associate III
October 27, 2025
Solved

Eth failed to work after few minutes with CubeMx Configuration

  • October 27, 2025
  • 2 replies
  • 180 views

I am working with STM32H747I -DISCO board 

I am using CubeMx version 6.15, firmware: H7_V1.12.2, Freertos CMSIS2 - V10.3.1

configuration 1 : Generating from touchgfx and configuring Eth other all parameters commented in code (Touchgfx parameters).

Here ETH is working fine 

configuration 2 : only configuring ETH with same configurating as above but generating from cubemx 

Here Eth Communication worked for abt 10 to 20 min and then MCU stucked.

I compared both projects : it's all same (MPU configuration Linker script DMA Descriptor and RAM Heap pointer) ...middleware package, CMSIS files, Freertos config files, Lwip folder(lwip.c .h and ethernetif.c and lwipopt.h),LAN files all are same but still I am facing this issue.

 

I have attached wireshark snip when MCU got stucked 

and IOC files 1. Touchgfx generated 2. CubeMx Generated 

 

@STea @STackPointer64 

Best answer by lavanya

Set the TCPIP priority higher 

increase MCU STACK and HEAP 

Changed CMSIS v2 to V1 

settings.PNG

2 replies

TDK
Super User
October 27, 2025

A program failing after 10-20 minutes could mean an issue with memory handling. Perhaps you are leaking memory, or a buffer write it out of bounds. Pause the program when it's "not working" and figure out the symptoms and cause.

"If you feel a post has answered your question, please click ""Accept as Solution""."
lavanyaAuthorBest answer
Associate III
October 28, 2025

Set the TCPIP priority higher 

increase MCU STACK and HEAP 

Changed CMSIS v2 to V1 

settings.PNG