[flashrom] Arduino LPC flasher?

Benjamin Henrion bh at udev.org
Sun Mar 27 13:25:05 CEST 2011


Hi,

I am trying to port this code to an Arduino Duemilanove (atmega328p):

http://mikestirling.co.uk/2010/08/programming-an-lpc-flash-with-an-avr-and-flashrom/

When I change the chip to atmega168, I have the following error:

avr-gcc -c -mmcu=atmega168 -I. -g -Os -funsigned-char
-funsigned-bitfields -fpack-struct -fshort-enums -Wall
-Wstrict-prototypes -Wa,-adhlns=uart.lst  -std=gnu99 -DF_CPU=7372800
-Wp,-M,-MP,-MT,uart.o,-MF,.dep/uart.o.d uart.c -o uart.o
uart.c: In function ‘__vector_18’:
uart.c:65: error: ‘_UDR’ undeclared (first use in this function)
uart.c:65: error: (Each undeclared identifier is reported only once
uart.c:65: error: for each function it appears in.)
uart.c: In function ‘__vector_19’:
uart.c:83: error: ‘_UDR’ undeclared (first use in this function)
uart.c: In function ‘uart_init’:
uart.c:281: error: ‘_UBRR’ undeclared (first use in this function)
make: *** [uart.o] Error 1

Any idea what to change?

Having a simple Arduino being able to flash BIOS chips would be awesome...

Best,

--
Benjamin Henrion <bhenrion at ffii.org>
FFII Brussels - +32-484-566109 - +32-2-4148403
"In July 2005, after several failed attempts to legalise software
patents in Europe, the patent establishment changed its strategy.
Instead of explicitly seeking to sanction the patentability of
software, they are now seeking to create a central European patent
court, which would establish and enforce patentability rules in their
favor, without any possibility of correction by competing courts or
democratically elected legislators."




More information about the flashrom mailing list