Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12622 Discussions

How to manage two Ethernet MACs?

Altera_Forum
Honored Contributor II
1,107 Views

Hi 

I need to implementent a system with 2 Ethernet MAC on a Cyclone III devboard. The two MAC must work in different ways: 

- eth1 : use the iNiche stack and connects to my client application 

- eth2 : is used by an EtherCAT master, so only needs to send/recv raw packets with no TCP/IP layers. 

I used the sopc builder to create my system, loaded it and the two eth interfaces seems to initialize and work correctly at the hw level.  

The problem is that nichestack tries to initialize any net interface it finds and the Nios application gets stuck. 

Can anyone experienced in Nios programming suggest me how to restrict Nichestack to use only eth1? And possibly how to initialize eth2 for raw packet send/recv? 

 

Thank you in advance
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
400 Views

I eventually solved the above problem. 

If anyone has a similar issue, I can give a few hints.
0 Kudos
Altera_Forum
Honored Contributor II
400 Views

Hello Seilaser 

 

 

--- Quote Start ---  

I eventually solved the above problem. 

If anyone has a similar issue, I can give a few hints. 

--- Quote End ---  

 

 

I need to use EtherCAT interface in DE2-115, am new to this. 

 

Am little confused between EtherCAT and Ethernet MACs. Can you refer me some examples of EtherCAT implementation which will be very helpful. 

 

thanks, 

vrv.
0 Kudos
Altera_Forum
Honored Contributor II
400 Views

 

--- Quote Start ---  

I eventually solved the above problem. 

If anyone has a similar issue, I can give a few hints. 

--- Quote End ---  

 

 

 

Hi, Were you ale to use the TSE IP core for Ethercat master? How is the performance?
0 Kudos
Reply