[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [avr-gcc-list] interrupt problem with eeprom api, running on atmega1
From: |
Michael |
Subject: |
RE: [avr-gcc-list] interrupt problem with eeprom api, running on atmega128 (bug #23969:) |
Date: |
Tue, 19 Aug 2008 10:29:19 +1000 |
Thanks Bernard, that's the one.
I can confirm that the attached eeprom.h file fix's the problem.
Although it's still a mystery as to what the problem actually is.
Regards, Michael.
-----Original Message-----
From: Bernard Fouché [mailto:address@hidden
Sent: 18 August 2008 18:34
To: Michael
Cc: address@hidden
Subject: Re: [avr-gcc-list] interrupt problem with eeprom api, running
on atmega128
Hi Michael.
I think that you hit this bug: http://savannah.nongnu.org/bugs/?23969
Compile with -Os until the problem is fixed (or with any optimization
level different from 0 or 1)
Regards,
Bernard
Michael wrote:
>
> Hi, I am finding that I have to disable interrupts when reading the
> eeprom using eeprom_read_byte().
>
> If I dont, then the code executes the EE_READY_vect, even though this
> interrupt is disabled.
>
> I have attached the smallest program I can to demonstrate this.
>
> I am running it on an atmega128, loaded into a stk500 using the stk501
> addon.
>
> I have PORTC connected to the leds, I am using the led on PC0.
>
> My fuse values are 0xFF, 0xDF, 0x21 (Internal RC 1MHz osc)
>
> If you run the code as attached, it will:
>
> Turn on the led on PC0
>
> Read the eeprom
>
> Blink the led on PC0
>
> However if you remove the cli(); before the eeprom read, the code will
> execute the EE_READY isr, and hang with the led off.
>
> I have examined the listing output, and I cannot see why this is
> happening. I know that it did not happen in earlier versions of the
> compiler, yet I cant remember which versions specifically.
>
> I currently have WinAVR-20080512
>
> Id like to get to the bottom of this somehow, as I am having some
> eeprom reliability problems which may or may not be related.
>
> Regards, Michael.
>
>
------------------------------------------------------------------------
>
> _______________________________________________
> AVR-GCC-list mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
- [avr-gcc-list] interrupt problem with eeprom api, running on atmega128, Michael, 2008/08/18
- Re: [avr-gcc-list] interrupt problem with eeprom api, running on atmega128, Bernard Fouché, 2008/08/18
- RE: [avr-gcc-list] interrupt problem with eeprom api, running on atmega128 (bug #23969:),
Michael <=
- Re: [avr-gcc-list] interrupt problem with eeprom api, running on atmega128 (bug #23969:), Stefan Ernst, 2008/08/18
- RE: [avr-gcc-list] interrupt problem with eeprom api, running on atmega128 (bug #23969:), Weddington, Eric, 2008/08/19
- RE: [avr-gcc-list] interrupt problem with eeprom api, running on atmega128 (bug #23969:), Michael, 2008/08/19