Category Archives: Electro

Stuff with electricity


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..


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?

DSO-203 Quad scope

The DSO Quad is a pocket-size oscilloscope from

It uses a dual-channel 40MS/s ADC to capture into the SRAM of a SiliconBlue
FPGA, clocked at 36MS/s (with optional overclocking to 72MS/s and optional
interleaving to provide double capture rate). The STM32F103VCT6 (72 MHz Cortex-M3)
then reads the FIFO over a 16-bit bus and displays them on an embedded
(intelligent) TFT screen.

First, lets try and find a nice and general gnu toolchain?

$ git clone git://
$ cd summon-arm-toolchain

To get the dso203 app compiling with this, dont forget parameters:
$ ./summon-arm-toolchain TARGET=arm-none-eabi USE_LINARO=1 LIBSTM32_EN=1 DEFAULT_TO_CORTEX_M3=1