December 14, 2024, 07:41:59 PM

Olimex AVR ISP MK2 not working

Started by max246, September 24, 2015, 11:59:36 PM

Previous topic - Next topic

max246

I just got my Olimex AVR ISP MK2 and I followed the instructions to flash the firmware to use it with AVRDUDE, all good!

I add my udev rules

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


all good here, even reboot the machine but when I tried to get an original ARDUINO UNO hooked up to my programmer, just to check the communication works, I get all these errors

$ sudo avrdude -p m328p -c avrispmkII -
P usb
avrdude: stk500v2_recv_mk2: error in USB receive
avrdude: stk500v2_recv_mk2: error in USB receive
avrdude: stk500v2_recv_mk2: error in USB receive
avrdude: stk500v2_recv_mk2: error in USB receive
avrdude: stk500v2_recv_mk2: error in USB receive
avrdude: stk500v2_recv_mk2: error in USB receive
avrdude: stk500v2_getsync(): timeout communicating with programmer
avrdude: stk500v2_recv_mk2: error in USB receive

I cant understand what is wrong, I read that with usb 3.0 doesnt work but there is a work around for that? I dont see any "blue ports" on my laptop so I suppose they are usb 2.0

What else can I do to make it work?

Btw I am running Linux Mint 64 bit

JohnS

#1
I think this is a widely-reported bug in recent avrdude -- see the many posts on the net.  There were so many I stopped reading but have a look and there's probably a fix, or go back to an older avrdude.

Maybe this helps https://www.olimex.com/forum/index.php?topic=3208.0

John