BF527 eazykit. VisualDsp++ 5.10
App is created using lwip application template
I have an application which accepts tcp connections on a bf527 side.
Data excahange goes fine goes fine until connection closes.
I get a kernel panic:
Assertion "recv_tcp: recv for wrong pcb!" failed at line 225 in C:\Program Files\Analog Devices\VisualDSP 5.0\Blackfin\lib\src\lwip\src\api\api_msg.c
Debugger trace is pointing to TCP_EVENT_CLOSE(pcb,err) at line 382 of VisualDSP 5.0/Blackfin/lib/src/lwip/src/core/tcp_in.c
Connection seems to be in TIMED_WAIT state and recv_flags == 0x20
Alltogether is a bit odd code at line ~206 should have detected the packet destined for that connection and returned.
Are there any known problems or possibly race condition caused by just using debugger? <I do not have breakpoints enabled, load and free run>
Appreciate your thoughts in advance,