lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] netconn http server memory problem ?


From: Erkan Ersoy
Subject: Re: [lwip-users] netconn http server memory problem ?
Date: Sun, 22 May 2016 21:52:25 +0000 (UTC)

So I tried echo example and same thing

"memory error" and "echo thread started"  outputs are my printf.

Code Start-----------------------------------------------------
compile DATE: May 23 2016
netif_set_ipaddr: netif address being changed
netif: IP address of interface  set to 192.168.1.165
netif: netmask of interface  set to 255.255.255.0
netif: GW address of interface  set to 192.168.1.1
netif: added interface st IP addr 192.168.1.165 netmask 255.255.255.0 gw 192.168.1.1
netif: setting default interface st
netif set up
tcp_bind: bind to port 4444
icmp_time_exceeded from 192.168.1.1 to 192.168.1.165
echo thread stacmp_time_exceeded from 192.168.1.1 to 192.168.1.165
ded frecho thread started
icmp_time_exceeded from 192.168.1.1 to 192.168.1.165
TCP connection request 11448 -> 4444.
TCP connection established 11448 -> 4444.
accept_function: newpcb->state: ESTABLISHED
memory error
tcp_pcb_purge
tcp_pcb_purge: data left on ->unacked
tcp_abandon: sending RST
tcp_rst: seqno 6511 ackno 2594658687.
tcp_slowtmr: no active pcbs




From: Noam Weissman <address@hidden>
To: Erkan Ersoy <address@hidden>; Mailing list for lwIP users <address@hidden>
Sent: Sunday, May 22, 2016 10:34 PM
Subject: Re: [lwip-users] netconn http server memory problem ?

Hi,

I never worked with netcon. Almost all the modules I have written are in RAW mode.
Just now I made the first module with Sockets.

I suggest running something much simpler like the echo server to start with.

Can you ping to the board ?... If you can try running  ping -t and see if it runs for
some time.

BR,
Noam.


From: lwip-users <address@hidden> on behalf of Erkan Ersoy <address@hidden>
Sent: Sunday, May 22, 2016 9:59 PM
To: address@hidden
Subject: [lwip-users] netconn http server memory problem ?
 
Hello

I recently managed to compile and run lwip+FreeRTOS on stm32f107. I can ping my device now.

I took st example netconn httpserver and put in my project it compiled. But i cant reach http page. Connection keep resetting (wireshark show it yellow highlight). I tracked down my problem


accept_function in api_msg.c calls netconn_alloc newconn equals NULL
in netcon_alloc
  if (sys_mbox_new(&conn->recvmbox, size) != ERR_OK) {
    sys_sem_free(&conn->op_completed);
    goto free_and_return;
  }

sys_mbox_new doesnt equal ERR_OK
in sys_mbox_new *pxMailBox = xQueueCreate( iSize, sizeof( void * ) );  returns NULL

it seems like memory problem so I make adjusments and make
 #define configTOTAL_HEAP_SIZE ((size_t) (32 * 1024))        in FreeRTOS_config.h
and

#define MEM_SIZE                (10*1024)         in lwipopts.h

I played with values hoping to make it right but no luck


I tried heap_1.c throgh heap_4.c  didnt work (accept heap_3.c but after connection all my threads stopped)

I think problem is somewhere else but couldn't figure out.

Thank you





_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users



reply via email to

[Prev in Thread] Current Thread [Next in Thread]