Skip to main content
Visitor II
June 8, 2024
Solved

stm32h743zit6 Ethernet Can't Ping

  • June 8, 2024
  • 2 replies
  • 1266 views

Hope all is going well. I'm trying to ping STM32H743ZI NUCLEO 144 using LWIP middle-ware. Code generated by CubeMX.

  • Configurations:
  1. Set the HCLK to 400 MHz
  2. Enabled the CPU ICache and DCache (under Cortex_M7 Configuration)
  3. Enabled MPU (Region0, Region1 & Region2)
  4. Enabled LWIP
  5. Selected LAN8742 as the Driver_PHY (under LwIP>Platform Settings)
  6. DHCP disabled (IP, MASK: 255,255,255,000 , Gateway: Modem IP)
  7. RTOS disabled
  8. LWIP_HTTPD (LWIP_HTTPD_CGI & LWIP_HTTPD_SSI enabled)
  9. LWIP_HTTPD_MAX_TAG_NAME_LEN set to 16
  10. ICMP enabled (LWIP_BROADCAST_PING and LWIP_MULTICAST_PING in LwIP Key Options>IPMP Options).
  11. Code Generated for Keil V5
  12. MX_LWIP_Process added to the main function in While loop.
while(1)
{
MX_LWIP_Process();
}

I don't know how should I configure the CubeMX or change the generated code to be able to ping my board.sir can you please share the working code please :folded_hands:

    This topic has been closed for replies.
    Best answer by ASEHST

    Hello @Raja_Kaaliraj,

    Please ensure that your assigned static IP address is in the same subnet as your router and is not within the range allocated by your router's DHCP to avoid IP address conflicts. Also, ensure that your router's IP address is set as the gateway.

    You can find a detailed, step-by-step Ethernet example project code based on LwIP here: STM32H7-LwIP-Examples/STM32H743_Nucleo_ETH at main · stm32-hotspot/STM32H7-LwIP-Examples (github.com)

     

    With Regards,

    2 replies

    Super User
    June 8, 2024

    Before generating code with Cube, please begin from one of ready examples. Do not change anything before the selected example "works" (at least responds to ping).

     

    ASEHSTAnswer
    ST Employee
    June 11, 2024

    Hello @Raja_Kaaliraj,

    Please ensure that your assigned static IP address is in the same subnet as your router and is not within the range allocated by your router's DHCP to avoid IP address conflicts. Also, ensure that your router's IP address is set as the gateway.

    You can find a detailed, step-by-step Ethernet example project code based on LwIP here: STM32H7-LwIP-Examples/STM32H743_Nucleo_ETH at main · stm32-hotspot/STM32H7-LwIP-Examples (github.com)

     

    With Regards,