Skip to main content
FBrow
Associate II
December 3, 2019
Solved

STM32F767ZI project will run at 100Mbit Ethernet, but not 10Mbit

  • December 3, 2019
  • 2 replies
  • 1920 views

I have a project that runs at 100Mbit, but when I try to connect to a 10Mbit hub, it cannot connect.

Any ideas where to look (clocks, MAC, etc)?

Thanks

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

Check if the PHY link status register and bits are correct for your actual PHY chip. There are lots of ST code, where these are wrong.

And ST's link status code is not thread-safe, if it exists at all in your code.

2 replies

waclawek.jan
Super User
December 3, 2019

PHY

then ETH_MACCR.FES

If it's really a HUB, you probably don't want to use autonegotiation. I'm not sure about how collisions are handled correctly.

Honestly I don't think there's much expertize out there with operating the STM32 with 10MHz hubs.

JW

FBrow
FBrowAuthor
Associate II
December 4, 2019

The problem is that on the Nucleo-F767ZI board, the ST demo code works at both 100Mb and 10 Mb but the Mbed code only works at 100Mb. The code to set it up is mostly the same calls to set up the hardware...

Piranha
PiranhaBest answer
Principal III
December 4, 2019

Check if the PHY link status register and bits are correct for your actual PHY chip. There are lots of ST code, where these are wrong.

And ST's link status code is not thread-safe, if it exists at all in your code.

FBrow
FBrowAuthor
Associate II
December 4, 2019

The problem is that on the Nucleo-F767ZI board, the ST demo code works at 10 Mb but the Mbed code only works at 100Mb. The code to set it up is mostly the same calls to set up the hardware...

So I am looking at the RMII Ref clock to see if it is 50 MHz as the manual says.

Piranha
Principal III
December 4, 2019

Well, then that's the Mbed code problem. Still my advice is the same - debug and look at what speed and duplex mode it configures in MAC registers.

Is autonegotiation turned on?