[En-Nut-Discussion] PPP/AHDLC logic problems...

Vesa Jääskeläinen chaac at nic.fi
Sun May 8 10:40:48 CEST 2005


Matej Kupljen wrote:
> Hi
> 
> Did some more testing about proper closing of the PPP session and then
> reopening it. I followed Brett suggestion to try the solution proposed by
> Eduardo Serantes, which he posted  14th Jan 2005.
> 
> However I doesn't seem to work :-(
> 
> I added the code to ahdlcavr.c proposed in the patch, and also the
> printf("....") on the start of the AhdlcRx thread and on the end of the 
> thread. It seems that the thread starts as soon as you register the 
> device, BUT IT NEVER EXITS!

For this I would like to ask what compiler you are using :) and what 
optimization settings when compiling Nut/OS & Nut/Net ?

I noticed that if I used WinAVR 20050214 with optimizations turned on 
(default), it fails to exit PPP mode but if I disable optimizations it 
gets nicely out of it.

Thanks,
Vesa Jääskeläinen



More information about the En-Nut-Discussion mailing list