Other Parts Discussed in Thread: HALCOGEN
We have a product where we use lwip 1.4.1, the implementation is based on the lwip demo project. We do not use EMAC interrupts for receiveing and transmitting data. All EMAC communication are polled, and all stack usage all happens in the same context (our main loop). We also do not run any os on the target.
We have a use case which produces an error in the stack. Now this problem might not be the stack or the hdkif port, but we are trying to find the culprit.
Here is a part of the receiving ( hdkif_rx_inthandler() code from hdkif.c.
/* Adjust the link statistics */ LINK_STATS_INC(link.recv); /* Process the packet */ if(ethernet_input((struct pbuf *)q, netif) != ERR_OK) { /* Adjust the link statistics */ LINK_STATS_INC(link.memerr); LINK_STATS_INC(link.drop); }