Forum Discussion
Altera_Forum
Honored Contributor
21 years agoSimple Socket Server problem
Hi All,
I tried to run simple socket server example with full_featured 1S10ES example. However, whenever [after downloading the sof file using Quartus Programmer] I click on [after selecting simple_socket_server_0 in project navigator] Run As --> NIOS Hardware, I get the following message: ************************ nios2-terminal: Warning: The JTAG cable you are using is not supported for Nios nios2-terminal: II systems. You may experience intermittent JTAG communication nios2-terminal: failures with this cable. Please use a USB Blaster revision B nios2-terminal: cable or another supported cable. Please refer to the file nios2-terminal: errata.txt included in the Nios II development kit documents nios2-terminal: directory for more information. nios2-terminal: connected to hardware target using JTAG UART on cable nios2-terminal: "ByteBlasterII [LPT1]", device 1, instance 0 nios2-terminal: (Use the IDE stop button or Ctrl-C to terminate) //My ByteBlaster II cable works fine, so I doubt if that may be a problem// Simple Socket Server starting up Your Ethernet MAC address is 00:07:ed:0a:a5:9e //at this stage seven-seg shows random patterns. But when following messages appear, it gets fixed at "97"// [lwIP]: See STDERR for expanded diagnosis translation. [lwIP]: [init_done_func] Fatal: lwip_devices_init failed, perhaps ethernet inter face. [lwIP]: ERRNO: : [lwIP]: See STDERR (FAULT_LEVEL is SYSTEM). [lwIP]: FAULT_LEVEL is SYSTEM. [lwIP]: FATAL Error, Restart required. [lwIP]: Locking scheduler - endless loop. ************************************** Also, as asked in the above messages, where do I see STDERR?5 Replies
- Altera_Forum
Honored Contributor
Hi,
usually, the jtag_uart is used for stdin, stdout and stderr. Refer to the system library settings in your project properties (IDE). The error, you get, is caused during the excecution of lwip_devices_init(...). You can find this function in alt_lwip_dev.c May be, you should check the processing of this function to determine the cause of the error! - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by vizziee@Aug 26 2005, 09:22 AM [lwip]: [init_done_func] fatal: lwip_devices_init failed, perhaps ethernet interface.
[lwip]: errno: :
[lwip]: see stderr (fault_level is system).
[lwip]: fault_level is system.
[lwip]: fatal error, restart required.
[lwip]: locking scheduler - endless loop. --- Quote End --- Hey Did you install the Updated Ethernet Driver for NIOS which i think comes with the socket code. I had the same issue on my 1s10 STDERR needs to be set to jtag_uart (same as STDOUT) regards Pavan
- Altera_Forum
Honored Contributor
Make sure, you did not change the name of the lan-adapter in your SOPC-Builder system. Easiest way to keep things running is to leave your network-adapter named lan91c111.
- Altera_Forum
Honored Contributor
<div class='quotetop'>QUOTE </div>
--- Quote Start --- Did you install the Updated Ethernet Driver for NIOS which i think comes with the socket code.[/b] --- Quote End --- But from where do I get this? - Altera_Forum
Honored Contributor
hmm, I had something similar. But then I noticed, I had forgotten to check under properties system library for software components: add software. IP.. have look at the light_weight_ip tutorial.pdf.
'hope I could help you.