I tried to make the bootloader in ./arduino-Arduino-012b4b0/hardware/arduino/bootloaders/atmega for the atmega328p, unfortunately it fails to compile. Executing "make atmega328" in that directory gives me:
avr-gcc -g -Wall -O2 -mmcu=atmega328p -DF_CPU=16000000L '-DMAX_TIME_COUNT=F_CPU>>4' '-DNUM_LED_FLASHES=1' -DBAUD_RATE=57600 -c -o ATmegaBOOT_168.o ATmegaBOOT_168.c
ATmegaBOOT_168.c: In function ‘main’:
ATmegaBOOT_168.c:586: error: ‘EEWE’ undeclared (first use in this function)
ATmegaBOOT_168.c:586: error: (Each undeclared identifier is reported only once
ATmegaBOOT_168.c:586: error: for each function it appears in.)
make: *** [ATmegaBOOT_168.o] Error 1
I can fix the error by appending "|| defined(__AVR_ATmega328P__)" to line 583, but it begs the question, what bootloader does the arduino use for the atmega328p. Does it use the precompiled hex in that directory or does it use another bootloader like in ../optiboot which does compile without errors when you execute "make atmega328"?
George
212-799-1720On Mon, Nov 22, 2010 at 3:39 AM, jarek
<jare...@gmail.com> wrote:
The holidays are around the corner, and many of us are hand-making
presents for friends and family using the electronics skills we've
picked up over the past year. Using an Arduino is the easiest way to
prototype your labor of love, and now it's time to package up your
present. But spending $40 on an Arduino board for each programmable
set of LEDs you want to give can become very costly.
I'm teaching a class on December 5th at NYCResistor on how to take
your Arduino-based prototype and translate it into a circuit that does
exactly what your prototype does, while leaving the actual Arduino
out. Using techniques you'll learn in this class, you'll be able to
keep the cost of your finished product down, save your Arduino for
future experiments, and reduce the time it takes to construct each
finished product if you're thinking of mass production.
This will be the 3rd time I'll be teaching this class, and using
critique and advice from previous students, I have designed a special
programming shield that will be provided for all students to keep and
is included in the cost of the class. This programming shield
simplifies the programming process so that we can spend more time on
the circuit design portion of the class.
To sign up for the class and find out more, visit the eventbrite page
for the class: http://www.eventbrite.com/event/1057152973
--
You received this message because you are subscribed to the Google Groups "NYCResistor:Microcontrollers" group.
To post to this group, send email to nycresistormi...@googlegroups.com.
To unsubscribe from this group, send email to nycresistormicrocon...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nycresistormicrocontrollers?hl=en.