Errors using avr-isp-mk2 under ubuntu

Started by robsbots, October 23, 2013, 02:59:08 PM

Previous topic - Next topic

robsbots

Hi.

I'm having problems getting the above programmer to work under ubuntu with avrdude.

I have re-flashed the programmer with dfu-programmer using the hex file found here :-
https://www.olimex.com/Products/AVR/Programmers/AVR-ISP-MK2/resources/AVR-ISP-MK2-Firmware-WindowsDrivers.zip
(I know its a windows archive, but I was unable to see the linux archive.)

When I try to program a chip all I get is "avrdude: stk500v2_ReceiveMessage(): timeout"

The command I used is "ardude -p m1284p -c avrispmkII -e -U flash:w:optiboot_atmega1284p.hex" from the directory containing the hex file.
The chip is an ATMEGA1284P. It is on a bread board. I have tried it powered from the programmer and powered from it's own supply.


My rules file is set up as follows :- name : /etc/udev/rules.d/60-avrisp.rules

Quote
SUBSYSTEM!="usb_device", ACTION!="add", GOTO="avrisp_end" 

# Atmel Corp.JTAG ICE mkII
ATTR{idVendor}=="03eb", SYSFS{idProduct}=="2103", MODE="660", GROUP="dialout"

# Atmel Corp. AVRISP mkII
ATTR{idVendor}=="03eb", SYSFS{idProduct}=="2104", MODE="660", GROUP="dialout"

# Atmel Corp. Dragon
ATTR{idVendor}=="03eb", SYSFS{idProduct}=="2107", MODE="660", GROUP="dialout"

# LadyAda. AVRTiny
ATTR{idVendor}=="1781", ATTRS{idProduct}=="0c9f", MODE="660", GROUP="dialout"

LABEL="avrisp_end"

My user is a member of the dialout group.
What am I doing wrong ?

Thanks
Rob

LubOlimex

Hey Rob

Did you refer to the instructions on page 12 of the user's manual: https://www.olimex.com/Products/AVR/Programmers/AVR-ISP-MK2/resources/AVR-ISP-MK2.pdf?

Best regards,
Lub/OLIMEX
Technical support and documentation manager at Olimex