cancel
Showing results for 
Search instead for 
Did you mean: 

MX_ETH_Init() fails on MB1137 board.

dungeonlords789
Senior III

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.

2 REPLIES 2
JP_ama
Associate III

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
Principal

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