Skip to main content
Visitor II
August 17, 2021
Question

Ethernet design requirement with STM32H755

  • August 17, 2021
  • 2 replies
  • 3131 views

Dear Experts,

We have a design with STM32H755 having 3 Ethernet ports. Out of which 1 is over RMII controller the other two are over SPI interface.

My queries are as follows,

1. We want to run all 3 three Ethernets at the same time, How to handle this software?

2. Can LwIP handle the 3 Ethernets stack at the same time?

3. Any suggestions to breakout and utilize both cores (M7, M4) at the same time?

4. Any suggestions for the Ethernet to SPI controllers which can be interfaced with this chip?

I'm hoping to get better inputs from the experts as I'm new to this platform.

Thanks

    This topic has been closed for replies.

    2 replies

    Graduate II
    August 17, 2021

    The platform is likely to get swamped.

    This type of implementation typically uses an Embedded Linux Platform.

    A secondary alternative would be to use a programmable switch, managed by the STM32

    As the complexity rises you probably want to consider commercial TCP/IP stacks. Something with some rigor would be needed for military, aerospace or health applications. Green Hills Software offer a particularly robust implementation.

    MK.111Author
    Visitor II
    August 17, 2021

    Hi Tesla DeLorean,

    Glad to see your quick inputs.

    ​​

    1. Does this chipset supports Embedded Linux or FreeRTOS? Any reference or helpful links please?

    2. The requirement is to realise the Ethernet one with RMII and other 2 with SPI interface. So the managed switch is eliminated here.

    ​​

    -Thanks​

    Graduate II
    August 17, 2021

    The STM32MP1 is ST's Embedded Linux platform.

    The H7 could probably run uCLinux, although I'm generally of the opinion this is a half-baked approach, and running full Embedded Linux on an appropriate platform, with an active development community and team is the way to go, everything else is a heavy lift.

    Super User
    August 17, 2021
    1. Like having any other peripherals work at the same time. This is exactly your job to design.
    2. Yes. LwIP supports multiple interfaces.
    3. Perhaps one core will be able to manage all interfaces (with proper design), LwIP running on this core as well.
    4. With a multiport switch such as Microchip KZ series, you can operate all three ports over the built-in ethernet controller alone. These switches can send a packet out of specific port and redirect incoming packets from all ports to the controller.

    --pa

    MK.111Author
    Visitor II
    August 17, 2021

    Hi Pavel A,

    Glad to see your quick inputs.

    ​​

    1. My doubt is about which platform supports this? Freertos or Embedded Linux or any?

    4. The requirement is to realise the Ethernet one with RMII and other 2 with SPI interface. So the managed switch is eliminated here. Any Ethernet to SPI chips which can be ported on STM32H755?

    ​​

    -Thanks​

    Graduate II
    August 17, 2021

    SPI functions in materially the same way on STM32 as anywhere else. You'll just need to port the driver code, and tune the hardware interfacing code to use the STM32 peripheral implementation.