赛灵思
直播中

黎桂珍

7年用户 165经验值
私信 关注
[问答]

服务器被阻止,并没有反映连接

嗨伙计:
我在sparton3e入门套件板上的EDK9.2中设计了一个带lwip3.0的服务器。
执行后,它只是在“lwip_accepte()”的表达时被阻止。
我尝试了许多方法来连接它,如telnet,web浏览器和java中的程序。
但服务器对我的工作没有任何作用。
该怎么办?
我尝试用gdb调试它,但它只是停在那一点。
我该如何调试问题?
顺便问一下,有没有像webserve或者echo服务器这样的sparton3s500e入门套件板的例子?我所得到的所有例子都无法在我的威廉希尔官方网站 板上执行。
谁能给我一个设计?
提前谢谢。消息由nkzhangzx编辑于04-23-2008 01:49 AMMessage由nkzhangzx编辑于04-23-2008 01:52 AM

以上来自于谷歌翻译


以下为原文

Hi folks:    I have designed a server with lwip3.0 in EDK9.2 on sparton3e starter kit board. After executed, it is just blocked at the expretion of "lwip_accepte()". I have tried many methods to connect to it such as telnet, web brower and a program in java. But the server does nothing to my work.     What should I do with the problem? I try to debug it with gdb, but it just stop at that point. How can I debug the problem?     By the way, are there any examples such as a webserve or a echo server for sparton3s500e starter kit board? None of the examples I have got can't execute on my board. Could anyone give me a design?      Thank you in advance.

Message Edited by nkzhangzx on 04-23-2008 01:49 AM

Message Edited by nkzhangzx on 04-23-2008 01:52 AM

回帖(1)

杨兢兢

2019-5-16 08:54:35
我有类似的问题;
我的设计基于Memec板的AvNet示例。
董事会很好地回应了ping,没有http连接或其他任何东西。
它也陷入了接受连接的困境。
我在软件平台配置中打开了lwip的调试选项,并在收到数据包时发现错误:它无法创建信号量 - 显然我没有在xilkernel配置中设置足够高的值。
您应该检查在xilkernel配置中是否有足够的信号量,定时器和内存集。

以上来自于谷歌翻译


以下为原文

I had a similar problem; based my design on AvNet example for Memec board. The board responded to ping very well, no http connection or anything else though. It also got stuck at accepting connections.
I  turned on the debug options for lwip in software platform configuration and noticed an error when receiving packets: it couldn't create a semaphore - apparently I haven't set the value high enough in xilkernel configuration.
You should probably check if you have enough semaphores, timers and memory set in xilkernel configuration.
举报

更多回帖

发帖
×
20
完善资料,
赚取积分