Skip to main content
Visitor II
December 16, 2023
Solved

STM32H7 + LAN8742: both ETH leds blink every 2 seconds

  • December 16, 2023
  • 5 replies
  • 3095 views

Hello, 

I am working with a STM32H743 with RTOS and LWIP, using LAN8742 as PHY. I have developed a custom board with this setup and it has been working very well.

Now, after almost an year, the new production lot does not work anymore: when the firmware starts, the 2 leds connected to the RJ45 plug blink simultaneously. The producer assured me that he used the same components, only the PCB has been produced in a different lot, same master.

I tried to handle the nRST pin by software, delaying its assertion as descripted in the LAN8742 datasheet but it's no use. With the "old" boards that pin was left high for the whole time, no need of hardware reset via that pin.

 

Is there a logic table that describes what the actual LED meaning is? I think they are showing some kind of error state but can't figure out which.

Big thanks in advance!

 

 

    This topic has been closed for replies.
    Best answer by ValerioF

    Hello,

    We discovered that R101 connected to RBIAS pin of the driver WAS NOT 12K ohm. As soon as we placed the correct resistor, it started working as inteded.

    In the datasheet it does not say anything particular in case that resistor is not the correct value.

     

    Thanks anyway for the help!

    5 replies

    Super User
    December 16, 2023

    The datasheet does not mention any LEDs blinking pattern that indicates any error condition (besides of usual link activity). So it looks like repeating reset.

    ValerioFAuthor
    Visitor II
    December 18, 2023

    Hello Pavel, 

    thanks for the tip.

    What could cause the reset?

    Super User
    December 19, 2023

    It's hard to tell... perhaps something overloads or shorts? What is the frequency of these blinks? Does the MCU keep running?

     

    ValerioFAuthor
    Visitor II
    December 19, 2023

    Yes, the MCU keeps running.

    An update: even if the MCU is never been flashed (new board) the LEDs blinks on/off (50% duty cycle) with 4 second period, 2 secs on, 2 secs off.

    AND

    a very low noise can be heard form the board.

     

    I will check the 3v3

    ValerioFAuthorAnswer
    Visitor II
    December 21, 2023

    Hello,

    We discovered that R101 connected to RBIAS pin of the driver WAS NOT 12K ohm. As soon as we placed the correct resistor, it started working as inteded.

    In the datasheet it does not say anything particular in case that resistor is not the correct value.

     

    Thanks anyway for the help!