Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
12408 Discussions

Simple Socket Server example ---> Failed to create semaphore

Honored Contributor II



I am using the Simple Socket Server example. My application was working OK with SUPERLOOP but now I need multi threads so I need to make my application works with the OS so I started with the example. I tried with my first project with only one UART and it is working. The program is not able to create the semaphore because the memory looks not empty I think : 


SSSLEDLightshowSem = OSSemCreate(1); 



if (!SSSLEDLightshowSem) 


"Failed to create SSSLEDLightshowSem.\n"); 



since then i have the info below coming out of the jtag uart. 


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:01:23:45 

Static IP Address is 

prepped 1 interface, initializing... 


INFO : TSE MAC 0 found at address 0x05000800 

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 

MARVELL : Mode changed to RGMII/Modified MII to Copper mode 

MARVELL : Enable RGMII Timing Control 

MARVELL : PHY reset 

INFO : PHY[0.0] - Checking link... 

INFO : PHY[0.0] - Link not yet established, restart auto-negotiation... 

INFO : PHY[0.0] - Restart Auto-Negotiation, checking PHY link... 

INFO : PHY[0.0] - Auto-Negotiation PASSED 

INFO : PHY[0.0] - Link established 

INFO : PHY[0.0] - Speed = 10, Duplex = Full 

OK, x=12, CMD_CONFIG=0x00000000 


MAC post-initialization: CMD_CONFIG=0x06000203 

[tse_sgdma_read_init] RX descriptor chain desc (1 depth) created 

mctest init called 

IP address of et1 : 

Created "Inet main" task (Prio: 2) 

Created "clock tick" task (Prio: 3) 


Simple Socket Server starting up 

[sss_handle_receive] reset connection 

[sss_task] Simple Socket Server listening on port 3000 

Created "simple socket server" task (Prio: 4) 


[MicroC/OS-II]: See STDERR for expanded diagnosis translation. 

[MicroC/OS-II]: Expanded Diagnosis: Failed to create SSSLEDLightshowSem. 



[MicroC/OS-II]: FATAL Error, Restart required. 

[MicroC/OS-II]: Locking scheduler - endless loop.
0 Kudos
0 Replies