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 <lwip-users-bounces+noam=silrd....@nongnu.org> on behalf of Erkan Ersoy <ice_ffiir...@yahoo.com> Sent: Sunday, May 22, 2016 9:59 PM To: lwip-users@nongnu.org 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 lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users