Actually it was much simpler than I thought.
1. I connected everything like this:
| Arduino | |ATmega16 |
| 10 | |9 - RESET |
| 11 | |6 - MOSI |
| 12 | |7 - MISO |
| 13 | |8 - SCK |
| 5V | |10 - VCC |
| GND | |11 - GND |
(This is minimalistic configuration. The bare minimum I need to load program on the chip. In normal operation I would connect AVCC, second GND and maybe crystal.)
2. plugged Arduino to the computer with the USB cable. Now everything is powered from USB.
3. compiled and loaded Examples>ArduinoISP to the Arduino. using Arduino IDE
4. run
avrdude -P /dev/ttyACM0 -b 19200 -c avrisp -p m16 -U flash:w:program.hex
Everything is in its default configuration and works without any settings needed.
Debian 6.0.2, GNU/Linux 2.6.32-5-amd64, Arduino Uno SMD, ATmega32-16PU
I proceeded mainly with
this tutorial.
Thank you for your advices
Comments
Post a Comment