Skip to main content
RB R.1
Associate
Feb 22, 2023 7:01 AM UTC
Question

We are using LAN8742A with an STM32F429 microcontroller. Ping is not happening. it showing destination host unreachable. Same hardware design and software code is working with Eval-Board STM32F7058-DK. Need some clue for where to look for errors.

I have check the REF_CLK_OUT, CLK_IN, and MDC. This is same in both the boards

    This topic has been closed for replies.

    5 replies

    LCE
    Principal III
    Feb 22, 2023 7:18 AM UTC

    Well, then go on and check all the pins, at least comparing schematics.

    Crystal / clocks really working and at the correct frequencies?

    RB R.1
    RB R.1Author
    Associate
    Feb 22, 2023 9:34 AM UTC

    We cross-verified the schematic with respect to Eval-Board and it is similar as well.

    Am using a single 25MHZ OSC for both PHY and microcontroller and am getting 50MHZ at reference clock out(PHY)

    LCE
    Principal III
    Feb 22, 2023 9:52 AM UTC

    Okay.

    Above you write that you are using now a F429, but code is running on a STM32F7058-DK.

    That looks like a different CPU... Maybe you cannot directly takeover the ETH stuff from F7 to F4 ?

    And don't trust CubeMX to do that work for you...

    RB R.1
    RB R.1Author
    Associate
    Feb 22, 2023 10:06 AM UTC

    Can I get the support to work with F429?

    LCE
    Principal III
    Feb 22, 2023 10:32 AM UTC

    What do you mean with that?

    Grab the F429 and F750 reference manuals and compare the ethernet registers.

    If you are using CubeMX, create sources for both controllers and compare.

    And check your versions of... everything. There were some big HAL changes concerning ETH over the last 2 years.

    Concerning F7, the HAL ETH had one big bug in the reading of the LAN7842 status register (wrong register, must check # 31) concerning auto-negotiation and speed / duplex settings.