Forum Discussion
15 Replies
- Altera_Forum
Honored Contributor
- Altera_Forum
Honored Contributor
Hello Cris and Red_alert,
I am also trying to achieve what you already have: to build a simple system with two Ethernet ports... I build the system and program it on the Altera DE4 board. For the software, I use the Simple Socket Server template in Nios II (involving NicheStack and MicroC/OS II). When I check the alt_sys_init() function, ALTERA_AVALON_SGDMA_INIT is called four times (for the four SGDMAs) and TRIPLE_SPEED_ETHERNET_INIT twice (for two TSEs). It seems that the template automatically generates the calls to these function calls, using the SOPCINFO file. When I run the code, I get the error -22. The problem occurs in the 2nd TRIPLE_SPEED_ETHERNET_INIT() call, where "the pointer to the alt_tse_system_info structure from the global array" "could not be found". The error is explained to be "ran out of other queue-able resource" in ipport.h sourcecode. Do you know if this is a pure System problem? Does it mean that I need to increase the memory size in my system? Or, could it be a software error, since I did not make any changes to the template. As far as I understand, the template can initialize all the ethernet ports (up to 4 ports), without any change. Thank you very much, Kind regards, Turhan - Altera_Forum
Honored Contributor
Sorry for the double post =(
Here is the error I see in the NIOS II Console:InterNiche Portable TCP/IP, v3.1 Copyright 1996-2008 by InterNiche Technologies. All rights reserved. prep_tse_mac 0 Your Ethernet MAC address is 00:07:ed:ff:ed:15 prepped 2 interfaces, initializing... Error opening TX SGDMA init error -22 on net mctest init called IP address of : 0.0.0.0 dtrap - needs breakpoint dtrap - needs breakpoint Error sending DHCP packet on iface 1. ip_exit: calling func 0x509af00 netclose: closing iface Altera TSE MAC ethernet ip_exit: calling func 0x50a2da4 - Altera_Forum
Honored Contributor
Dear All,
I am also trying to make a Nios II Ethernet application with two Ethernet interface. Please tell me what all components shall I include in Qsys and how to set the network parameters for two Ethernet interfaces. I wish to assign network settings statically (I will be not using DHCP for setting network parameters). Waiting for reply............. - Altera_Forum
Honored Contributor
I believe this old thread already explains most of the stuff. Please specify what you need or what you didn't understand.