WestfW / OptiLoader

Arduino sketch for burning new bootloaders
198 stars 105 forks source link

Compiling with Arduino 1.0 #2

Closed piccaso closed 12 years ago

piccaso commented 12 years ago

I'm getting really weird errors when trying to compile OptiLoader:

sketch_jan02a:-1: error: variable or field 'read_image' declared void
sketch_jan02a:-1: error: 'image_t' was not declared in this scope
sketch_jan02a:-1: error: 'ip' was not declared in this scope
sketch_jan02a:2: error: variable or field 'read_image' declared void
sketch_jan02a:2: error: 'image_t' was not declared in this scope
sketch_jan02a:2: error: 'ip' was not declared in this scope

Using Arduino-1.0 on win7 64Bit.

I did get it to work using a self brewed Eclipse setup but i would prefer to know how to compile it with the Arduino IDE. Mainly because i made a little tutorial (here: http://www.3guys1laser.com/blog-burn-bootloader-blank-atmega328atmega328p-arduino-uno) and would also like to document the Compilation process (since its not just download and compile...).

Thanks for your time!

WestfW commented 12 years ago

I'm getting really weird errors when trying to compile OptiLoader:

I have some unsubmitted patches for 1.0 compatibility. The main one is to add a preprocess hint in the right place:

include <avr/pgmspace.h>

include "optiLoader.h"

char Arduino_preprocessor_hint;

WestfW commented 12 years ago

Ah. There was a git pilot error, and back when I was supposed to have committed the 1.0 changes, I ended up only adding the readme file. Fixed, I think.

piccaso commented 12 years ago

Thank You!