Forum Discussion
Altera_Forum
Honored Contributor
15 years agoHello 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