buglwIP - A Lightweight TCP/IP stack - Bugs: bug #39651, FreeRTOS http server memory...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #39651: FreeRTOS http server memory allocation problem

Submitted by:  Svensen <svensen>
Submitted on:  Fri 02 Aug 2013 01:29:12 PM UTC  
 
Category: sockets/netconnSeverity: 3 - Normal
Item Group: Crash ErrorStatus: Invalid
Privacy: PublicAssigned to: None
Open/Closed: ClosedPlanned Release: None
lwIP version: 1.4.0

Wed 04 Sep 2013 11:48:07 AM UTC, comment #4:

Solution: before usage of http_server_netconn_init the xemacif_input_thread have to be started.

Svensen <svensen>
Wed 04 Sep 2013 11:43:55 AM UTC, comment #3:

In this case it would have been nice to say so here, so we can close the bug.

Simon Goldschmidt <goldsimon>
Project Administrator
Wed 04 Sep 2013 11:09:48 AM UTC, comment #2:

Thank you. I've already solved this problem )

Svensen <svensen>
Wed 04 Sep 2013 10:26:32 AM UTC, comment #1:

What do your lwipopts.h and sys_arch.c look like?

Konstantin <tomcat_84>
Fri 02 Aug 2013 01:29:12 PM UTC, original submission:

Hi,

I try to develop http server.

I'm using Xilinx Zinq 7000 + FreeRTOS. Building Xilinx_bsp, i've configured lwIP to use SOCKET_IP.

I've created http_server project according to this example http://git.savannah.gnu.org/cgit/lwip/lwip-contrib.git/tree/apps/httpserver

Project compiled OK, but at runtime I've got an exeption at netconn_new(TCP) - > netconn_alloc(t, callback) -> memp_malloc(MEMP_NETCONN). It cannot allocate memory...

So I guess it's problem with my project or bsp configuration, not with source code. But how to configure it's right ? Maybe someone could help me ?

Thanks.

P.S. the main function of my project:
int main( void )
{
prvInitializeExceptions();

http_server_netconn_init();

vTaskStartScheduler();
for( ;; );
}

Svensen <svensen>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by goldsimon (Posted a comment)
  • -unavailable- added by tomcat_84 (Posted a comment)
  • -unavailable- added by svensen (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 04 Sep 2013 11:43:55 AM UTCgoldsimonStatusNone=>Invalid
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1