Closed GoogleCodeExporter closed 9 years ago
What OS and gcc version are you using?
The bootloaders should generally be compiled using the same gcc that is
included with the Arduino package (4.3.x, I think.)
Original comment by wes...@gmail.com
on 3 Nov 2012 at 12:35
$ avr-gcc --version
avr-gcc (GCC) 4.5.3
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
running on ubuntu oineric.
The fix I think is better code and compiles fine with 4.3.2 as well as 4.5.3,
so imho should be pulled, but then I would say that as I made the pull request.
Original comment by martyn@theendofhistether.org.uk
on 3 Nov 2012 at 3:07
https://github.com/iMartyn/Arduino/commit/ba95cb77432eced298b11d7fb85345a1245838
49#hardware/arduino/bootloaders/atmega/ATmegaBOOT_168.c are the changes btw, if
it's easier to see them direct.
Original comment by martyn@theendofhistether.org.uk
on 3 Nov 2012 at 3:09
With the avr-gcc contained inside the IDE it will compile perfectly.
Looks like that in the newer avr-libc toolchains the EEPROM write bit is
changed from EEWE to EEPE as described above and in this forum topic:
http://arduino.cc/forum/index.php/topic,37338.0.html
If you want to compile with the your system avr-gcc, you should modify the
ATmegaBOOT_168.c file in line 586 to use the EEPE bit instead the EEWE.
Otherwhise in the makefile in the environment variable called "CC" add the path
to the avr-gcc contained inside the IDE:
CC = PATH_TO_ARDUINO_IDE/hardware/tools/avr/bin/avr-gcc
Original comment by f.vanz...@gmail.com
on 17 Apr 2013 at 4:50
Original issue reported on code.google.com by
martyn@theendofhistether.org.uk
on 2 Nov 2012 at 10:07