Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Olimex AVR-ISP-MK2

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> AVR
View previous topic :: View next topic  
Author Message
njepsen

Bascom Member



Joined: 13 Aug 2007
Posts: 426

newzealand.gif
PostPosted: Tue Jan 11, 2022 5:23 am    Post subject: Olimex AVR-ISP-MK2 Reply with quote

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
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5385
Location: Holland

blank.gif
PostPosted: Tue Jan 11, 2022 9:40 am    Post subject: Reply with quote

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
View user's profile Visit poster's website
njepsen

Bascom Member



Joined: 13 Aug 2007
Posts: 426

newzealand.gif
PostPosted: Wed Jan 12, 2022 12:58 am    Post subject: Reply with quote

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
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5385
Location: Holland

blank.gif
PostPosted: Wed Jan 12, 2022 8:23 pm    Post subject: Reply with quote

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
View user's profile Visit poster's website
Duval JP

Bascom Member



Joined: 22 Jun 2004
Posts: 1028
Location: France

france.gif
PostPosted: Thu Jan 13, 2022 2:19 pm    Post subject: Reply with quote

Hi Mark,
Would you please explain what is Flip and what is his use ?

I do not want to do a flop ! Wink

I program AVR wit Mysmart-usb-light and the new 128DB28 with FTDI serial link. Do I need Flip ? and for why ?
JP Shocked Confused

_________________
pleasure to learn, to teach, to create
Back to top
View user's profile Visit poster's website
plouf

Bascom Member



Joined: 19 Jan 2012
Posts: 44
Location: Athens,Greece

greece.gif
PostPosted: Thu Jan 13, 2022 3:21 pm    Post subject: Reply with quote

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
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> AVR All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum