I dont see this mentioned much, but you can use arduino megas perfectly fine as programmers also. Same program, just different ICSP pins.
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
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?
$ wget http://valky.eu/data/hardware/ds203_1_tmbinc-dsoquad.zip
Make sure ARM gcc executables are in path and “make”.
As slot 1 and probably a piece of 2 is used, upload to 3 and maybe extend to slot 4 using app3.hex!
The DSO Quad is a pocket-size oscilloscope from seeedstudio.com.
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://github.com/esden/summon-arm-toolchain.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
So you have a few LiPO batteries, a decent balancing loader and all you got is a 12v/1.5A wall socket power adapter. Great.
Got an old PC powersupply? Continue reading