cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F4 how to support two network interface

Tai.Cheng Chung
Associate II
Posted on January 17, 2017 at 04:08

Hi:

I use STM32F4 series and it works OK for one network PHY (using LwIP). As I know the F4 MAC interface can read/write  more than one PHY's. However only one set of MII/RMII interface pins and MAC hardware, imply at most one PHY can be used in a project. How to extend hardware to generate two or more network path? Do I have any solution other than using ethernet controller?    

4 REPLIES 4
Posted on January 17, 2017 at 04:57

I Googled 'RMII Switch'

Not a specific recommendation, just a suggestion about where to start looking

http://ww1.microchip.com/downloads/en/DeviceDoc/60001308B.pdf

 
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
T J
Lead
Posted on January 17, 2017 at 22:46

You can suspend an Ethernet port., then switch to another port.

T J
Lead
Posted on January 18, 2017 at 02:49

I am out of my depth in software, but I think that both of the external Ethernet ports would maintain their own stack.

Much as a class has its processes and storage. It is up to the primary application to monitor both ports.

Sorry, you wouldn't suspend physical ports. it was a different application of physically switching the port to another connector on the PCB.

Posted on January 18, 2017 at 02:19

Can you explain more detail. Should I first select an RMII switch, as Clive suggested. Then I suspend Ethernet port and switch to another port to process TCP/IP socket? Then suspend current port and switch back to original port and process TCP/IP socket?