Programing arduino with parallel programer

Hi,
for consideration... would it be possible to add in the arduino program an option, through where you will program arduino?

For example, I have been working on a program and now that it is complete, I would like to burn it with parallel programmer so it would start without delay (for a demonstration on my collage). And to do this without that "hack" to manualy change settings in that text file each time that you want to change the way of programming.

Regards,
Peter

You can create a new entry in your boards file that specifies the use of a parallel programmer. Then, to switch programming methods, you simply select a different item in the Tools > Boards menu. You only need to edit the text file once.

Oh, really? :o

Can you please help me out with this, I guess I found what needs editing (boards.txt), but there's a lot of lines for each board. Can you give me a hand with what to add/change?

Regards,
Peter

Make a copy of the board you're using and change the first part of each key: e.g. the "diecimila" in "diecimila.upload.rate", etc. It can be anything (e.g. "foo"), as long as they're all the same. Then add a "foo.upload.using" key whose value is the key for the in programmers.txt for the programmer you want to use. Also change the foo.name to something like "Arduino Diecimila w/ AVRISP" or whatever so you can find it in the Boards menu.

Oh, that easy? Thanks. So that's it, I don't need to change anything else? I can change max size to 16000 since this overwrites the bootloader, right? (I managed to write "only" 10k of a program until now though...)

And... this works really fast, I think faster than via serial port.

So, if it is any good to anyone:

##############################################################

diecimila2.name=Arduino Diecimila/ICSP

diecimila2.upload.protocol=stk500
diecimila2.upload.maximum_size=16000
diecimila2.upload.speed=19200
diecimila2.upload.using=parallel

diecimila2.build.mcu=atmega168
diecimila2.build.f_cpu=16000000L
diecimila2.build.core=arduino

Hi!

I´ve done a parallel programmer. But I have some problems:

  1. I´ve changed my preferences.txt with upload.using=parallel

  2. I´ve changed boards.txt as Odisej

  3. I haven´t changed nothing in programmers.txt

When I try to upload:

avrdude: AVR device not responding
avrdude: initialization failed, rc=-1
avrdude: Yikes! Invalid device signature.
avrdude: Expected signature for ATMEGA168 is 1E 94 06
avrdude: AVR device not responding
avrdude: verification error, first mismatch at byte 0x0000
0x0c != 0xff
avrdude: verification error; content mismatch

Why in programmer.txt the parallel protocol is dapa and in boards is stk500?

Any suggestion?

Thank-u

Regards,

Igor R.

Sounds like the right commands are being called (though you can check by setting upload.verbose to true in your Arduino preferences file). Maybe it's a wiring problem in the parallel programmer?