Skip to main content
Visitor II
November 30, 2023
Question

How to configure Ethernet

  • November 30, 2023
  • 5 replies
  • 2960 views

Hello Team,

Finding difficult to configure ethernet as MII without RTOS in STM32H745I DISCOVER BOARD.
In command prompt when command PING IP address of board is entered every time it shows timeout. Find images enclosed. Kindly guide me. 

 

Best Regards,
Gagan Gowda 

 

 

 

    This topic has been closed for replies.

    5 replies

    Technical Moderator
    November 30, 2023

    Hello @ggowd.1 

     

    Have you tried this article How to create project for STM32H7 with Ethernet an... - STMicroelectronics Community.

    This should be helpful.

    ggowd.1Author
    Visitor II
    December 1, 2023

    Hello @FBL,

     

    How to create project for STM32H7 with Ethernet an... - STMicroelectronics Community
    In this article ethernet is configured with RTOS and I am trying without RTOS. But tried to follow the same steps, still unable to configure.

     

    Best Regards,
    Gagan Gowda

    ggowd.1Author
    Visitor II
    December 1, 2023

    Hello Team,

    Kindly treat the above message as important. Your timely guidance can save a lot of time.

    Thank You!! 

    Technical Moderator
    December 1, 2023

    Hello @ggowd.1 

     

    When not using FreeRTOS, the Ethernet interrupt should be disabled and MX_LWIP_Process should be called periodically (in main loop).

    ggowd.1Author
    Visitor II
    December 2, 2023

    Hello @FBL 

     

    Disabled ethernet interrupt and called MX_LWIP_Process periodically (in main loop) but "time out" and "Reply from 192.168.1.10: Destination host unreachable". error is displayed in command prompt. PFA of command prompt error.

    Regards
    Gagan Gowda

    Super User
    December 2, 2023

    @ggowd.1 Unfortunately only examples with FreeRTOS  are provided for this board. Try to build and run these (choose CM7 or CM4 as you need). At least, get to the state of working ping. Then try to "remove"  FreeRTOS.

    https://github.com/stm32-hotspot/STM32H7-LwIP-Examples/tree/main/STM32H745_Disco_M7_ETH

    https://github.com/stm32-hotspot/STM32H7-LwIP-Examples/tree/main/STM32H745_Disco_M4_ETH

    With or without interrupt is not a principal question, even without RTOS you can use the ETH interrupt.