Hi @sumeryamaner.
Background
The ATTinyCore boards platform uses the AVRDUDE uploader tool.
The "Arduino AVR Boards" platform also uses AVRDUDE.
Each platform can specify the tool dependencies that Boards Manager will install along with the platform. In addition to causing the installation of those tools, this will also cause Arduino IDE to use the tools when a board of that platform is selected.
The 1.8.7 of the "Arduino AVR Boards" platform specifies a dependency on version 8.0.0-arduino1 of AVRDUDE. This is an update from version 1.8.6 of "Arduino AVR Boards", which instead specifies a dependency on AVRDUDE version 6.3.0-arduino17.
Version 1.5.2 ofATTinyCore specifies a dependency on version 6.3.0-arduino18 of AVRDUDE:
Explanation
That information is specified in the package index file used to install the platform via Boards Manager. So Arduino IDE will only have this information if you use that installation method. You did not use Boards Manager to install ATTinyCore. You instead did a manual installation. This means that, on your system, Arduino IDE doesn't have any information about which version of AVRDUDE should be used when working with the boards of the ATTinyCore platform. In this case, Arduino IDE uses the newest version of the tool that happens to be installed on your computer.
When you have Arduino AVR Boards 1.8.6 installed, that incidental AVRDUDE version is 6.3.0-arduino17. When you have Arduino AVR Boards 1.8.7 installed, that incidental AVRDUDE version is instead 8.0.0-arduino1.
The AVRDUDE configuration file used by ATTinyCore is designed for use with AVRDUDE version 6.3.0-arduino18. It is also compatible with AVRDUDE version 6.3.0-arduino17. Some breaking changes were made between versions 6.3.0-arduino18 and 8.0.0-arduino1 of AVRDUDE. These breaking changes resulted in an incompatibility with the configuration file used by ATTinyCore. This is the reason why you find that the upload fails when you have Arduino AVR Boards 1.8.7 installed.
Solutions
There are several solutions for the problem. I'll describe them below.
Use "Arduino AVR Boards" 1.8.6
You already discovered the workaround of rolling back your Arduino AVR Boards installation to version 1.8.6. This caused AVRDUDE 8.0.0-arduino1 to be uninstalled and the ATTinyCore-compatible AVRDUDE 6.3.0-arduino17 to be reinstalled.
If you are satisfied with this workaround, then you are all set. Arduino IDE will occasionally notify you that a new version of the boards platform is available, you'll need to refrain from accepting the offer that will cause an update back to the problematic version of the platform. If you find these notifications annoying, you can disable them via the advanced settings.
I'll provide instructions you can follow to do that:
- Press the Ctrl+Shift+P keyboard shortcut (Command+Shift+P for macOS users) to open the "Command Palette".
A menu will appear on the editor toolbar:
- Select the "Preferences: Open Settings (UI)" command from the menu.
ⓘ You can scroll down through the list of commands to find it or type the name in the field.
A "Settings" tab will open in the Arduino IDE main panel.
- Type
arduino.checkForUpdates in the "Search Settings" field of the "Settings" tab.
- Uncheck the box under the "Arduino: Check For Updates" setting.
- Close the Settings tab by clicking its X icon.
If you disable the automatic update check, make sure to periodically do a manual check for newer versions of Arduino IDE and your installed boards platforms and libraries.
You can check for new versions of Arduino IDE by selecting Help > Check for Arduino IDE Updates from the Arduino IDE menus.
You can check for new versions of boards platforms and libraries by the following procedure:
- Press the Ctrl+Shift+P keyboard shortcut (Command+Shift+P for macOS users) to open the "Command Palette".
- Select the "Arduino: Update Indexes" command from the menu.
A notification will appear at the bottom right corner of the Arduino IDE window to indicate the progress of downloading the index files which provide Arduino IDE with the information about which versions of platforms and libraries are available.
- Wait for the index file download process to finish.
- Select Tools > Board > Boards Manager... from the Arduino IDE menus to open the "Boards Manager" view in the left side panel.
- Select "Updatable" from the "Type" menu in the Boards Manager view.
A list of installed boards platforms for which updates are available will be listed.
- Click the "UPDATE" button on the entry for any platform you wish to update.
- Select Tools > Manage Libraries... from the Arduino IDE menus to open the "Library Manager" view in the left side panel.
- Select "Updatable" from the "Type" menu in the Library Manager view.
A list of installed libraries for which updates are available will be listed.
- Click the "UPDATE" button on the entry for any library you wish to update.
Install ATTinyCore via Boards Manager
The root of the problem is the manual installation of ATTinyCore. If you instead install it via Boards Manager, then it can coexist with Arduino AVR Boards 1.8.7, no problem.
So unless you have a specific reason for using a manual installation of ATTinyCore, the best solution will be to remove that manual installation and replace it with a Boards Manager installation.
The valid reasons for using a manual installation of ATTinyCore:
- You need to have the development version of the platform installed in order to contribute to the development of the platform or for beta testing.
- You need some fixes or enhancements that are not present in the release version of the platform.
An alternative reason some might have for a manual installation is as a workaround for the unfortunate non-functional state of DrAzzy's official Boards Manager installation system due to their failure to maintain the website infrastructure it depends on. However, it is still possible to install ATTinyCore via Boards Manager. You can follow these instructions to work around the current non-functional state:
- Remove the manual installation of ATTinyCore by deleting the folder at the following path on your hard drive:
G:\Belgeler\Arduino\hardware\ATTinyCore
Please be careful when deleting things from your computer. When in doubt, back up!
- Click the following link:
https://web.archive.org/web/20251012082117/https://azduino.com/bin/micronucleus/micronucleus-cli-2.5-azd1b-x86_64-mingw32.zip
Your web browser will start a file download.
- Wait for the file download to finish.
- Use Windows File Explorer to copy the downloaded file to the folder at the following path on your hard drive:
C:\Users\<username>\AppData\Local\Arduino15\
(where <username> is your Windows username)
If looking for it with your file manager or command line, note that the AppData folder is hidden by default. On Windows "File Explorer", you can make it visible by opening the "View" menu, then checking the box next to "☐ Hidden items".
- Follow the official instructions to install ATTinyCore using Boards Manager:
https://github.com/SpenceKonde/ATTinyCore/blob/v2.0.0-devThis-is-the-head-submit-PRs-against-this/Installation.md#boards-manager-installation:~:text=Boards%20Manager%20Installation