AnsweredAssumed Answered

STM32cube 4.14 Ethernet link status INT not working

Question asked by Gilles on May 11, 2016
Latest reply on Oct 7, 2016 by STM32Cube-T

I would like to report a possible bug in the library generated by STM32Cube FW_F4 V1.11.0. I experience the problem for the evaluation board STM3240G-EVAL and when choosing directly the STM32F407IGHx chip.

The bug stands in a define in file stm32f4xx_hal_conf.h:
#define PHY_MICR_INT_EN                 ((uint16_t)0x0002U)  /*!< PHY Enable interrupts                           */
#define PHY_MICR_INT_OE                 ((uint16_t)0x0002U)  /*!< PHY Enable output interrupt events              */

Whereas it should be:
#define PHY_MICR_INT_OE                 ((uint16_t)0x0001U)

In the ETH configuration/Advanced parameters panel of STM32cube, the PHY enable output interrupt events is although set to 0x0001 but the generated file does not match.

Because of this the interrupt is not outputed by the PHY when the ethernet cable is plugged/unplugged.

edit: it seems that PHY_MICR_INT_OE takes the same value as PHY_MICR_INT_EN because modifying the PHY enable interrupts parameter sets the value to both defines.