Re: [avr-gcc-list] Funny business with latest WinAvr20081205+ xmega128A1 and stdio

2009-01-19 Thread Anatoly Sokolov
Is there a WinAVR bug report filed for this? Yes. This is the sourceforge.ne bug #2490164 XMega (128A1): subroutine calling may corrupt stack pointer http://sourceforge.net/tracker/index.php?func=detailaid=2490164group_id=68108atid=520074 Anatoly.

RE: [avr-gcc-list] Funny business with latest WinAvr20081205+ xmega128A1 and stdio

2009-01-19 Thread Weddington, Eric
Ah, thanks Anatoly! I thought it was that bug. Larry, I'm planning on a WinAVR release sometime in early February, and it will include Anatoly's fix for this bug. Eric Weddington -Original Message- From: Anatoly Sokolov [mailto:ae...@post.ru] Sent: Monday, January 19, 2009 9:03 AM

RE: [avr-gcc-list] Funny business with latest WinAvr20081205+ xmega128A1 and stdio

2009-01-19 Thread larry barello
This bug was worth the two hours of anxiety I suffered waiting for Anatoly to reply with, unbelievably, a hand-patch of the compiler executable! Cheers! -Original Message- From: Weddington, Eric [mailto:ewedding...@cso.atmel.com] Sent: Monday, January 19, 2009 3:48 AM To: Anatoly

[avr-gcc-list] Syntax: Function pointer hell... newbee lost ! ;-)

2009-01-19 Thread Vincent Trouilliez
Hi list, I need a little help from the pros ;-) I Googled for C tutorials on the net, found a few. They aren't all quite clear about how to use function pointers, and where they are clear, the syntax they suggest doesn't appear to work on avr-gcc :-( I need to call a void/void function through

Re: [avr-gcc-list] Syntax: Function pointer hell... newbee lost ! ;-)

2009-01-19 Thread Vincent Trouilliez
On Mon, 19 Jan 2009 23:35:26 +0100 Georg-Johann Lay a...@gjlay.de wrote: int f_call; f_call = fptr; //load the function via the pointer Just call it: fptr(); //call function indirect Oh thanks, it works now ! :-) So I had only that part wrong, the declaration and