RE: [AVR-Chat] Re: C Code weird behaviour help?
2007-01-29 by Tim Mitchell
AVR-Chat@yahoogroups.com wrote: > Thanks for the reply, Dave > > Unfortunately the code snippet below is not the "real" code, > but a quick throw-together to illustrate the problem I'm having. > > In the real code, the variables are initialized with real data. > Either statically (for testing) or dynamically from a > pre-defined location in EEPROM. > > ICC actually initializes the value to 0 automatically as part > of the compile process anyhow ... > > I'm still having no luck trying to solve this problem - might > try and use a series of if-then-else handlers instead of the > alternating while loops ... hmmm ... > I guess the problem must be occurring elsewhere in your program, since there is nothing wrong with what you posted. Are you saying that if you compile the snippet as you posted it, it still does not work? I would try posting this to the icc-avr mailing list, where Richard the author of ICCAVR resides and will help you out if nobody else can. http://dragonsgate.net/mailman/listinfo/icc-avr -- 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 7TQ