TI E2E Community
How to use two network interface simultaneously?
Anybody answer my question?thanks very much!
Are you using the MCSDK? If so, which version?
Do you need to run NDK in your application on multiple cores, with each core using one EMAC port? Or only run NDK on one core but use two EMAC ports?
Thank you for your help!
I have not use the MCSDK at present, just use one core,but use two EMAC prots, I think i will use multicore in the future,one core control one EMAC port.
Ok,I was wondering about the MCSDK because the C6472 Ethernet driver was updated in the MCSDK, and so is newer and slightly different than the versions of the Ethernet drivers that shipped in NDK 2.0 and 2.01.
Anyway, I think what you need to do is use the NIMU APIs to register the second Ethernet port. Do you know if it is the same PHY for both ports on that board? If so, you should be able to just repeat what the driver code does for the first Ethernet port, but update the code to use the 2nd Ethernet port's MAC address and also register it with NIMU as a different interface. You should see somewhere in the driver code an initalization function where the NIMURegister() function is called where that's being done.
Furthermore, as another example of how to register another device with NIMU, you could look at the code for VLAN (virtual LAN), found in the stack source vlan.c).
The function VLANAddDevice() allocates a new NETIF_DEVICE and registers it with NIMU. That device is then used when sending and receiving data over the VLAN device.
Lastly, you can find more info on NIMU in the NDK API Reference Guide.
Thank you !
I will try it in this way!
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.