Tool/software: Code Composer Studio
TMS320C6657 as a client and PC or other development board as a server to send and receive TCP data, currently want to send data at 10ms / frame speed, and can receive data at any time. So I create a 10ms period timer and an Ethernet Receives Interrupt which interrupt number is 99.
However, each time the DSP runs the send function, the DSP enters the Ethernet receive interrupt when the other side does not send a data packet (in the case of TCP,other will not happen), and it will enter multiple times. But after running the recvnc function, it does not receive any data and returns -1.
Also, when the recvnc function does not receive data, it will run for a long time(about 0.7s).
the send function and the recvnc function is ndk Library Functions,ndk version number is ndk_2_24_03_35.
1.Is there any way to solve the problem of TCP error triggering EMAC reception interrupt?
2.Is there any way to solve the problem that the recvnc function runs slow when it does not receive data?