[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Global variables and ISRs ???
From: |
Vincent Trouilliez |
Subject: |
Re: [avr-gcc-list] Global variables and ISRs ??? |
Date: |
Tue, 06 Sep 2005 22:17:03 +0200 |
> Try making 'flag' volatile:
Thanks chaps, that did it :-)
> What's probably happening is the compiler, not seeing that 'flag' is
> modified anywhere in the while loop, isn't reloading it every loop
> iteration
Must be that, 'cause I looked at the assembler output closely enough to
see that the compiler was toying with my global variables, but didn't
look closely enough to make sure what it was doing e-xac-tly... hum
hum... that will teach me not paying enough attention I guess...
Thanks everyone, I can now resume my experiments... :-)
Regards,
--
Vince, learning a little bit more every day...
- [avr-gcc-list] Global variables and ISRs ???, Vincent Trouilliez, 2005/09/06
- Re: [avr-gcc-list] Global variables and ISRs ???, Lars Noschinski, 2005/09/06
- Re: [avr-gcc-list] Global variables and ISRs ???, Lars Noschinski, 2005/09/14
- Re: [avr-gcc-list] Global variables and ISRs ???, Rich Neswold, 2005/09/14
- Re: [avr-gcc-list] Global variables and ISRs ???, David Brown, 2005/09/15
- Re: [avr-gcc-list] Global variables and ISRs ???, Keith Gudger, 2005/09/15
- Re: [avr-gcc-list] Global variables and ISRs ???, Chip Webb, 2005/09/15
- Re: [avr-gcc-list] Global variables and ISRs ???, Joerg Wunsch, 2005/09/15
Re: [avr-gcc-list] Global variables and ISRs ???, Christopher X. Candreva, 2005/09/06
Re: [avr-gcc-list] Global variables and ISRs ???, Johnathan Corgan, 2005/09/06
- Re: [avr-gcc-list] Global variables and ISRs ???,
Vincent Trouilliez <=
Re: [avr-gcc-list] Global variables and ISRs ???, Parthasaradhi Nayani, 2005/09/06
- Re: [avr-gcc-list] Global variables and ISRs ???, David Brown, 2005/09/07
- Re: [avr-gcc-list] Global variables and ISRs ???, Vincent Trouilliez, 2005/09/07
- Re: [avr-gcc-list] Global variables and ISRs ???, Lars Noschinski, 2005/09/07
- Re: [avr-gcc-list] Global variables and ISRs ???, Vincent Trouilliez, 2005/09/07
- Re: [avr-gcc-list] Global variables and ISRs ???, David Brown, 2005/09/07
- Re: [avr-gcc-list] DIV instruction (WAS: Global variables and ISRs ???), Vincent Trouilliez, 2005/09/07
- Re: [avr-gcc-list] Global variables and ISRs ???, Alex Wenger, 2005/09/07
- Re: [avr-gcc-list] Global variables and ISRs ???, Vincent Trouilliez, 2005/09/07
- Re: [avr-gcc-list] Global variables and ISRs ???, David Brown, 2005/09/07