|
From: | Jonathan Larmour |
Subject: | Re: [lwip-users] lwip hanging on memory allocation (sem) |
Date: | Thu, 29 Jan 2009 00:05:08 +0000 |
User-agent: | Mozilla Thunderbird 1.0.8-1.1.fc3.4.legacy (X11/20060515) |
DownyTif wrote:
So, to resume, the tcpip_init() call creates a thread which calls my function for ethernet configuration, which calls "netif_add(...)" ---> "init(netif)" ---> ethernetif = (struct ethernetif *)mem_malloc(sizeof(struct ethernetif)); ---> the mem_alloc semaphore. [which waits forever] I'm kind of confused, because everything works fine at 48MHz and the board is supposed to support up to 66MHz. I've seen posts of people using the same board at 66MHz, so it's probably not related to lwip, but I'm taking a chance.
I suspect the faster CPU means changing your memory controller timings, and something's not right there.
Alternatively, the faster code execution may have resulted in some other thread in your system trying to do lwIP things before lwIP is fully initialised, which maybe (theoretically - it just depends) might cause problems.
Jifl -- eCosCentric Limited http://www.eCosCentric.com/ The eCos experts Barnwell House, Barnwell Drive, Cambridge, UK. Tel: +44 1223 245571 Registered in England and Wales: Reg No 4422071. ------["The best things in life aren't things."]------ Opinions==mine
[Prev in Thread] | Current Thread | [Next in Thread] |