Is there another way to specify the programmer to use? I am using AVRISP mkii, but the programmer that appears in the verbose status report is stk500v2.
Regardless if that is pertinent, I can't get Arduinoi IDE 2.2.1 to program my ATTINY85 (it is jut an SOIC sourced from Mouser on a breadboard). I CAN program the same part with the same programmer using Atmel Studio 7. This suggests that the hardware path to the chip (and the chip itself) are working and connected correctly.
I moved your topic to an appropriate forum category @deepsix.
In the future, please take some time to pick the forum category that best suits the subject of your topic. There is an "About the _____ category" topic at the top of each category that explains its purpose.
I'm using "Upload with programmer", but as mentioned in the subject, the wrong programmer is showing up in the verbose status reports. stk500 is showing up, but what I have configured is AVR ISP mkII (coincidentally, AVR ISP mkII is also what I have connected to my PC). At this point, I am chasing a science experiment. I prefer Atmel Studio 7, it works, so I am not impeded by this. However, I am curious to know why it won't work and who knows, maybe I'll need AVR IDE some day.
As I recall, the Arduino IDE does not recognize the default USB driver for the AVR-ISP MkII. I'm not sure I ever got mine to work with the IDE, and sometimes still use Atmel Studio for such projects as yours.
I use and strongly recommend Pololu's AVR ISP Programmer V2.1. It does everything you want, at 3.3 or 5V, including emulating an FTDI type programmer, and adds a second USB-serial port. It works with the Arduino IDE 1.8.x (I don't know about IDE V2).
Hi @deepsix. I'm going to ask you to post the full verbose output from a programming attempt.
This procedure is not intended to solve the problem. The purpose is to gather more information.
Please do this:
Select File > Preferences... (or Arduino IDE > Settings... for macOS users) from the Arduino IDE menus.
The "Preferences" dialog will open.
Uncheck the box next to Show verbose output during: ☑ compilation in the "Preferences" dialog.
Check the box next to Show verbose output during: ☐ upload.
Click the "OK" button.
Attempt to program the ATtiny85, just as you did before.
Wait for the process to fail.
You will see an error notification at the bottom right corner of the Arduino IDE window. Click the "COPY ERROR MESSAGES" button on that notification.
Open a forum reply here by clicking the "Reply" button.
Click the <CODE/> icon on the post composer toolbar.
This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
Press Ctrl+V.
This will paste the error output from the upload into the code block.
Move the cursor outside of the code tags before you add any additional text to your reply.
@deepsix everything else was perfect, but it looks like you got mixed up when following my instructions and disabled verbose output during upload while enabling verbose output during compilation in your Arduino IDE preferences. We need the verbose output from the upload.
The reason I also added step (2) for disabling the verbose output during compilation is that we don't care about that output since the problem is happening during the "upload" operation.
Please try again, this time being careful to follow step (3) of the instructions exactly.
Please let me know if you have any questions or problems while following the instructions.
Sketch uses 1120 bytes (13%) of program storage space. Maximum is 8192 bytes.
Global variables use 29 bytes (5%) of dynamic memory, leaving 483 bytes for local variables. Maximum is 512 bytes.
"C:\Users\User\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude" "-CC:\Users\User\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf" -v -V -pattiny85 -cstk500v2 -Pusb "-Uflash:w:C:\Users\User\AppData\Local\Temp\arduino\sketches\058D277AD80AD65B8D2BD94B8171079C/LO_Board_10-810M.ino.hex:i"
avrdude: Version 6.3-20190619
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\Users\User\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"
Using Port : usb
Using Programmer : stk500v2
avrdude: usbdev_open(): did not find any USB device "usb" (0x03eb:0x2104)
avrdude done. Thank you.
Failed programming: uploading error: exit status 1
This error is caused by using an "AVRISP mkII" driver that is not compatible with the "AVRDUDE" tool used by Arduino IDE for this operation. The incompatible "Jungo" driver is installed by Atmel Studio, setting you up for pain once you switch to using AVRDUDE.
My recommendation is to switch to using the "libusbK" driver.
You can do that easily with the "Zadig" driver installation tool:
Connect the "AVRISP mkII" programmer to your computer with a USB cable.
From the dropdown menu in the "Zadig" window, 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.
In case you for some reason want to continue using Atmel Studio in addition to AVRDUDE/Arduino IDE, you might be interested in the technique described here for the coexistence of both drivers:
This is normal and expected. The "AVRISP mkII" programmer definition is configured to use the stk500v2 protocol in the avrdude command generated by Arduino IDE:
The generated command works perfectly once you have the right driver installed, so the use of this protocol has nothing to do with the error you encountered.
OK. Thank you for the response. The risk of upsetting the Atmel Studio implementation is not worth attempting a dual-use configuration at this time. If I ever need the IDE, I will address it then.