Second Ethernet Port

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Second Ethernet Port

1,859 Views
ebio
Contributor II

Does MQX have driver support for LAN9500/LAN7500 or some other means of adding a second Ethernet port to a K64 microcontroller?

0 Kudos
3 Replies

689 Views
soledad
NXP Employee
NXP Employee

Hi eric,

Please check the KSZ8041 PHY. You can modify the driver in the BSP. The files that would require the changes are:

C:\Freescale\Freescale_MQX_4_1\mqx\source\io\enet\phy


Have a great day,
Sol

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

689 Views
mjbcswitzerland
Specialist V

Hi

ENC424J600 may be easier to find support for since it uses SPI rather than USB host; the USB host interface increases complexity, SW and processing overhead but is useful when the Ethernet interface is to be hot-plugged or is a distance of up to a few meters away. SPI is simpler and more efficient for interfaces that are on board.

Also take a look at the Micrel KSZ8863 since it allows two Ethernet ports on the single Ethernet MII (avoiding the need for a second serial interface). It does this with its tail tagging mode allowing the processor to know on which port eachEthernet frame arrived and to control where each frame is sent to:

- either send in switch mode (PHY is operating as a switch with two ports and so sends according to its switch cache)

- send to port 0 only

- send to port 1 only

- send to both port 0 and port 1

The uTasker project supports Micrel SMI and tail tagging mode and thus allows multiple networks and two interfaces on a Kinetis with a single EMAC. Rather than requiring a second Ethernet driver (using SPI etc.) it controls the single EMAC accordingly, which requires only about 20 extra lines of code added to the standard Ethernet driver to achieve.

Regards

Mark

http://www.utasker.com/kinetis.html

690 Views
ebio
Contributor II

Thanks, I'll have to call micrel and get more details.

I guess I'll also look at the Vybrid V30/Cortex M5 parts from Freescale, which appears to have integrated something like the KSZ8863, though there's not much availability.  Must be new.

0 Kudos