2017-01-16 07:08 PM
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?
2017-01-16 07:57 PM
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
2017-01-17 01:46 PM
You can suspend an Ethernet port., then switch to another port.
2017-01-17 05:49 PM
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.
2017-01-17 06:19 PM
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?