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.

RM57L843: lwIP minimal implementation, tcp_active_pcbs = NULL

Part Number: RM57L843
Other Parts Discussed in Thread: HALCOGEN

Hello Everyone,

I've got the following problem. I tried to implement this project, and it went all well, did everything according to the things written here, just switched DHCP to static IP.  But it doesn't want to work.

I debugged it to the - I guess - source of the problem. I tried to send with NCat a TCP packet and inspect it with Wireshark. The packet goes out, the Hercules receives it, but sends a RST back. The debugging goes all well till the tcp_in.c file, and in the tcp_input() function, as it reaches the "Demultiplex an incoming segment. First, we check if it is destined for an active connection" part and gets to the for loop, it jumps to other check parts, but it finds no active PCBs, as they are all NULL pointers, even the tcp_active_pcbs variable.

Same when it advances to the "If it did not go to an active connection, we check the connections in the TIME-WAIT state" part, tcp_tw_pcbs are NULL pointers, too, etc... I'm using rawAPI.

UPDATE: just tested, same the situation with the UDP, too.

What can cause the problem?

Thanks for your answer in advance.

Regards,

Zsolt