Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
824 Views

BeMicro SDK Simple Socket Server example problem semaphore

Hi, 

I'm using the Arrow BeMicro SDK and we develop our application based on the Simple Socket Server example. We now need to port our application from SUPERLOOP to MicroC/OS-II version. While in DEBUG mode I have isolate that the program fail to create the 20th semaphore in targnios.c. (when I==19 in code below: 

 

 

 

for (i = 0; i < GLOBWAKE_SZ; i++) 

global_TCPwakeup_set.ctick = 0; 

global_tcpwakeup_set.soc_event = NULL; 

global_TCPwakeup_set.semaphore = ossemcreate(0); 

if (!global_tcpwakeup_set.semaphore) 

panic("globwake_semaphore create err");  

 

 

 

ERROR MESSAGE ON JTAG UART: 

 

 

panic: globwake_semaphore create err 

dtrap - needs breakpoint 

 

 

thanks for your help
0 Kudos
1 Reply
Altera_Forum
Honored Contributor I
58 Views

found how to go further (Qsys related). Now I'm at that point : 

 

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 192.168.1.2 

prepped 1 interface, initializing... 

[tse_mac_init] 

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 : 192.168.1.2 

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]: See STDERR (FAULT_LEVEL is SYSTEM). 

[MicroC/OS-II]: FAULT_LEVEL is SYSTEM 

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

[MicroC/OS-II]: Locking scheduler - endless loop.
Reply