[En-Nut-Discussion] Problems with AHDLC driver, WinAVR20050214 and optimazations enabled.

Vesa Jääskeläinen chaac at nic.fi
Wed May 4 23:06:33 CEST 2005


Vesa Jääskeläinen wrote:
> I have observed that with newest WinAVR release and compiling Nut/OS & 
> Nut/Net with default optimizations AHDLC driver's thread (modified one) 
> gets stuck in data processing state. If I disable optimizations it gets 
> nicely out of it. So some optimization brakes either some part of Nut/OS 
>  or AHDLC driver somehow.
> 
> I will continue to inspect differences between -O0 version and with 
> default optimizations. If someone has noticed same issue and has better 
> solution than disabling optimizations I would like to hear about it.

I have tracked this down a bit. I have modified dev/Makefile to use no 
optimization for ahdlcavr.c. If I re-enable optimizations it starts to 
fail. And I have modified os/Makefile to disable optimization for all 
files in there, if I re-enable them there it start to fail. So something 
gets broken there too.

I need to get back to other activities for a while. I will probably get 
back to this issue in next weekend.

If someone founds cure for this, I would like to know :)

Thanks,
Vesa Jääskeläinen



More information about the En-Nut-Discussion mailing list