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

Submitter:  Svensen <svensen>
Submitted:  Fri 02 Aug 2013 01:29:12 PM UTC
   
 
Category:  sockets/netconn Severity:  3 - Normal
Item Group:  Crash Error Status:  Invalid
Privacy:  Public Assigned to:  None
Open/Closed:  Closed Planned 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>
Group 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>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-09-04 goldsimon StatusNone Invalid
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code