Skip to main content
JYI
Associate II
September 22, 2022
Solved

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

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.
MSG_ST
MSG_STBest answer
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

3 replies

ST 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

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
JYI
JYIAuthor
Associate 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_ST
MSG_STBest answer
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