AVR-Chat@yahoogroups.com wrote:
>
> The "fix" was to spend 1/2 a day porting the code into
> AVR-GCC (thanks for the suggestion / quick start guide
> Larry!) - apart from a few annoying things (e.g. itoa/ltoa's
> parameters in a different order), about the only thing that
> avr-gcc picked up wrong with the code was a couple of unused
> variables in main(). But the application now works fine and
> all the while{} loops now work as they should.
>
> Chalk one up for avr-gcc! I think avr-gcc will definately be
> the compiler of choice for the next project!
>
> Now I just have to figure out how to get gcc to stop
> optimizing out my delay routines :) But very minor in the scheme of
> things.
>
Well I have to say I use ICCAVR all the time and find it much better
than AVRGCC - nice features like the appbuilder which sets up all the
AVR's peripherals, and having a proper IDE saves me much time. I can
only think you've got some configuration issue - maybe the wrong AVR
device selected or something, so it was trying to use nonexistent RAM?
I've never seen the problems you are having.
But I'm glad you got it to work anyway.
--
Tim Mitchell (tim@sabretechnology.co.uk)
http://www.sabretechnology.co.uk
Sabre Technology (Hull) Ltd: Registered in England and Wales 3131504
3a Newlands Science Park, Inglemire Lane, Hull HU6 7TQMessage
RE: [AVR-Chat] Re: C Code weird behaviour help?
2007-01-30 by Tim Mitchell
Attachments
- No local attachments were found for this message.