Re: [lwip-users] mem_malloc return NULL

2008-08-31 Thread Akshat Bisht
, but i've created another thread in the mailling list for it, so let me not add it here. Cheers and thanks AB On Fri, Aug 29, 2008 at 9:28 PM, Jonathan Larmour [EMAIL PROTECTED]wrote: Akshat Bisht wrote: Hello, None of the four questions were answered... :( Did i say something worng? People

Re: [lwip-users] mem_malloc return NULL

2008-08-29 Thread Akshat Bisht
Hello, None of the four questions were answered... :( Did i say something worng? Regards, AB On Wed, Aug 27, 2008 at 6:23 PM, Akshat Bisht [EMAIL PROTECTED]wrote: Jifl, On Wed, Aug 27, 2008 at 5:52 PM, Jonathan Larmour [EMAIL PROTECTED]wrote: Akshat Bisht wrote: I don't have any means

[lwip-users] sys_timeouts()

2008-08-28 Thread Akshat Bisht
Hello, Talking with respect to the code below from http://lwip.scribblewiki.com/Porting_for_an_OS , should the structure thread_struct_wrapper have a member of sys_timeo or sys_timeouts ? struct thread_struct_wrapper { struct thread_struct_wrapper *next;

[lwip-users] Re: sys_timeouts()

2008-08-28 Thread Akshat Bisht
Also can anybody point out where the sys_timeouts list is populated? I can only see reading from it using the sys_timeouts() function, which has initial value NULL, so everything keeps becoming NULL. What am i doing wrong? Thanks and regards, AB On Thu, Aug 28, 2008 at 2:13 PM, Akshat Bisht

Re: [lwip-users] mem_malloc return NULL

2008-08-27 Thread Akshat Bisht
Ok here is my problem: i increased MEM_SIZE to 2000 (if i put anything more the code is no longer executed. Even with the increased size, mem_malloc returns NULL.. Thanks and regards, AB On Wed, Aug 27, 2008 at 12:39 PM, Simon Goldschmidt [EMAIL PROTECTED]wrote: I don't have any means to

Re: [lwip-users] mem_malloc return NULL

2008-08-27 Thread Akshat Bisht
Jifl, On Wed, Aug 27, 2008 at 5:52 PM, Jonathan Larmour [EMAIL PROTECTED]wrote: Akshat Bisht wrote: I don't have any means to read the debug values. When if i enable display functions, i won't have any means to read it. Am i sounding confused? All i wish to say is that i don't have means

[lwip-users] Can't return from PPP thread

2008-08-26 Thread Akshat Bisht
, Akshat Bisht ___ lwip-users mailing list lwip-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/lwip-users

[lwip-users] Re: Can't return from PPP thread

2008-08-26 Thread Akshat Bisht
Ok got it, i added a header file which had extern declarations of my OS_TASK variables. AB On Tue, Aug 26, 2008 at 2:48 PM, Akshat Bisht [EMAIL PROTECTED]wrote: Hello, After the PPP thread starts, it can't seem to return to pppOverSerialOpen. Is it to do with context switching? Also tcpip

[lwip-users] MEM_ALIGNMENT value?

2008-08-26 Thread Akshat Bisht
MEM_ALIGNMENT help says value needs to be either 4 or 2. But opt.h has default value 1. What should this be? I'm using a 32bit ARM7 processor. Thanks AB ___ lwip-users mailing list lwip-users@nongnu.org

[lwip-users] mem_malloc return NULL

2008-08-26 Thread Akshat Bisht
For some reason mem_malloc is returning NULL. Where do i need to look under-the-hood to check if i'm giving enough memory or where to look for problems? I don't have a means to debug, i'm just glowing LED's on kit to find where program reaches. :) Thanks and regards, AB

[lwip-users] Re: mem_malloc return NULL

2008-08-26 Thread Akshat Bisht
+PPP_HDRLEN, PBUF_RAM); if (!p) { LWIP_ASSERT(p != NULL, p); pc-errCode = PPPERR_ALLOC; goto out; } * It enters the above IF.. Thanks AB On Tue, Aug 26, 2008 at 5:03 PM, Akshat Bisht [EMAIL PROTECTED]wrote: For some reason mem_malloc is returning NULL

Re: [lwip-users] mem_malloc return NULL

2008-08-26 Thread Akshat Bisht
Larmour [EMAIL PROTECTED]wrote: Akshat Bisht wrote: For some reason mem_malloc is returning NULL. Where do i need to look under-the-hood to check if i'm giving enough memory or where to look for problems? I expect you simply need to add more memory. Increase MEM_SIZE. I don't have a means

[lwip-users] PPP IP address

2008-08-25 Thread Akshat Bisht
Hello, How to set the IP address when using PPP? i initialize PPP using pppInit and then call pppOpen, but where do i set the IP address? Thanks AB ___ lwip-users mailing list lwip-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/lwip-users

[lwip-users] lwip and threads with PPP

2008-08-21 Thread Akshat Bisht
Hello, My operating system -IAR's PowerPAC, has no support for threads but only tasks. I can implement threads of lwip as tasks (can i?), but is there a way to remove lwip's dependency on threads? i see there are calls to create threads in two locations: 1. PPPoS part in ppp.c and 2. sys.h.

Re: [lwip-users] LwIP and IAR Workbench

2008-08-20 Thread Akshat Bisht
is it possible for you to talk on freenode irc, so i could ask you a few pending questions directly? Thanks and regards, AB On Wed, Aug 20, 2008 at 4:44 PM, Jonathan Larmour [EMAIL PROTECTED]wrote: Akshat Bisht wrote: What all files might i need to add (apart from the netif/PPP folder) to use PPP

Re: [lwip-users] LwIP and IAR Workbench

2008-08-20 Thread Akshat Bisht
, Jonathan Larmour [EMAIL PROTECTED]wrote: Akshat Bisht wrote: jifl i'm using a already existing TCP/IP stack from IAR (which is also the company who's OS i'm using). Incidently, the IAR TCP/IP stack has no support for PPP, only ARP Ethernet. But they allow writing ethernet drivers

Re: [lwip-users] LwIP and IAR Workbench

2008-08-19 Thread Akshat Bisht
@Richard: Yes there were errors in the PACK_STRUCT part, i changed: #define PACK_STRUCT_STRUCT __attribute__ ((__packed__)) to #define PACK_STRUCT_STRUCT It compiles without errors now, but i seriously doubt if what was a solution. Can you provide more guidance? Regards, AB On Tue, Aug

Re: [lwip-users] LwIP and IAR Workbench

2008-08-19 Thread Akshat Bisht
What all files might i need to add (apart from the netif/PPP folder) to use PPP as a stand alone stack? AB On Wed, Aug 20, 2008 at 2:08 AM, Jonathan Larmour [EMAIL PROTECTED]wrote: Zeder, Stacy wrote: Jifl... I looked for the files arch/bpstruct.h and arch/epstruct.h but don't find them

Re: [lwip-users] LwIP and IAR Workbench

2008-08-19 Thread Akshat Bisht
, Aug 20, 2008 at 9:35 AM, Akshat Bisht [EMAIL PROTECTED]wrote: What all files might i need to add (apart from the netif/PPP folder) to use PPP as a stand alone stack? AB On Wed, Aug 20, 2008 at 2:08 AM, Jonathan Larmour [EMAIL PROTECTED]wrote: Zeder, Stacy wrote: Jifl... I looked

Re: [lwip-users] Size of Mailbox

2008-08-18 Thread Akshat Bisht
@rishi: could you be a little verbose on it, i failed to understand what that particular code addition would do. I'm totally new to lwip. Thanks AB On Mon, Aug 18, 2008 at 3:56 PM, [EMAIL PROTECTED] wrote: In memp_init:memp.c add this line: change this: #if MEMP_STATS for (i = 0; i

Re: [lwip-users] Size of Mailbox

2008-08-18 Thread Akshat Bisht
: for (i = 0; i MEMP_MAX; ++i) { LWIP_PLATFORM_DIAG((%d\t%d\t%s\n, memp_num[i], memp_sizes[i], memp_desc[i])); } Rishi On Aug 18, 2008, at 6:51 AM, Akshat Bisht wrote: @rishi: could you be a little verbose on it, i failed to understand what that particular code addition would do. I'm

Re: [lwip-users] Stand alone PPP use

2008-08-18 Thread Akshat Bisht
Is it possible to implement PPP without using treads? I gather PPP.c has a declaration which adds a PPP thread... can it be done without? Akshat On Tue, Aug 12, 2008 at 10:12 PM, Dustin Stahlback [EMAIL PROTECTED] wrote: The ppp implementation is doable. There are some changes I have made

Re: [lwip-users] LwIP and IAR Workbench

2008-08-18 Thread Akshat Bisht
@stacy: i feel we are both doing the same thing, as i'm also trying to port lwip to IAR but for a LCP2129 processor. I guess we can work in co-ordination to reach ends. As a start: how far have you managed to reach? From my end: i've compiled the core files and the PPP files, as i'm going to use

Re: [lwip-users] Quick start with PPP

2008-08-14 Thread Akshat Bisht
://lwip.scribblewiki.com/LwIP_Main_Page Bikram On Wed, Aug 13, 2008 at 4:34 PM, Akshat Bisht [EMAIL PROTECTED] wrote: I need a quick start guide to the lwip (with PPP), i'm totally new to embedded networking, but have good understanding of C. 1. What'll files to compile? 2. How to link tcp/ip part to PPP

[lwip-users] Stand alone PPP use

2008-08-11 Thread Akshat Bisht
Hello, I'm new to embedded TCP/IP and am using PowerPAC's (from IAR) TCP/IP stack. I'm working on a ARM7 NXP LPC 2129 and would like to use the PPP of lwip as a link layer for the above said TCP/IP stack. My TCP/IP stack has only ethernet support, but option to write another device driver