I'm using IAR's Workbench for ARM with PowerPAC OS. Target is LPC 2129. When i changed PPP_MRU size from 1500 to 200, it works fine. Still PPP is not going up and i'm not getting any data out of the serial port.
May i add a few questions here?
1. what is the lwip "main task"? I understand that there are in all 3 tasks(or threads), "tcpip", "ppp", "lwip". I call pppInit() and tcpip_init() from my own task, does this task become lwip main? i plan to call the http_server example from this next.
2. can i do without writting a thread oriented sys_timeouts()? till now it's a simply -
struct sys_timeouts *sys_arch_timeouts(void) {
return &lwip_system_timeouts;
}
3. Apart from ppp, tcpip, is there any other thread under lwip? I'm asking this because i was currently done away with sys_thread_new and in place have placed direct MY_OS_TASK_CREATE function calls in place of it in ppp.c and tcpip.c
4. How do i manage the buffer at sio.c level? my processor has a 5 byte stack, but i guess i will need more than that?
Thanks and regards,
Akshat