Skip to main content
Associate II
March 24, 2026
Solved

Very slow Ethernet connection on ETH1

  • March 24, 2026
  • 1 reply
  • 341 views

We have some devices based on STM32MP257 SoCs that connect to a 100 Mbit Ethernet network via ETH1, where ETH1 is going straight to an RMII PHY. Pins for ETH2 are reserved, but are not used/not connected. Some of our devices work rock-solid as excepted, but others exhibit massive performance problems on the Ethernet connection.

After lots of research, we think that our devices are affected by a silicon bug described in errata sheet ES ES0598 as "ETH1 RMII mode could have CRC errors". Our chip revisions are all rev Y, which are affected by the issue. The errata says that ETH1 should be routed through ETHSW to work around the silicon bug. To test if the workaround works for our case, I've tried to enable ETHSW, but failed so far because STM32CubeMX forces me to free some pins before it allows me to enable ETHSW in RMII mode. It seems like ETH1 and ETH3 must be used together if ETHSW is enabled, the pins for ETH3, however, are already used for other hardware functions.

So, my goal is to

- enable ETHSW in RMII mode,
- route ETH1 through ETHSW to work around the silicon bug,
- use the same set of pins as used by ETH1 in direct mode,
- don't use ETH3 (ETH2 would be OK, though), and
- keep all other pins unaffected by this change.

Is this possible at all?

Best answer by Erwan SZYMANSKI

Hello @rtie ,
The good point is that pin-out is not impacted by the use of switch or not, it is fully transparent for you.

Concerning the low power question, the consumption will not be impacted so much, but the low power sequence is a bit less straight forward than the standard RMII case.

Depending on your timing constraints, what I would suggest is to wait for the next STM32MP2 cut that solves the RMII HW issue, that will be released soon. It will be easier than modifying all your soft for a temporary modification. By the way, even if you face some ETH1 RMII CRC issue, you can still prototype your product with it (it will generate some TCP retries or UDP packet lost maybe), but that will disappear with the new cut. With this way, you will be able to test without trouble the low power mode you want to reach and more.

Kind regards,
Erwan.

[Edit: you can already command the new MP2 cut]

1 reply

Erwan SZYMANSKI
Technical Moderator
March 30, 2026

Hello @rtie ,
Yes you can absolutely do it, this is the typical workaround for this issue.

This X-LINUX-TSNSWCH will give you all the necessary stuff to make the switch working. Then, some words about the switch configuration on this article.

The goal is simple, you need to use the newly created switch interface as if you had a single ETH1 one.
You will see that the X-LINUX package brings a lot of services and script including TSN stuff. In your case, you are free to not use them at all and only keep the part dealing with the switch driver build, deploy and start.

In summary, the switch part is quite simple:

Kind regards,
Erwan.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
rtieAuthor
Associate II
April 13, 2026

Hi,

thank you for your answer, and sorry for my late reply.

I've tried to configure the system as suggested, but didn't succeed because STM32CubeMX doesn't allow me to. We have hardware that was designed to use the pins assigned to ETH1 and ETH2 in RMII mode without ETHSW in the way. Now we'd like to try the ETHSW workaround, but without changing the pin assignment. It would be best if ETHSW could be enabled transparently. Is this possible or does enabling ETHSW imply a hardware change?

Can you tell us something about the impact on power consumption when enabling ETHSW? We need to implement a network standby mode and make sure our device doesn't exceed a certain power budget. If ETHSW is known to cause a significant increase of power consumption, we might not be able to use it and would need a hardware revision anyway.

Erwan SZYMANSKI
Erwan SZYMANSKIBest answer
Technical Moderator
April 15, 2026

Hello @rtie ,
The good point is that pin-out is not impacted by the use of switch or not, it is fully transparent for you.

Concerning the low power question, the consumption will not be impacted so much, but the low power sequence is a bit less straight forward than the standard RMII case.

Depending on your timing constraints, what I would suggest is to wait for the next STM32MP2 cut that solves the RMII HW issue, that will be released soon. It will be easier than modifying all your soft for a temporary modification. By the way, even if you face some ETH1 RMII CRC issue, you can still prototype your product with it (it will generate some TCP retries or UDP packet lost maybe), but that will disappear with the new cut. With this way, you will be able to test without trouble the low power mode you want to reach and more.

Kind regards,
Erwan.

[Edit: you can already command the new MP2 cut]

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.