[lwip-users] Custom placement of memp_pools[] array

2018-11-08 Thread uaz
t I'm consuming more SRAM than available, thus the project is not compiling. Is there any way to manually place memory pool to a certain address? Thanks, UAZ -- Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html ___ lwip-users mai

[lwip-users] Custom placement of memory pool

2018-11-08 Thread uaz
t I'm consuming more SRAM than available, thus the project is not compiling. Is there any way to manually place memory pool to a certain address? Thanks, UAZ -- Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html ___ lwip-users mai

Re: [lwip-users] Custom placement of memory pool

2018-11-09 Thread uaz
) with the memp custom pool (MEMP_USE_CUSTOM_POOLS). Does it mean that: - if I set MEMP_USE_CUSTOM_POOLS to 1, I can set PBUF_POOL_SIZE to 0 because memp_malloc() will look for available slot from the custom pool instead of pbuf pool? Regards, UAZ -- Sent from: http://lwip.100.n7.nabble.com/lwip

[lwip-users] Changed IP address during runtime but TCP PCB stuck time wait state

2018-12-16 Thread uaz
Hi All, I am doing a webserver that allows users to change device ip address during runtime (no power reset required). I've tried 2 ways of doing so: 1. netif_set_addr() 2. netif_remove() and then netif_add() a new interface with the new ip address In both methods, I will re-init my http server:

Re: [lwip-users] Changed IP address during runtime but TCP PCB stuck time wait state

2018-12-19 Thread uaz
Hi all, Would like to update, my device can now change ip address during runtime thanks to Ivan's suggestion. Here is my steps (roughly): 1. netif_set_addr() //to change ip address 2. netconn_close(old_netconn) 3. netconn_delete(old_netconn) 4. new_netconn = netconn_new() 5. ip_set_option([new_ne

Re: [lwip-users] Assertion "sys_timeout: timeout != NULL, pool MEMP_SYS_TIMEOUT is empty"

2019-01-10 Thread uaz
I had this problem when my buggy application starts multiple instances of the main tcpip thread. You might want to verify that you only start one tcpip thread (or limited number?). -- Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html ___ lwi

[lwip-users] Watchdog Implementation for HTTP server using netconn

2019-01-29 Thread uaz
ldn't find anything on the newer lwip version. Does this mean netconn is strictly blocking in current implementation? What is the best approach to prevent netconn from blocking forever? Thanks, UAZ -- Sent from: http://lwip.100.n7.nabble.com/lwip-use

[lwip-users] Using LWIP Sequential API with non-preemptive (cooperative) OS

2019-02-28 Thread uaz
. But I am unable to track where it freezes. LWIP version: v2.0.3 FreeRTOS version: v10.1.1 What do you guys suggest? Create a single task that manages all RAW connections? Thanks, uaz -- Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html __

Re: [lwip-users] Throughput benchmark question - nasty pauses

2019-02-28 Thread uaz
emains the same) Regards, UAZ -- Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] Throughput benchmark question - nasty pauses

2019-02-28 Thread uaz
Stuck in tcpip_thread() of tcpip.c file, or my own udp server thread. I'm not sure if 'stuck' is the exact description, but it is spending too much time in the above threads without switching or interrupts. For now, I'm unable to find the exact location of the freezing. If your other threads are a

Re: [lwip-users] received udp packets are dropped

2019-08-29 Thread uaz
Hi, here is some idea to debug: You can define LWIP_STATS 1 in lwipopts.h, and then you can monitor all your memp count status in 'lwip_stats' global variable located in stats.c file. regards, uaz -- Sent from: http://lwip.100.n7.nabble.com/lwip-use