cancel
Showing results for 
Search instead for 
Did you mean: 

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.

RB R.1
Associate II

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

5 REPLIES 5
LCE
Principal

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
Associate II

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)

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
Associate II

Can I get the support to work with F429?

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.