lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] netconn http server memory problem ?


From: Erkan Ersoy
Subject: [lwip-users] netconn http server memory problem ?
Date: Sun, 22 May 2016 18:59:02 +0000 (UTC)

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





reply via email to

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