Category Archives: Arduino

All thing related to Arduino boards.. Will overlap with ARM avr processor stuff i guess.

Arduinoweb

AVRISP on the Mega1280 / Mega2560 Arduino’s

ATMega1280 arduino as avrisp
I dont see this mentioned much, but you can use arduino megas perfectly fine as programmers also. Same program, just different ICSP pins.

pin layout mega's

But same result as with the Nano 3.0 as programmer.. AVRISP image build on windows works, build on Ubuntu no go..

Writing | | 0% 0.00s
avrdude: stk500_paged_write(): (a) protocol error, expect=0x14, resp=0x11
avrdude: stk500_cmd(): programmer is out of sync
make: *** [writeflash] Error 1

Arduino Nano v3.0 as AVRISP Programmer.

Nano as isp
Long time ago I bought an ATTiny2313, I tried programming it today using an arduino nano pretending to be an avrisp programmer.

Weird thing.. Same avrisp code compiled on windows and ubuntu with Arduino 022.. Firmware compiled on windows works great, compiled on ubuntu it gets stuck on some protocol error when it starts uploading code to the attiny.

Question remains, what is the difference in firmware? Its not the automatic serial reboot, i’m sure of that. Atleast not hardware wise.. Same hardware, windows built firmware ok, ubuntu not ok..

Intro

Binary build using windows arduino:
Binary sketch size: 6618 bytes (of a 126976 byte maximum)

Binary build with latest ubuntu:
Binary sketch size: 6200 bytes (of a 126976 byte maximum)

hmm.. So what’s those 418 missing bytes do exactly?