Skip to main content
Visitor II
September 22, 2022
Solved

No eth.c/eth.h generated by stm32cubeide for STM32H723.

  • September 22, 2022
  • 3 replies
  • 1394 views

using STM32CubeIDE, the ETH and LWIP are enabled, but no init file eth.c generated.

The main.c includes MX_LWIP_Init(), but not MX_ETH_Init().

Is it right?

Thanks.

JYI

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

    Hi,

    Yes, when enabling ETH & LwIP; MX_ETH_Init is not generated and the IP initialization is done under low_level_init function in ethernetif.c file.

    And when enabling ETH without enabling LwIP, MX_ETH_Init function and eth.c file are generated.

    Thank you for your feedback.

    Regards

    Mahdy

    3 replies

    Technical Moderator
    September 23, 2022

    Hello @Community member​ ,

    Which CubeIDE, CubeMx version used ?

    If possible to share you ioc file, this will help us to understand the issue.

    Imen

    JYIAuthor
    Visitor II
    September 23, 2022

    STM32CubeIDE

    Version: 1.10.1

    Build: 12716_20220707_0928 (UTC)

    OS: Windows 11, v.10.0, x86_64 / win32

    Firmware: STM32Cube FW_H7 V1.10.0

    Thanks.

    JYI

    MSG_STAnswer
    ST Employee
    December 8, 2022

    Hi,

    Yes, when enabling ETH & LwIP; MX_ETH_Init is not generated and the IP initialization is done under low_level_init function in ethernetif.c file.

    And when enabling ETH without enabling LwIP, MX_ETH_Init function and eth.c file are generated.

    Thank you for your feedback.

    Regards

    Mahdy