View previous topic :: View next topic |
Author |
Message |
njepsen
Joined: 13 Aug 2007 Posts: 469
|
Posted: Tue Jan 11, 2022 5:23 am Post subject: Olimex AVR-ISP-MK2 |
|
|
have just purchased 2 new Olimex avr-is-mk2 programmers.
They did not work out of the box.
Installing the driver from libusb_win32.sourceforge.net 9 which is the recommended driver in the olimex manual) does not help.
I get "could not initialize programmer"
Any one else got these working ? if so - how ?
_________________
(BASCOM-AVR version : 2.0.8.5 ) _________________ Neil |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Tue Jan 11, 2022 9:40 am Post subject: |
|
|
you best read the manual of that programmer.
in order to use with libusb you need to change the firmware.
you can download it from the manufacturers web along with the simple procedure to change the firmware. _________________ Mark |
|
Back to top |
|
|
njepsen
Joined: 13 Aug 2007 Posts: 469
|
Posted: Wed Jan 12, 2022 12:58 am Post subject: |
|
|
Thanks for your reply Mark.
Quote: | with the simple procedure to change the firmware. |
This is not a simple process and took me 2 days of frustration to get the programmers working, and this epistle is to (hopefully) save others from the frustration that i encountered.
The following steps are what i used:
1. UPDATE PROGRAMMER FIRMWARE.
The correct firmware is the avr_dude version and is a hex file called 'libUSB-AVRISP-MKII.hex ' and is downloaded from here https://www.olimex.com/Products/AVR/Programmers/AVR-ISP-MK2/open-source-hardware firmware files for AVR Dude
Note that there are many options on this page.
The firmware is uploaded to the PROGRAMMER using a program called ATMEL FLIP which is downloaded from here: https://www.microchip.com/developmenttools/ProductDetails/flip
FLIP will not work unless java is installed on the PC. Java is downloaded from here: https://www.java.com/
Now the fun begins.
Plug in the programmer to a USB port and push the hidden button behind the pinhole with a pin - the leds will go out and the programmer is now in bootload mode
Boot FLIP, and go to device/select/AT90USB162/OK
Go to the 'load hex file' icon which is the red book and red arrow on the RHS
Find and load 'libUSB-AVRISP-MKII.hex' into the FLIP buffer
Go to settings/communication/USB/OPEN
If the open does not work ( and of course, mine didn't), probably a dll is missing. Several hours later, I found that atlibusb.dll was missing from c:/programs x86/atmel/flip/usb/x86
Copy it here from on-line and i had to do a driver install on the AT90USB162 at this point, which i dont understand.
Once usb connection is OK, the programming window on the LHS of FLIP takes 1 second.
When complete, unplug and re-plug the programmer and it will boot with the leds on.
Its worth trying it now with Bascom to see if it will ID a device. Mine ( of course!) did not and I had to install a new windows PC driver.
2. WINDOWS PC DRIVER
Copy the new driver from here https://www.olimex.com/Products/AVR/Programmers/AVR-ISP-MK2/open-source-hardware /recommended drivers for windows 10
DRIVER-MK2-AS-6-7-W10 (9).zip\DRIVER-MK2-AS-6-7-W10\Driver-Windows-Atmel-dude\x86 - ZIP archive, unpacked size 1,468,456 bytes
Go to device manager, find the programmer ( shown as AVRISP mkII in the list), double click,go to driver, uninstall device (delete driver software) and click uninstall.
Re-install the new driver. Mine says: libusb-win32 27/06/2016 ver 1.2.6.0 Signed by Atmel.
They are now both working. _________________ Neil |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Wed Jan 12, 2022 8:23 pm Post subject: |
|
|
thanks for the full explanation.
of course 'simple' depends on the point of view'
i already had FLIP installed since you can also use it in BASCOM and i made a number of usb enabled products that use FLIP. So for me this was working in just a few minutes. looking up and download the firmware took the most time.
when i read your instructions i can understand the frustration. odd that the manufacturer does not have better instructions and/or the libusb firmware installed by default. _________________ Mark |
|
Back to top |
|
|
Duval JP
Joined: 22 Jun 2004 Posts: 1161 Location: France
|
Posted: Thu Jan 13, 2022 2:19 pm Post subject: |
|
|
Hi Mark,
Would you please explain what is Flip and what is his use ?
I do not want to do a flop !
I program AVR wit Mysmart-usb-light and the new 128DB28 with FTDI serial link. Do I need Flip ? and for why ?
JP _________________ pleasure to learn, to teach, to create |
|
Back to top |
|
|
plouf
Joined: 19 Jan 2012 Posts: 78 Location: Athens,Greece
|
Posted: Thu Jan 13, 2022 3:21 pm Post subject: |
|
|
FLIP is a software programmer from microchip for SPECIFIC mcu's
https://www.microchip.com/en-us/development-tool/flip
the specific programmer OP has, specifical needs this in order to upgrade itself (mentiom in programmers manual) _________________ Christos |
|
Back to top |
|
|
guru
Joined: 17 Apr 2012 Posts: 1
|
Posted: Fri Jul 15, 2022 7:08 am Post subject: need atlibusb.dll |
|
|
Good day,
Team can you help us with atlibusb.dll we need same file as we are facing problem with connectivity as the programmer will work after updating the firmware so to update firmware we need that dll file so the connectivity with flip is possible |
|
Back to top |
|
|
kos19
Joined: 22 Dec 2008 Posts: 20
|
|
Back to top |
|
|
|