Skip to main content
dungeonlords789
Associate III
Feb 23, 2022 11:14 AM UTC
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
Mar 2, 2022 11:36 AM UTC

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
Mar 2, 2022 8:52 PM UTC

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