slaryn / optiboot

Automatically exported from code.google.com/p/optiboot
0 stars 0 forks source link

[PATCH] Add bootloader support for 1284P #51

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This patch adds bootloader support for 1284P.

Original issue reported on code.google.com by maniac...@ymail.com on 15 Jan 2012 at 5:36

GoogleCodeExporter commented 9 years ago
Here's the file.  Seems it didn't upload the first time.

Original comment by maniac...@ymail.com on 15 Jan 2012 at 10:03

Attachments:

GoogleCodeExporter commented 9 years ago
I get (easy enough to fix) compile errors.  But ... why didn't you?

BillW-MacOSX-2<10012> make OS=macosx ENV=arduinodev mighty
../../../../build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/tools
/avr/bin/avr-gcc -g -Wall -Os -fno-inline-small-functions -fno-split-wide-types 
-mshort-calls -mmcu=atmega1284p -DF_CPU=16000000L  '-DLED_START_FLASHES=3' 
'-DBAUD_RATE=115200' '-DBIGBOOT'   -c -o optiboot.o optiboot.c
optiboot.c: In function 'main':
optiboot.c:386: error: 'NRWWSTART' undeclared (first use in this function)
optiboot.c:386: error: (Each undeclared identifier is reported only once
optiboot.c:386: error: for each function it appears in.)
optiboot.c:389: error: 'RAMSTART' undeclared (first use in this function)
make: *** [optiboot.o] Error 1

Original comment by wes...@gmail.com on 16 Jan 2012 at 12:55

GoogleCodeExporter commented 9 years ago
Ouch!� That's no good.� I will investigate.

Original comment by maniac...@ymail.com on 16 Jan 2012 at 2:47

GoogleCodeExporter commented 9 years ago
Foo.  First time I've used mercurial and it's not going so well :D.  Attached 
the file I missed the first time around in the patch.

Original comment by maniac...@ymail.com on 16 Jan 2012 at 2:53

Attachments:

GoogleCodeExporter commented 9 years ago
Also need a patch for "read flash" to use ELPM (this code is already present 
for m1280; make it conditional on RAMPZ instead.)

Original comment by wes...@gmail.com on 24 Jan 2012 at 8:25

GoogleCodeExporter commented 9 years ago

Original comment by wes...@gmail.com on 26 Jan 2012 at 1:50