Olimex Support Forum

Microcontrollers => AVR => Topic started by: vloeby on March 01, 2023, 01:42:58 PM

Title: Olimex AVR-ISP-MK2 with BASCOM-AVR IDE
Post by: vloeby on March 01, 2023, 01:42:58 PM
Once it worked well for programming ATiny series in BASCOM.
Trying to program in C i changed the firmware ( in windows 10.64) (page 16 olimex avr-isp-mk2 manual),with microchip studio 7. For using again the Bascom-avr IDE, i uninstalled microchip studio 7and the driver.
But now in Bascom-avr-ide it funtion no longer, not with the JUNGO driver and not with AVRDUDE.

Does anyone have a solution ?

Thanks

Title: Re: Olimex AVR-ISP-MK2 with BASCOM-AVR IDE
Post by: LubOlimex on March 02, 2023, 08:16:40 AM
You wrote that you changed the firmware to work with Atmel Studio but never wrote that you revert the firmware back. Did you revert the firmware?
Title: Re: Olimex AVR-ISP-MK2 with BASCOM-AVR IDE
Post by: vloeby on March 03, 2023, 10:03:28 AM
Befor each driver i loaded, i puted the processor in bootloeder state (page 16 )
Title: Re: Olimex AVR-ISP-MK2 with BASCOM-AVR IDE
Post by: LubOlimex on March 06, 2023, 01:03:26 PM
I tested it here under Windows 10 x64. I managed to get Bascom working by loading the latest firmware of AVR-ISP-MK2 suitable for Atmel/Microchip Studio and using the LibUSB drivers.

Maybe if the problem re-install the Microchip Studio, maybe uninstalling the studio removed the drivers?
Title: Re: Olimex AVR-ISP-MK2 with BASCOM-AVR IDE
Post by: vloeby on March 07, 2023, 02:59:17 PM
removed all related apps. Connected programmer > reset button > disconnected programmer > connected again. Driver manager > microchip tools > AVR-ISP-MKII driver 1.2.2.0 > file version1.2.6.0 > driver files c:\windows system32\driver\libusb0 sys. In bascom-ide > options > programmer, non off the selected programmers works. ?
Title: Re: Olimex AVR-ISP-MK2 with BASCOM-AVR IDE
Post by: LubOlimex on March 08, 2023, 02:57:53 PM
Check here: https://www.olimex.com/forum/index.php?topic=5939.0
Title: Re: Olimex AVR-ISP-MK2 with BASCOM-AVR IDE
Post by: vloeby on March 16, 2023, 07:36:41 PM
According to your latest info. i treid to install the correct driver (AVRDUDE) for window 10 In BASCOM-IDE nothing happened when i wanted to upload a file. Since i don't have a atmega 16, i changed in the parameter field mega16 by t25.
Maybe the screenshots give more clarity.

Regard

Sorry i don't no how to put the images from my screenshot here
Title: Re: Olimex AVR-ISP-MK2 with BASCOM-AVR IDE
Post by: LubOlimex on March 17, 2023, 11:43:36 AM
You can post images in free image sharing web-site, I usually use https://imgur.com/ and get sharable links then post links to them here.
Title: Re: Olimex AVR-ISP-MK2 with BASCOM-AVR IDE
Post by: vloeby on March 17, 2023, 02:11:28 PM
hhttps://imgur.com/81GCpmZttps://imgur.com/ATHbJ0U

Hopefully this worked

regards
Title: Re: Olimex AVR-ISP-MK2 with BASCOM-AVR IDE
Post by: LubOlimex on March 31, 2023, 04:38:30 PM
It doesn't show all the info needed. You should've showed the properties of the debugger in device manager to see exact driver associated with it.

Look how it looks here in the three pictures, compare with your side:

https://imgur.com/a/PGVUkNV
Title: Re: Olimex AVR-ISP-MK2 with BASCOM-AVR IDE
Post by: vloeby on April 03, 2023, 07:27:32 PM
maybe i erased  the screenshots on the imgursite, can you send them again ( my apologies ).

I reinstalled libusb driver avr-isp-mk2 to try in bascom to use programmer > USBprog programmer / avr-isp-mkii ( gives less error codes
Title: Re: Olimex AVR-ISP-MK2 with BASCOM-AVR IDE
Post by: LubOlimex on April 04, 2023, 11:20:17 AM
> maybe i erased  the screenshots on the imgursite, can you send them again ( my apologies ).

You didn't erase them, just links were a bit wrong. These are your pictures that you shared in earlier post:

https://imgur.com/81GCpmZ

https://imgur.com/ATHbJ0U

These are my pictures:

https://imgur.com/a/PGVUkNV

Anyway just try to get same as my pictures! Especially the driver thing to be the same.

Title: Re: Olimex AVR-ISP-MK2 with BASCOM-AVR IDE
Post by: vloeby on April 05, 2023, 10:31:55 AM
ican't see the images, by scrolling in a flash they disappears and can't scroll back ( black image )

this happened afther the first time i tried to enlarge the images.
Title: Re: Olimex AVR-ISP-MK2 with BASCOM-AVR IDE
Post by: LubOlimex on April 05, 2023, 10:54:28 AM
Try another Internet browser...
Title: Re: Olimex AVR-ISP-MK2 with BASCOM-AVR IDE
Post by: vloeby on April 06, 2023, 10:01:47 AM
I got the print screens. The choice of browser is irrelevant.
When open the link, immediately scrolls, otherwise the print screens disappers.

https://imgur.com/a/7MoPKFP (https://imgur.com/a/7MoPKFP)
Title: Re: Olimex AVR-ISP-MK2 with BASCOM-AVR IDE
Post by: LubOlimex on April 10, 2023, 02:00:54 PM
Driver looks alright. What about he hardware connection between AVR-ISP-MK2 and the target? Which connector do you use for the connection? Target is ATtiny25 - what is the programming interface of that chip?

Did you also test with Atmel Studio just to confirm if the issue is specifically with Bascom?
Title: Re: Olimex AVR-ISP-MK2 with BASCOM-AVR IDE
Post by: vloeby on April 17, 2023, 10:01:50 AM
The hardware is okay. But i messed with loading the hex files.
So i restarted all over again.
Fist loaded from Olimex AVR-ISP-MK2-firmware-windows drivers.zip and then extracted everything ( which i didn't not well ).
Then following the procedure from the manual: 4.2.1 changing firmware for windows users.
On point 5. file >hex files > AVRDUDE / arduino / libusb >
libusb-AVRISP-MKII.hex

At the end, everything was working fine.!!!

Thanks for always patiently replying.