[Solved] Cannot burn bootloader w/ Tiny AVR Programmer on Linux (Windows works)
hello,
edit 3: solved. needed add udev rule documented here: https://learn.adafruit.com/usbtinyisp/avrdude
edit 2: appears software issue. able burn bootloader on first on windows machine, must wrong linux config. changed title of thread accordingly. ideas?
i'm attempting use tiny avr programmer[1] burn new bootloader atmega328[2] via avrdude on linux, i'm running issues. specifically, "initialization failed" avrdude. can upload sketches same atmega328 chip via usb ftdi breakout[3] think chip ok.
as physical connections, i'm connecting reset, gnd, vcc, miso, mosi, sck atmega via jumper wires, , i've confirmed jumper wires good. i've confirmed vcc ~+5v. i've tried , without cap , pull-up resistor on reset pin of atmega. atmega has 16mhz crystal between xtal1 , xtal2 2 caps ground. nothing else connected. i've tried removing crystal well.
on tiny avr programmer side, i've tried connecting 2x3 isp pins, 1x6 programmer out pins, prototyping pins, , attiny socket pins itself.
in avrdude, i've tried using -pm328p , -pm328 instead of -patmega328p no avail. -f option fails, , outputs different device signature on every run. looking @ avrdude's source code, suspect has reset. have no idea how debug further though.
here's command output avrdude:
edit: find if run command continually, randomly output instead, leads me believe may clock issue:
any tips? thank you!
[1] https://www.sparkfun.com/products/11801
[2] http://www.mouser.com/productdetail/arduino/a000048/?qs=tbm5a8k56pvlawqt75jo/a==
[3] https://www.sparkfun.com/products/9716
edit 3: solved. needed add udev rule documented here: https://learn.adafruit.com/usbtinyisp/avrdude
edit 2: appears software issue. able burn bootloader on first on windows machine, must wrong linux config. changed title of thread accordingly. ideas?
i'm attempting use tiny avr programmer[1] burn new bootloader atmega328[2] via avrdude on linux, i'm running issues. specifically, "initialization failed" avrdude. can upload sketches same atmega328 chip via usb ftdi breakout[3] think chip ok.
as physical connections, i'm connecting reset, gnd, vcc, miso, mosi, sck atmega via jumper wires, , i've confirmed jumper wires good. i've confirmed vcc ~+5v. i've tried , without cap , pull-up resistor on reset pin of atmega. atmega has 16mhz crystal between xtal1 , xtal2 2 caps ground. nothing else connected. i've tried removing crystal well.
on tiny avr programmer side, i've tried connecting 2x3 isp pins, 1x6 programmer out pins, prototyping pins, , attiny socket pins itself.
in avrdude, i've tried using -pm328p , -pm328 instead of -patmega328p no avail. -f option fails, , outputs different device signature on every run. looking @ avrdude's source code, suspect has reset. have no idea how debug further though.
here's command output avrdude:
code: [select]
$ sudo /usr/share/arduino/hardware/tools/avrdude -c/usr/share/arduino/hardware/tools/avrdude.conf -v -v -v -v -patmega328p -cusbtiny -e -ulock:w:0x3f:m -uefuse:w:0x05:m -uhfuse:w:0xda:m -ulfuse:w:0xff:m
avrdude: version 6.0.1, compiled on oct 21 2013 @ 15:55:32
copyright (c) 2000-2005 brian dean, http://www.bdmicro.com/
copyright (c) 2007-2009 joerg wunsch
system wide configuration file "/usr/share/arduino/hardware/tools/avrdude.conf"
user configuration file "/home/***/.avrduderc"
using port : usb
using programmer : usbtiny
avrdude: usbdev_open(): found usbtinyisp, bus:device: 003:017
avr part : atmega328p
chip erase delay : 9000 us
pagel : pd7
bs2 : pc2
reset disposition : dedicated
retry pulse : sck
serial program mode : yes
parallel program mode : yes
timeout : 200
stabdelay : 100
cmdexedelay : 25
syncloops : 32
bytedelay : 0
pollindex : 3
pollvalue : 0x53
memory detail :
block poll page polled
memory type mode delay size indx paged size size #pages minw maxw readback
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
eeprom 65 20 4 0 no 1024 4 0 3600 3600 0xff 0xff
block poll page polled
memory type mode delay size indx paged size size #pages minw maxw readback
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
flash 65 6 128 0 yes 32768 128 256 4500 4500 0xff 0xff
block poll page polled
memory type mode delay size indx paged size size #pages minw maxw readback
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
lfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
block poll page polled
memory type mode delay size indx paged size size #pages minw maxw readback
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
hfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
block poll page polled
memory type mode delay size indx paged size size #pages minw maxw readback
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
efuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
block poll page polled
memory type mode delay size indx paged size size #pages minw maxw readback
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
lock 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
block poll page polled
memory type mode delay size indx paged size size #pages minw maxw readback
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00
block poll page polled
memory type mode delay size indx paged size size #pages minw maxw readback
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
programmer type : usbtiny
description : usbtiny simple usb programmer, http://www.ladyada.net/make/usbtinyisp/
avrdude: programmer operation not supported
avrdude: using sck period of 10 usec
cmd: [ac 53 00 00] [00 00 00 00]
cmd: [ac 53 00 00] [00 00 00 00]
avrdude: initialization failed, rc=-1
double check connections , try again, or use -f override
check.
avrdude done. thank you.
edit: find if run command continually, randomly output instead, leads me believe may clock issue:
code: [select]
avrdude: programmer operation not supported
avrdude: using sck period of 10 usec
cmd: [ac 53 00 00] [00 00 00 00]
cmd: [ac 53 00 00] [ac 53 53 02]
avrdude: avr device initialized , ready accept instructions
reading | | 0% 0.00scmd: [30 00 00 00] [00 00 00 00]
cmd: [30 00 01 00] [00 00 00 00]
reading | ################# | 33% 0.00scmd: [30 00 02 00] [00 00 00 00]
reading | ################################################## | 100% 0.00s
avrdude: device signature = 0x000000 (retrying)
reading | | 0% 0.00scmd: [30 00 00 00] [00 00 00 00]
cmd: [30 00 01 00] [30 00 01 00]
reading | ################# | 33% 0.00scmd: [30 00 02 00] [37 ff ff ff]
reading | ################################################## | 100% 0.00s
avrdude: device signature = 0x0000ff
avrdude: expected signature atmega328p 1e 95 0f
double check chip, or use -f override check.
avrdude done. thank you.
any tips? thank you!
[1] https://www.sparkfun.com/products/11801
[2] http://www.mouser.com/productdetail/arduino/a000048/?qs=tbm5a8k56pvlawqt75jo/a==
[3] https://www.sparkfun.com/products/9716
provide schematic better understanding of issue. remember atmega328p has 2 vcc pins , 2 gnd pins must connect them all. cap , pull resistor on reset pin not neccesary. 16 mhz crystal needed because see have arduino bootloader on chip.
Arduino Forum > Using Arduino > Microcontrollers > [Solved] Cannot burn bootloader w/ Tiny AVR Programmer on Linux (Windows works)
arduino
Comments
Post a Comment