Re: [lwip-users] LWIP RAW API tcpip_callback()

2017-05-17 Thread goldsi...@gmx.de
Werner Motz wrote: Unfortunatelly I still have link errors and I cannot find a docu in the wiki about it. Link DROP1264 ERR 1264 Search for "LINK_STATS_INC(link.drop);" in your project. That stats are netif driver specific, we cannot help you there. It could just be

Re: [lwip-users] LWIP RAW API tcpip_callback()

2017-05-17 Thread goldsi...@gmx.de
Werner Motz wrote: Really (and not meant in an offensive way!), I'm with Dirk thinking you need someone teaching you lessons on embedded programming. Or you need to pay someone programming your devices if this is about devices you want to sell... ---> Serious? Yes! I can put bricks on bricks

Re: [lwip-users] LWIP RAW API tcpip_callback()

2017-05-17 Thread Werner Motz
Hello, by changing MEM_SIZE to 24 * 1024 my memerr disappeared. Unfortunatelly I still have link errors and I cannot find a docu in the wiki about it. Link Xmit22888 RECV10120 FW 0 DROP1264 CHKERR 0 LENERR 0 MEMERR 0 RTERR 0 PROTERR

Re: [lwip-users] LWIP RAW API tcpip_callback()

2017-05-17 Thread Werner Motz
Thank you very much for your answers. It finally (partly) works now :) I had a priority problem in my freertos which made the lwip init task call too late. I am able to send data outside of the lwip thread now. I am still worried because in my stats I see the following problems/errors: Link Xmit

Re: [lwip-users] LWIP RAW API tcpip_callback()

2017-05-17 Thread goldsi...@gmx.de
Werner Motz wrote: ---> passing tcp_active_pcbs is not necessary because as u already mentioned, I could call it everywhere. I just tried to give a parameter to the callback function. The usage of tcpip_callback should be OK. ---> Obviously it is not good / right to call macros and functions

Re: [lwip-users] LWIP RAW API tcpip_callback()

2017-05-17 Thread Werner Motz
> In my freertos task (outside lwip) I do following: > > [..] > > tcpip_callback_with_block(WTF, tcp_active_pcbs, 0); Why on earth would you pass 'tcp_active_pcbs'? Wherever you got that from: tell them this is wrong and they should stop spreading such horrible code examples! --->

Re: [lwip-users] LWIP RAW API tcpip_callback()

2017-05-16 Thread goldsi...@gmx.de
Werner Motz wrote: In my freertos task (outside lwip) I do following: [..] tcpip_callback_with_block(WTF, tcp_active_pcbs, 0); Why on earth would you pass 'tcp_active_pcbs'? Wherever you got that from: tell them this is wrong and they should stop spreading such horrible code

[lwip-users] LWIP RAW API tcpip_callback()

2017-05-16 Thread Werner Motz
Hello, I am using lwip 2.0.2 RAW API + freertos 8.2.3 I am able to establish a connection and I can receive data without any problems. I would like to know what is the best way to send data outside the lwip thread. In my freertos task (outside lwip) I do following: void