Altera_Forum
Honored Contributor
16 years agoProblem in NicheStack TCP/IP
Hi,
I'm trying to implement NicheStack TCP/IP in my project I used the Simple socket server example when the program runs It gives me the log file in the below : The problem is that the program goes into a loop and print this sentence : *** tcp_sleep, OSMutexPost(2) = 4 dtrap - needs breakpoint :confused: so what could be the problem? please help me. log file : nios2-terminal: connected to hardware target using JTAG UART on cable nios2-terminal: "USB-Blaster [USB-0]", device 1, instance 0 nios2-terminal: (Use the IDE stop button or Ctrl-C to terminate) *** tcp_*** uCOS init, can't create global_wakeup_Mutex = 40 dtrap - needs breakpoint =============== Software License Reminder ================ This software project uses an unlicensed version of the NicheStack TCP/IP Network Stack - Nios II Edition. If you want to ship resulting object code in your product, you must purchase a license for this software from Altera. For information go to: "http://www.altera.com/nichestack" ===================================================== Created "Inet main" task (Prio: 2) Created "clock tick" task (Prio: 3) 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:cd:15 prepped 1 interface, initializing... [tse_mac_init] INFO : TSE MAC 0 found at address 0x08002000 INFO : PHY National DP83848C found at PHY address 0x01 of MAC Group[0] INFO : PHY[0.0] - Automatically mapped to tse_mac_device[0] INFO : PHY[0.0] - Restart Auto-Negotiation, checking PHY link... INFO : PHY[0.0] - Auto-Negotiation PASSED INFO : PHY[0.0] - Checking link... INFO : PHY[0.0] - Link established INFO : PHY[0.0] - Speed = 100, Duplex = Full OK, x=1, CMD_CONFIG=0x00000000 MAC post-initialization: CMD_CONFIG=0x04000203 [tse_sgdma_read_init] RX descriptor chain desc (1 depth) created mctest init called IP address of et1 : 192.168.1.234 DHCP timed out, going back to default IP address(es) Simple Socket Server starting up Created "Schools Embedded System Server" task (Prio: 4) [sss_task] Simple Socket Server listening on port 30 *** tcp_sleep, OSMutexPend = 4 dtrap - needs breakpoint *** tcp_sleep, OSMutexPost(2) = 4 dtrap - needs breakpoint *** tcp_wakeup, OSMutexPend = 4 dtrap - needs breakpoint *** tcp_wakeup, OSMutexPost = 4 dtrap - needs breakpoint *** tcp_wakeup, OSMutexPend = 4 dtrap - needs breakpoint *** tcp_sleep, OSMutexPost = 4 dtrap - needs breakpoint *** tcp_sleep, OSMutexPend = 4 dtrap - needs breakpoint *** tcp_sleep, OSMutexPost(2) = 4 dtrap - needs breakpoint *** tcp_wakeup, OSMutexPend = 4 dtrap - needs breakpoint *** tcp_wakeup, OSMutexPost = 4 dtrap - needs breakpoint *** tcp_wakeup, OSMutexPend = 4 dtrap - needs breakpoint *** tcp_sleep, OSMutexPost = 4 dtrap - needs breakpoint *** tcp_sleep, OSMutexPend = 4 dtrap - needs breakpoint nios2-terminal: exiting due to ^C on host