arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

ATTiny1634 Writing

For upgrading an Arduino so that it can program another microcontroller

https://www.arduino.cc/en/Tutorial/BuiltInExamples/ArduinoISParrow-up-right

https://github.com/FYNCH-BIO/evolver-arduino/blob/master/ATtiny1634/lightsense.carrow-up-right

hashtag
AVRDUDE and AVR-gcc

hashtag
Follow instructions here:

Tried to upload blink to Arduino Uno and got this error

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x58

Had to remove all wires going to Arduino ports and unplug usb before it would upload

hashtag
Pin layout Arduino to ATtiny1634

Map of controller pins in on the microcontroller

hashtag
Burning ATtiny1634

Load up ArduinoISP (in the Arduino IDE examples) onto the programmer Arduino

Download C code for ATtiny from here:

hashtag
On the terminal

Navigate to the folder containing ATtiny code (lightsense.c)

hashtag
Run commands:

avr-gcc -g -Os -mmcu=attiny1634 -c lightsense.c avr-gcc -g -mmcu=attiny1634 -o lightsense.elf lightsense.o avr-objcopy -j .text -j .data -O ihex lightsense.elf lightsense.hex avrdude -p t1634 -P <Your Arduino Port> -c arduino -b 19200 -U flash:w:lightsense.hex -v -v -v -v

From <>

Replace <Your Arduino Port> with the port used by your Arduino (found in IDE under Tools>Port)

avrdude -p t1634 -P COM9 -c arduino -b 19200 -U flash:w:lightsense.hex -v -v -v -v

avr-gcc -g -Os -mmcu=attiny1634 -c LEDblink.c avr-gcc -g -mmcu=attiny1634 -o LEDblink.elf LEDblink.o avr-objcopy -j .text -j .data -O ihex LEDblink.elf LEDblink.hex avrdude -p t1634 -P COM9 -c arduino -b 19200 -U flash:w:LEDblink.hex -v -v -v -v

hashtag
Alternative guide? or ATTiny as an arduino?

https://blog.zakkemble.net/avr-gcc-builds/arrow-up-right
https://www.arduino.cc/en/Tutorial/BuiltInExamples/ArduinoISParrow-up-right
https://github.com/FYNCH-BIO/evolver-arduino/tree/master/ATtiny1634arrow-up-right
https://github.com/FYNCH-BIO/evolver-arduino/tree/master/ATtiny1634arrow-up-right
https://github.com/SpenceKonde/ATTinyCorearrow-up-right