URL:
<http://savannah.nongnu.org/bugs/?36410>
Summary: avr/boot.h: poisoned SPMCR for ATmega128
Project: AVR C Runtime Library
Submitted by: awachtler
Submitted on: So 06 Mai 2012 09:00:05 GMT
Category: Header
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Header files
Status: None
Percent Complete: 0%
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Release: 1.8.0
Fixed Release: None
_______________________________________________________
Details:
If avr/boot.h is just included in a source file and the file is compiled for
atmega128, the compiler raises an error.
Here are the steps to reproduce the issue:
--------------------------------------------
$ cat foo.c
#include <avr/version.h>
#include <avr/boot.h>
$ avr-gcc -c -mmcu=atmega128 foo.c
In file included from foo.c:2:0:
/home/myavrtools/avr-gcc470/lib/gcc/avr/4.7.0/../../../../avr/include/avr/boot.h:112:16:
error: attempt to use poisoned "SPMCR"
$ avr-gcc -c -mmcu=atmega1281 foo.c
--------------------------------------------
For atmega1281 it works with no error.
My compiler is either avr-gcc 4.5.1 or 4.7.0, both compilers use
avr-libc 1.8.0
For avr-gcc 4.3.5 with an avr-libc 1.6.8 the above example works.
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?36410>
_______________________________________________
Nachricht gesendet von/durch Savannah
http://savannah.nongnu.org/
_______________________________________________
AVR-libc-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/avr-libc-dev