This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Startware 中 enet_echo例程的进一步开发,请工程师们帮忙分析下我解决不了的两个问题,万分感谢。

如题,最近在使用Startware 中 enet_echo例程。我配置静态IP,能够成功运行例程,上位机给DSP发送什么DSP就能返回什么。

在此基础上,我还想主动向上位机发送数据,仿照例程写了这么一段发送函数:

pcb = tcp_new();
pcb = tcp_listen(pcb);
tcp_arg(pcb, pcb);
tcp_write(pcb, mydata1, 248 , TCP_WRITE_FLAG_COPY);
tcp_output(pcb);

没能发送出去。

我又想到了通过主动触发接收中断的方式,将数据发送出去,但是发现接收中断服务函数一直在进行,单步执行到最后,都没找到这个接收中断被触发的标志位。

工程师们能否给些意见呢,万分感谢!