Skip to main content
FBrow
Associate II
Dec 3, 2019 4:37 PM UTC
Solved

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

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.
Piranha
PiranhaBest answer
Principal III
Dec 4, 2019 2:11 PM UTC

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.

6 replies

waclawek.jan
Super User
Dec 3, 2019 4:39 PM UTC

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
Dec 4, 2019 6:40 PM UTC

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
Dec 4, 2019 2:11 PM UTC

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
Dec 4, 2019 6:38 PM UTC

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
Dec 4, 2019 7:05 PM UTC

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?