AVRisp MKII-clone 'RESET_TOGGLES_LIBUSB_COMPAT' not working..,,

952 views
Skip to first unread message

Arif Darmawan

unread,
Jan 29, 2014, 11:20:15 PM1/29/14
to lufa-s...@googlegroups.com
Hi.,

I have been compiled AVRISP MKII CLONE under Atmel Studio..,,
I using ATmega16u2, and add 'RESET_TOGGLES_LIBUSB_COMPAT' in AVR GNU/C Compiler>Symbol.
Successful without warning..,,

after installation of jungo driver i try to check it into some boards, it's working..
but after reset my atmega16u2 with button, it jump to DFU bootloader,

How to change to avrdude compatibility mode?

Thx,
Arif

Dean Camera

unread,
Jan 30, 2014, 4:13:11 PM1/30/14
to lufa-s...@googlegroups.com

Which board? If yours is one that has the reset tied to HWB you will need to turn off the HWBE fuse using an external programmer.

- Dean

--
You received this message because you are subscribed to the Google Groups "LUFA Library Support List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lufa-support...@googlegroups.com.
To post to this group, send email to lufa-s...@googlegroups.com.
Visit this group at http://groups.google.com/group/lufa-support.
For more options, visit https://groups.google.com/groups/opt_out.

Arif Darmawan

unread,
Feb 4, 2014, 4:19:46 AM2/4/14
to lufa-s...@googlegroups.com
Hi dean,..

Thanks for your reply.
My AVRisp can blink 5 times and entering LibUSB compatible mode,
I using this tutorial under windows7
http://eliaselectronics.com/using-the-avrispmkii-with-avrdude-on-windows/

But i receive error massages
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

Any sugestion ?

Thx,
Arif
Message has been deleted

Arif Darmawan

unread,
Feb 4, 2014, 4:48:19 AM2/4/14
to lufa-s...@googlegroups.com

Dean Camera

unread,
Feb 9, 2014, 12:25:20 AM2/9/14
to lufa-s...@googlegroups.com
Hi Arif,

If it's blinking 5 times, it should be in the correct compatibility mode
which removes the USB bidirectional hackery Atmel Studio needs (which
means it should be quite robust). Are you using the standard libUSB
driver, or are you using the filter driver? What version of AVRDude are
you running?

- Dean

On 4/02/2014 8:48 PM, Arif Darmawan wrote:
> Here my AVRisp mkII clone board
> https://drive.google.com/folderview?id=0B7rz1reUtLyuQWZ0Z2l4T204UWs&usp=sharing

Arif Darmawan

unread,
Feb 12, 2014, 3:22:14 AM2/12/14
to lufa-s...@googlegroups.com

I use standard LIBusb driver, generated inf file with INF WIZARD,
AVRDude version is 6.1,

but in my PC, driver under ATMEL USB Devices -> AVRisp MKii
not in libUSB, is it maybe the problem?

my USBasp under ATMEL USB Devices to but working normally.


Dean Camera

unread,
Feb 17, 2014, 4:01:06 AM2/17/14
to lufa-s...@googlegroups.com
That looks correct; it will either be listed under "Jungo" for the official Atmel drivers, and the "Atmel USB Devices" for libUSB. This has be a little stumped at the moment -- what is the device serial number as reported in the Details tab when it is in libUSB compatibility mode?

Cheers!
- Dean

Arif Darmawan

unread,
Feb 18, 2014, 4:13:31 AM2/18/14
to lufa-s...@googlegroups.com

is this serial number?
in Details Tab> Device Instance Path

USB\VID_03EB&PID_2104\000200312345

in ATMEL STUDIO mode serial number is 000200212345

Thx,
Arif

Dean Camera

unread,
Feb 19, 2014, 4:31:18 AM2/19/14
to lufa-s...@googlegroups.com
Yes, that's the serial number, and those are correct (000200312345 for libUSB, 000200212345 for Atmel Studio/Jungo). By all accounts, it should work win AVRDude in the libUSB configuration, although I'm still waiting for all my electronics stuff to be shipped back to me from Norway so I can't double-check myself. Can you post the output of running avrdude with the -vvvv flag set to enable very-verbose debug output mode?

- Dean

Arif Darmawan

unread,
Feb 23, 2014, 9:11:53 PM2/23/14
to lufa-s...@googlegroups.com
here avrdude with very verbose option,,

D:\avrdude>avrdude -p m128 -c avrispmkII -P usb -vvvv

avrdude: Version 6.1-svn-20131205, compiled on Dec  5 2013 at 17:34:22
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "D:\avrdude\avrdude.conf"

         Using Port                    : usb
         Using Programmer              : avrispmkII
avrdude: usbdev_open(): Found AVRISP mkII, serno: 000200312345
avrdude: Sent: . [01]
avrdude: usbdev_recv_frame(): usb_bulk_read(): libusb0-dll:err [submit_async] submitting request failed, win error: The parameter is in
correct.


avrdude: stk500v2_recv_mk2: error in USB receive
avrdude: Sent: . [01]
avrdude: usbdev_recv_frame(): usb_bulk_read(): libusb0-dll:err [submit_async] submitting request failed, win error: The parameter is in
correct.


avrdude: stk500v2_recv_mk2: error in USB receive
avrdude: Sent: . [01]
avrdude: usbdev_recv_frame(): usb_bulk_read(): libusb0-dll:err [submit_async] submitting request failed, win error: The parameter is in
correct.


avrdude: stk500v2_recv_mk2: error in USB receive
avrdude: Sent: . [01]
avrdude: usbdev_recv_frame(): usb_bulk_read(): libusb0-dll:err [submit_async] submitting request failed, win error: The parameter is in
correct.


avrdude: stk500v2_recv_mk2: error in USB receive
avrdude: Sent: . [01]
avrdude: usbdev_recv_frame(): usb_bulk_read(): libusb0-dll:err [submit_async] submitting request failed, win error: The parameter is in
correct.


avrdude: stk500v2_recv_mk2: error in USB receive
avrdude: Sent: . [01]
avrdude: usbdev_recv_frame(): usb_bulk_read(): libusb0-dll:err [submit_async] submitting request failed, win error: The parameter is in
correct.


avrdude: stk500v2_recv_mk2: error in USB receive
avrdude: stk500v2_getsync(): timeout communicating with programmer
         AVR Part                      : ATmega128
         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         4    12    64    0 no       4096    8      0  9000  9000 0xff 0xff
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           flash         33     6   128    0 yes    131072  256    512  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  9000  9000 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  9000  9000 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  9000  9000 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  9000  9000 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          4    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 : STK500V2
         Description     : Atmel AVR ISP mkII
         Programmer Model: AVRISP mkII
avrdude: Sent: . [03] . [90]
avrdude: usbdev_recv_frame(): usb_bulk_read(): libusb0-dll:err [submit_async] submitting request failed, win error: The parameter is in
correct.


avrdude: stk500v2_recv_mk2: error in USB receive
avrdude: Sent: . [01]
avrdude: usbdev_recv_frame(): usb_bulk_read(): libusb0-dll:err [submit_async] submitting request failed, win error: The parameter is in
correct.


Dean Camera

unread,
Feb 24, 2014, 4:16:16 AM2/24/14
to lufa-s...@googlegroups.com
Hrm, that's odd - perhaps something's changed in the libUSB interfaces
between the version your AVRDUDE is compiled against and the version you
have installed, since that error code indicates an incorrect API call.

You appear to be using a brand new build of AVRDUDE; where did you
source the libUSB drivers from? Try uninstalling them and replacing them
with a newer version from
http://sourceforge.net/projects/libusb-win32/files/libusb-win32-releases/1.2.6.0/
. What version of libUSB did you link against?

Cheers!
- Dean

Arif Darmawan

unread,
Mar 4, 2014, 9:07:29 PM3/4/14
to lufa-s...@googlegroups.com
I used LibUSB 1.2.6.0, it's newest LibUSB from your link.
And still not working and same error massages,

Arif,

Dean Camera

unread,
Mar 11, 2014, 5:23:15 AM3/11/14
to lufa-s...@googlegroups.com
Unfortunately in that case you'll have to wait until my equipment arrives at the end of the month so I can see if I can replicate the issue myself. Is anyone else able to test this out in the meantime?

Cheers!
- Dean

Arif Darmawan

unread,
Apr 2, 2014, 4:51:04 AM4/2/14
to lufa-s...@googlegroups.com
Hi, Dean

I'm very curious about this issue, than i try avrdude in the Ubuntu. :D
AVRisp mkii clone works well in the Ubuntu with "Jungo mode".
Than i changed it to "LIBusb mode" with Avrdude and get same error massages like in the Windows.

Is this correct Ubuntu/Linux don't need "LIBusb compatible mode"? Is "Libusb mode" only working in the Windows or Maybe MacOS only?

I try Tom Light AVRDude compatible .HEX and burn too my AVRispMkii Clone. -->  http://tom-itx.dyndns.org:81/~webpage/avr/usbtinymkii/131027_AVRISP_avrdude.hex
We are pretty sure Tom Light build your firmware correctly and He test it in the MacOS and successful.
So, I try to use it in the windows again. Unfortunately  error messages appears again.
I used avrdude 6.1 and 5.10(Tom Light used this version Avrdude) not working at all.
Like you said, this issue maybe from LibUSB-Win32.

Has Anyone tried AVRispMKii clone "LIBusb Mode" in windows? Please help me with simple Tutorial,

Arif,

Dean Camera

unread,
Apr 5, 2014, 8:35:25 PM4/5/14
to lufa-s...@googlegroups.com
Arif,

That's correct; the compatibility mode is for AVRDUDE on Windows only.

Looking around I found this:
https://savannah.nongnu.org/bugs/index.php?40831

Which may be the source of the issue, and requires an AVRLibC patch in more recent (>6.0) versions of AVRDUDE on WIndows.

- Dean
--
You received this message because you are subscribed to the Google Groups "LUFA Library Support List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lufa-support...@googlegroups.com.
To post to this group, send email to lufa-s...@googlegroups.com.
Visit this group at http://groups.google.com/group/lufa-support.
For more options, visit https://groups.google.com/d/optout.

Arif Darmawan

unread,
Apr 8, 2014, 4:02:42 AM4/8/14
to lufa-s...@googlegroups.com
Hi Dean,

Finally I am successful running avrdude with avrispmkii clone(LibUSB mode) in Windows 7 64bit.
Yes It is an AVRdude 6.0.1 bug, this Link is very helping me -> http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&p=1119592#1119592
If anyone need my new AVRdude.exe+Driver use this   -> https://drive.google.com/folderview?id=0B7rz1reUtLyuT3ppTTlpeFh1WHc&usp=sharing
 
Thanks A lot,
Arif

Daniel Day

unread,
Aug 16, 2015, 1:02:21 AM8/16/15
to LUFA Library Support List
Arif, your year old upload just solved 2 days of frustration for me thanks!
Reply all
Reply to author
Forward
0 new messages