I added the URL to preferences, no error messages, but ATTINYCORE does not show up in the board manager. Have I forgotten a step?
Hi @mike_trantham. This is caused by a bug in Arduino CLI versions 0.34.0 - 0.34.2, which also affects Arduino IDE versions 2.2.0 - 2.2.1:
I apologize for any inconvenience this has caused.
The bug has already been fixed, but Arduino IDE is still using the version of Arduino CLI with the bug so the fix is not yet available to Arduino IDE users (updating the Arduino CLI dependency is in progress now).
I'll provide instructions you can follow for a workaround to the bug:
- Select File > Quit from the Arduino IDE menus if it is running.
- Open the following folder in your file manager program (e.g., Windows File Explorer):
- If you are using Linux:
(Where/home/<username>/.arduino15/
<username>
is your Linux username)
The.arduino15
folder may be hidden by default in your file manager and terminal. - If you are using macOS:
(Where/Users/<username>/Library/Arduino15/
<username>
is your macOS username)
TheLibrary
folder is hidden by default. You can make it visible by pressing the Command+Shift+. keyboard shortcut.
- If you are using Linux:
- If you are using Windows:
(WhereC:\Users\<username>\AppData\Local\Arduino15\
<username>
is your Windows username)
If looking for it with your file manager or command line, note that the<!-- TODO: path -->
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".
- You will see a file named
package_drazzy.json
in that folder. Rename it topackage_drazzy.com_index.json
.
Now start Arduino IDE again. You should now see ATTinyCore (as well as the other SpenceKonde/DrAzzy) platforms listed in Boards Manager and be able to install it as expected.
Thanks @ptillisch , unfortunately now I get:
Tool arduino:avr-gcc@7.3.0-atmel3.6.1-arduino7 already installed
Downloading packages
arduino:avrdude@6.3.0-arduino18
ATTinyCore:micronucleus@2.5-azd1
Failed to install platform: 'ATTinyCore:avr:1.5.0'.
Error: 2 UNKNOWN: Get "https://azduino.com/bin/micronucleus/micronucleus-cli-2.5-azd1-x86_64-mingw32.tar.bz2": tls: failed to verify certificate: x509: certificate has expired or is not yet valid:
@ptillisch Maybe update expects to find the old name, package_drazzy.json
Perhaps a shortcut package_drazzy.json
pointing to package_drazzy.com_index.json
would work.
/2c
This is caused by a problem with the SSL configuration of the azduino.com website from which the ATTinyCore:micronucleus@2.5-azd1b
tool dependency of ATTinyCore is downloaded:
$ curl https://azduino.com
curl: (35) schannel: next InitializeSecurityContext failed: SEC_E_CERT_EXPIRED (0x80090328) - The received certificate has expired.
It affects everyone universally rather than being a problem specific to your own system. It has been reported to DrAzzy/SpenceKonde here:
The workaround will be to manually download the tool archive (the archive download URLs can be extracted from the package index file) and then place it in the Boards Manager download cache. Arduino IDE checks for the file in the cache before attempting to download it from the Internet, so if you have manually placed the file in that location, you avoid the problematic download that causes the ATTinyCore installation to fail.
1. Download the ATTinyCore:micronucleus@2.5-azd1b
Archive File
Unfortunately you will likely find that attempting to download this file via the browser is not very user friendly. For security reasons, the browser will try to strongly discourage from downloading it and you will have to make some efforts to overcome its resistance.
This is the download URL:
If you are using Windows:
http://azduino.com/bin/micronucleus/micronucleus-cli-2.5-azd1b-x86_64-mingw32.zip
If you are using Linux x86:
http://azduino.com/bin/micronucleus/micronucleus-cli-2.5-azd1-x86_64-linux-gnu.tar.bz2
If you are using Linux ARM:
http://azduino.com/bin/micronucleus/micronucleus-cli-2.5-azd1-arm-linux-gnueabihf.tar.bz2
If you are using macOS:
http://azduino.com/bin/micronucleus/micronucleus-cli-2.5-azd1-x86_64-apple-darwin.tar.bz2
2. Add the Downloaded File to the Boards Manager Cache
After you manage to download the file, copy it to the following folder:
If you are using Windows:
C:\Users\<username>\AppData\Local\Arduino15\staging\packages\
(Where <username>
is your Windows username)
If you are using Linux:
/home/<username>/.arduino15/staging/packages/
(Where <username>
is your Linux username)
If you are using macOS:
/Users/<username>/Library/Arduino15/staging/packages/
(Where <username>
is your macOS username)
3. Install ATTinyCore
Now try installing ATTinyCore via the Arduino IDE Boards Manager again. The installation should now be successful.
Thanks! I appreciate all the effort and expertise that went into this solution.
You are welcome. I'm glad if I was able to be of assistance.
Regards,
Per
March 1st 2024. This problem persist. http://azduino.com/ link is broken, or site is down. I've been trying to find the micronucleus-cli-2.5-azd1b-x86_64-mingw32.zip file but no luck.
Fresh Arduino IDE fails to install Attiny Core due to this broken link.
That is unfortunate. The entire site is down so this is a different situation from before where the files were available, but just not via SSL.
I have a copy of the file you need:
micronucleus-cli-2.5-azd1b-x86_64-mingw32.zip (1.1 MB)
You can follow the "2. Add the Downloaded File to the Boards Manager Cache" instructions from my previous reply, except using the file downloaded from the attachment.
You should be very wary of running an executable downloaded from a random forum post attachment. You can verify the file above is the same as the one previously available from azduino.com by getting the SHA-256 checksum of the downloaded file by opening a PowerShell terminal in the folder where you downloaded the ZIP file and then running this command:
Get-FileHash -Path micronucleus-cli-2.5-azd1b-x86_64-mingw32.zip -Algorithm SHA256
After that, compare it to the checksum for the file you can find by opening the ATTinyCore "Additional Boards Manager URLs" URL in your browser and then searching the page for "micronucleus-cli-2.5-azd1b-x86_64-mingw32.zip". The URL is available from the ATTinyCore installation instructions:
The Arduino IDE Boards Manager actually compares the checksum of the file from the Boards Manager cache against the file in the package index and only uses the file if the checksums match.
I checked on my Linux and macOS machines but unfortunately I didn't have the file cached on those machines so we only have the Windows file as of now and I didn't find another source for the files. If anyone needs to install ATTinyCore on other operating systems, you can post on the forum and hope one of the other forum helpers can provide the file.
Thank you very much @ptillisch , due to my bad luck I use Linux, open a new thread in case someone has the file
Hopefully one of the forum helpers will have this file. For the forum helpers, you should have it on your computer if you ever used Arduino Boards Manager to install ATTinyCore version 1.5.2.
The file would be located at this path:
/home/<username>/.arduino15/staging/packages/micronucleus-cli-2.5-azd1-x86_64-linux-gnu.tar.bz2
(Where <username>
is your Linux username)
(i.e., ~/.arduino15/
)
The .arduino15
folder may be hidden by default in your file manager and terminal.
I had to install an older version (ATtinyCore 1.4.1) due to an error related to avrdude; so I hope that this one helps; strip of the .zip
(added because the forum does not allow to upload .tar.gz
).
micronucleus-2.0a4-linux32.tar.gz.zip (21.4 KB)
And the error that I get when trying to install the latest version of ATtinyCore:
Tool avrdude is not available for your operating system.
java.lang.RuntimeException: java.lang.Exception: Tool avrdude is not available for your operating system.
at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onInstallPressed$2(ContributionManagerUI.java:179)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.Exception: Tool avrdude is not available for your operating system.
at cc.arduino.contributions.packages.ContributionInstaller.install(ContributionInstaller.java:84)
at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onInstallPressed$2(ContributionManagerUI.java:172)
... 1 more
In case it's relevant, this is a 32bit Linux and a portable install of IDE 1.8.19.
It is. The DrAzzy package index file contains host definitions for 32-bit and 64-bit Linux. For example, here it is for ATTinyCore:micronucleus@2.0a4
:
{
"name": "micronucleus",
"version": "2.0a4",
"systems": [
{
"host": "x86_64-apple-darwin",
"archiveFileName": "micronucleus-2.0a4-osx.tar.gz",
"url": "https://github.com/digistump/DigistumpArduino/releases/download/1.6.5a/micronucleus-2.0a4-osx.tar.gz",
"checksum": "SHA-256:B5EB0C7B251CD88F4816186BB931855834141E71A28D90FB9E46788E483AA421",
"size": "51203"
},
{
"host": "i686-mingw32",
"archiveFileName": "micronucleus-2.0a4-win.zip",
"url": "https://azduino.com/bin/micronucleus-2.0a4-win.zip",
"checksum": "SHA-256:BA9D4A327FCDEE92B72DDD353EF547FB071110E9EB7BE73F83A685CB76D3F939",
"size": "1711851"
},
{
"host": "i686-linux-gnu",
"archiveFileName": "micronucleus-2.0a4-linux32.tar.gz",
"url": "https://github.com/digistump/DigistumpArduino/releases/download/1.6.5a/micronucleus-2.0a4-linux32.tar.gz",
"checksum": "SHA-256:0D4286388EED28D1ECB29AFE81253F24F54D4F0A5C1B2C17507EABD504C595F8",
"size": "21909"
},
{
"host": "x86_64-linux-gnu",
"archiveFileName": "micronucleus-2.0a4-linux64.tar.gz",
"url": "https://github.com/digistump/DigistumpArduino/releases/download/1.6.5a/micronucleus-2.0a4-linux64.tar.gz",
"checksum": "SHA-256:1F545C0BB60E85A604901C2D7044772AC91776594C209C571DFEDAD4A70195B8",
"size": "22874"
}
]
}
When installing ATTinyCore on a 64-bit Linux machine, Arduino IDE will look for the archive file for the 64-version of the tool in the staging folder and then if it is not found, will attempt to download it from azduino.com (which will cause the installation to fail even if the archive for the 32-bit version of the tool was present in the staging folder).
The information I provided in post 11 assumes that @m4r0labs is using 64-bit Linux on an x86 machine. If they are using 32-bit machine then the information I provided is not relevant.
Thanks @ptillisch , also the repository azduino is working again
Great news! Thanks for taking the time to post an update.
To make it clear to anyone later reading this thread: this means the workaround we discussed starting from post #9 is no longer necessary. Everyone can now use the standard ATTinyCore installation procedure.
Hi at all,
I want to install ATTinyCore in my Arduino IDE 2.3.2 but a error message comes up and I can't install it.
Error message: Some indexes could not be updated. failed to verify certificate: x509: certificate has expired or is not yet valid:
Thank you for your help.
Best regards Sebastian
Hi! Welcome to the forum!
Take a look at this topic for a workaround:
https://forum.arduino.cc/t/what-is-status-of-attinycore/1266483/2