[Icc-avr] stack size needed to use fp?
bobgardner at aol.com
bobgardner at aol.com
Tue Apr 29 08:00:13 PDT 2008
Thanks for the comeback. I have tried to cprintf("#7.1f\n",x); without the fp print ticked and, not surprisingly, it doesnt print out the number. I think the fp routines work pretty well... I have even had a couple of projects where I did some fp calcs, but then cast the results to ints and printed those numbers as ints. That worked, so I 'suspect' the cprintf conversion. I have tried cprintf using %e and %g as well as %f.
-----Original Message-----
From: Paul Mateer <paul.aa9gg at gmail.com>
Sent: Tue, 29 Apr 2008 8:39 am
Subject: Re: [Icc-avr] stack size needed to use fp?
Hi Bob....
I use floating point quite a bit actually with the Mega32 and Mega6490.? Typically my stack return is around 255 (0xFF).? Dumb question...do you have floating point selected for printf version?? I also use "Strings in Flash" option.
On Tue, Apr 29, 2008 at 7:29 AM, <BobGardner at aol.com> wrote:
Hello imagecraft users. I have had 'problems' with my programs going nuts and the common theme seems to be something to do with fp print or fp divide. I'll ask for forgiveness for using fp right now. But I'd like one or two folks out there to edit and compile a simple program using floats and %7.1f format spec and tell me if it runs ok with hw stack of 0x80 or the hw stack has to be larger to run. I've tried every stack size up to 0x400 and still get blowups and strings of garbage printed out. I can dump ram and see a repeating pattern all thru ram. This would obviously clobber the stack, but if this is a 'bug', how could it be in version after version and no one else run into it? If its my arcane programming style, then I need some help bad. Thanks for reading.
?
Need a new ride? Check out the largest site for U.S. used car listings at AOL Autos.
_______________________________________________
Icc-avr mailing list
Icc-avr at imagecraft.com
http://dragonsgate.net/mailman/listinfo/icc-avr
--
Paul Mateer, AA9GG
Elan Engineering Corp.
www.elanengr.com
_______________________________________________
Icc-avr mailing list
Icc-avr at imagecraft.com
http://dragonsgate.net/mailman/listinfo/icc-avr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://dragonsgate.net/pipermail/icc-avr/attachments/20080429/f62ee954/attachment.html
More information about the Icc-avr
mailing list