Skip to main content
Visitor II
December 19, 2025
Question

H723 problems with ping (ETH+LWIP)

  • December 19, 2025
  • 3 replies
  • 101 views

I'm trying to ping my NUCLEO-H723ZG board and I've failed with every attempt over many hours;

  • Nucleo board is connected to my MacBook over USB + ethernet cable with an ethernet adapter
  • I'm using STM32CubeMX with VSC extension (this setup works, I am able to program the board and debug it)

 

My goal: Ping the STM32 over ethernet 

Results:

Request timeout for icmp_seq 301
ping: sendto: Host is down

Or it will hardfault

 

Code:

/* USER CODE BEGIN PV */
extern struct netif gnetif;
/* USER CODE END PV */
...
/* Infinite loop */
 /* USER CODE BEGIN WHILE */
 while (1)
 {
 /* USER CODE END WHILE */
 /* USER CODE BEGIN 3 */
 ethernetif_input(&gnetif);
 sys_check_timeouts();
 }
 /* USER CODE END 3 */

Config:

These config files are based from .ioc files from this thread: https://community.st.com/t5/stm32-mcus-embedded-software/h723-ethernet-lwip-ping-problem/m-p/758419#M58561  (No help from linked topic helped here)

I've also tried this tutorial with the same results: https://rafalbartoszak.com/stm32-ethernet-the-first-launch/ 

Screenshot 2025-12-19 at 12.46.14.png

Screenshot 2025-12-19 at 12.46.33.png

Screenshot 2025-12-19 at 12.46.57.png

Screenshot 2025-12-19 at 12.47.21.png

Screenshot 2025-12-19 at 12.47.44.png

Screenshot 2025-12-19 at 12.47.57.png

 

    This topic has been closed for replies.

    3 replies

    Graduate
    December 20, 2025

    You have multiple problems with ICMP_packet_processing.c code.

    Also calls to HAL drivers are not properly scheduled.

    ten_filipAuthor
    Visitor II
    December 20, 2025

    @mbarg.1 Would you please care to elaborate? I have no ICMP_packet_processing.c file, nor have I shown any HAL driver scheduling. 

    Graduate
    December 20, 2025

    Which software is running ethernet connection ? 

    Technical Moderator
    December 22, 2025

    Hello @ten_filip, and welcome to ST community!

    After reviewing your screenshots, I noticed several crucial configuration steps were missed for the Ethernet to work properly. Notably:

    • MPU configuration for Ethernet buffers and descriptors
    • Insufficient LwIP MEM_SIZE

    I suggest following the example project LwIP_TCP_Echo_ServerFor MPU configuration, enable both I-Cache and D-Cache, and apply the recommended settings.

    STackPointer64_0-1766418792074.png

    Additionally, add the following memory section declarations for Ethernet descriptors and buffers in the STM32H723ZGTX_FLASH.ld linker file to ensure proper placement and alignment with the MPU configuration.

    STackPointer64_1-1766418848521.png

    Finally, increase the heap memory allocation by modifying the memory size definition inside lwipopts.h.

    STackPointer64_2-1766419314122.png

     

    Please apply these changes and let me know how it goes.

    Best regards,