cancel
Showing results for 
Search instead for 
Did you mean: 

STM32cube 4.14 Ethernet link status INT not working

gilles
Associate
Posted on May 11, 2016 at 17:12

Hello,

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.

Cheers,

Gilles
2 REPLIES 2
Walid FTITI_O
Senior II
Posted on May 13, 2016 at 12:31

Hi Gilles,

I report this tou our CubeMx team. Thanks for the feedback.

-Hannibal-

stm32cube-t
Senior III
Posted on October 07, 2016 at 17:57

Dear user,

This issue is now fixed.