Skip to main content
dungeonlords789
Associate III
February 23, 2022
Question

MX_ETH_Init() fails on MB1137 board.

Default firmware for MB1137 doesn't start. I use Cube IDE 1.8 with 1.16.2

MX_ETH_Init() fails firmware to Error_Handler().

See also.

This topic has been closed for replies.

2 replies

JP_ama
Associate III
March 2, 2022

Most probably it's because there is no ethernet cable connected at startup. I'm having the same issue with a NUCLEO-F439ZI board. Apparently this hasn't been fixed in years.

Also see: https://community.st.com/s/question/0D50X00009XkXobSAF/ethernet-driver-initialization-fails-when-no-link-is-present-at-startup

Bob S
Super User
March 2, 2022

Also verify the PHY config data. In CubeMX view the ETH peripheral, then click on "Advanced parameters". I've had instances where the mask values were wrong for the LAN8742**. Specifically the status reg offset (0x1f), speed and duplex masks (0x0004 and 0x0010, respectively) and link down interrupt (0x0010).

** Looks like CubeMX 6.3.0 sets these incorrectly when starting with the NUCLEOF746 board