I tried the Zadif V2.7 loading ( if I remember correctly) the WinUSB driver. = No change from above.
I tried the DRIVER-MK2-AS-6-7-W10.zip ** = No change from above.
**This is a Windows driver for Olimex AVR-ISP-MK2 for Atmel Studio
releases.
I uninstalled everything and installed IDE V1.8.18.
Swapped out the original hex file for the optiboot hex file.
Burned bootloader with no errors.
Notes:
With the IDE V2.0.0 RC5 the AVRISP mkII LED was blinking orange. With NO changes in wiring, with the IDE V1.8.18 the LED turned Green.
My AVRISP mkII is an older clone.
I verified the watchdog timer is working by creating an infinite loop with an LED blink in setup.
I get the same error when using both Arduino IDE 2.0.0-rc5 and 1.8.18 after installing the "WinUSB" driver for my "Atmel AVRISP mkII" programmer via "Zadig".
I have success with both IDE versions when I have installed the "libusbK" driver (which I always use) via "Zadig". I also have success doing the same with the "libusb-win32" driver, which is the more traditional driver for using the "Atmel AVRISP mkII" programmer with AVRDUDE (as the Arduino IDE does).
I was not able to find any condition where Arduino IDE 1.8.18 worked and Arduino IDE 2.0.0-rc5 did not. I am interested if anyone can provide me with detailed instructions for producing such conditions.
Please try this:
Connect your "AVRISP mkII" programmer to your computer with a USB cable.
Start "Zadig".
From the dropdown menu, select "AVRISP mkII".
If it doesn't show up on the menu, then select Options > List all devices from the menus in Zadig and check again.
Click the ▴ button to the right of the "Driver" selection field until you see "libusbK".
Click the Replace Driver button.
An "Installing Driver..." dialog will now appear.
Wait for the driver installation process to finish.
Click the Close button in the "Driver Installation" dialog.
Close the "Zadig" window.
Are you now able to burn the bootloader using Arduino IDE 2.0.0-rc5?