Go Down

Topic: Struggling to get AVRISP mkii working with Mega2560 (Read 20 times) previous topic - next topic

Quirkologist

Jun 30, 2016, 04:06 pm Last Edit: Jun 30, 2016, 04:12 pm by Quirkologist
Hi all,

I know this has been covered in the past but I've found various conflicting bits of advice. I've built my own PCB for the Mega2560 and bought an (Olimex) AVRISP mkii to program it using Arduino IDE.

When trying to load the bootloader the IDE hangs indefinitely with the message 'Burning bootloader to I/O board(this may take a minute)...

Can someone firstly confirm these are the correct steps please and then perhaps advise on how to solve the problem.

-Installed libusb-win32 driver version 1.2.6.0 (verfied with device manager)
-Plugged everything in
-Tools>>board>>Mega
-Tools>>programmer>>AVRISP mkii
-Tools>>Burn bootloader

And then after that I can in theory 'upload using programmer' and I'm done, right?

So yeah...it hangs when trying to load the bootloader and if I try to upload sketch with programmer I get the following error.

All help appreciated, many thanks.
Code: [Select]

avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"

         Using Port                    : usb
         Using Programmer              : stk500v2
avrdude: usbdev_open(): Found AVRISP mkII, serno: 000200212345
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
         AVR Part                      : ATmega2560
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PA0
         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    10     8    0 no       4096    8      0  9000  9000 0x00 0x00
           flash         65    10   256    0 yes    262144  256   1024  4500  4500 0x00 0x00
           lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         Programmer Type : STK500V2
         Description     : Atmel STK500 Version 2.x firmware
         Programmer Model: AVRISP mkII
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

dmjlambert

#1
Today at 04:49 am Last Edit: Today at 04:52 am by dmjlambert
AVRISP mkII does not work with Arduino IDE due to a long-standing bug.  

http://forum.arduino.cc/index.php?topic=345838.0

As a workaround, you can enable in preferences show verbose output on upload.   The IDE may successfully run the first avrdude command and fail on the second command.  Copy the second avrdude command to the command prompt on your computer and run it.   


Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy