SpenceKonde / ATTinyCore

Arduino core for ATtiny 1634, 828, x313, x4, x41, x5, x61, x7 and x8
Other
1.53k stars 301 forks source link

ATTinyCore does not appear in Boards Manager #820

Closed roger-tannous closed 6 months ago

roger-tannous commented 7 months ago

OS:: Ubuntu 22.04.3 LTS (Jammy Jellyfish)

Arduino IDE version 2.2.1

URL added to Additional Board Manager URLs:: http://drazzy.com/package_drazzy.com_index.json

But ATTinyCore does not appear in Boards Manager, even after multiple restarts of the Arduino IDE.

I don't know what's the optimal solution for this issue, but I've solved it this way::

Close the Arduino IDE and relaunch it using the command line.

Watch the logs (when launched from the command line, the application dumps the logs to the standard output)

2023-11-09T19:59:34.321Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: loading json index file ~/.arduino15/package_drazzy.com_index.json: open ~/.arduino15/package_drazzy.com_index.json: no such file or directory

Let's find what's there

find ~/.arduino15/ -type f -name "package_drazzy*.json"

~/.arduino15/package_drazzy.json

check if the file has been messed with

wget http://drazzy.com/package_drazzy.com_index.json

diff -qs package_drazzy.com_index.json ~/.arduino15/package_drazzy.json

Files package_drazzy.com_index.json and ~/.arduino15/package_drazzy.json are identical

mv ~/.arduino15/package_drazzy.json ~/.arduino15/package_drazzy.com_index.json

restart Arduino IDE

Why does it create package_drazzy.json again ?!

find ~/.arduino15/ -type f -name "package_drazzy*.json"

~/.arduino15/package_drazzy.com_index.json ~/.arduino15/package_drazzy.json

Now that ~/.arduino15/package_drazzy.com_index.json is there, ATTinyCore appears in the Boards Manager.

santanig5 commented 7 months ago

I am having the same issue with Windows 10 using IDE 2.2.1. Device name Cooler-Master-Desktop Processor Intel(R) Core(TM) i5-7400 CPU @ 3.00GHz 3.00 GHz Installed RAM 16.0 GB Device ID 7CD9120B-DF56-4CD1-AC90-01E71825AC53 Product ID 00325-80060-72834-AAOEM System type 64-bit operating system, x64-based processor Pen and touch No pen or touch input is available for this display

Edition Windows 10 Home Version 22H2 Installed on ‎9/‎12/‎2020 OS build 19045.3570 Experience Windows Feature Experience Pack 1000.19052.1000.0

URL added to Additional Board Manager URLs:: http://drazzy.com/package_drazzy.com_index.json

But ATTinyCore does not appear in Boards Manager, even after multiple restarts of the Arduino IDE.

Same problem on all three of my Windows PCs.

Please help, I am unable to complete my project.

Thanks

smdg49 commented 7 months ago

I opened this issue last week.

SonnyCarson86 commented 7 months ago

im having the same issue, attinycore doesnt appear in board manager. after i downloaded a zip file of the rep and manually installed i was able to program an attiny85.

roger-tannous commented 7 months ago

On Windows, you can do this::

With http://drazzy.com/package_drazzy.com_index.json added to the Additional Board Manager URLs,

Go to directory C:\Users\%USERNAME%\AppData\Local\Arduino15 and rename file package_drazzy.json to package_drazzy.com_index.json

Note that a copy won't solve the problem, you have to rename the file.

%USERNAME% is a Windows global variable that will automatically replace your username on your local machine.

If you installed the Arduino IDE for all users on your machine, then the path prefix mentioned above (C:\Users\%USERNAME%\AppData) won't be correct, it may be C:\Users\Public\AppData ?

Then, just because there's currently a problem with the SSL certificate of the domain from which micronucleus will be fetched, we can do something similar to what's being mentioned here... which resolves to opening C:\Users\%USERNAME%\AppData\Local\Arduino15\package_drazzy.com_index.json in your favorite editor, and replacing all occurrences of https with http (CTRL+H then find: https replace with: http and hit the Replace All button).

Finally, start the Arduino IDE, the ATTinyCore should be listed in the Boards Manager.

Hope this helps! Roger

santanig5 commented 7 months ago

Hello, I followed the instructions, and it still does not work. IDE 1.8.19 is still searching for https [cid:25baf232-5560-48f0-9b35-b50137b3040c]

IDE 2.2.1 still has not ATTinyCore option and package_drazzy.json must be auto generated as I deleted it and when I restarted IDE it was back, I did edit both json files replacing the https with http, it replaced 212 entries. [cid:1f5c9b04-f575-4a5f-8011-1f033b4ff2cf] any other suggestions?

thanks, Gary


From: roger-tannous @.> Sent: Thursday, November 16, 2023 11:28 AM To: SpenceKonde/ATTinyCore @.> Cc: santanig5 @.>; Comment @.> Subject: Re: [SpenceKonde/ATTinyCore] ATTinyCore does not appear in Boards Manager (Issue #820)

On Windows, you can do this::

With http://drazzy.com/package_drazzy.com_index.json added to the Additional Board Manager URLs,

rename C:\Users%USERNAME%\AppData\Local\Arduino15\package_drazzy.json to C:\Users%USERNAME%\AppData\Local\Arduino15\package_drazzy.com_index.json

Note that a copy won't solve the problem, you have to rename the file.

%USERNAME% is a Windows global variable that will automatically replace your username on your local machine.

Then, just because there's currently a problem with the SSL certificate of the domain from which micronucleus will be fetched, we can do something similar to what's being mentioned here...https://github.com/SpenceKonde/ATTinyCore/issues/819#issuecomment-1804659875 which resolves to opening C:\Users%USERNAME%\AppData\Local\Arduino15\package_drazzy.com_index.json in your favorite editor, and replacing all occurrences of https with http (CTRL+H then find: https replace with: http and hit the Replace All button).

Hope this helps! Roger

— Reply to this email directly, view it on GitHubhttps://github.com/SpenceKonde/ATTinyCore/issues/820#issuecomment-1814798675, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJ4IX36K7XIMSSQX4IG2Q4DYEY5MHAVCNFSM6AAAAAA7FHJETGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJUG44TQNRXGU. You are receiving this because you commented.

per1234 commented 7 months ago

Duplicate of https://github.com/SpenceKonde/ATTinyCore/issues/802. The cause is explained here: https://github.com/SpenceKonde/ATTinyCore/issues/802#issuecomment-1751882383 (note that bug has already been fixed, and is in the process of being pulled into Arduino IDE right now: https://github.com/arduino/arduino-ide/pull/2281).

ExIfDev commented 6 months ago

hello, here is a fix to invalid certificate error when installing the package:

first you want to follow the steps indicated from roger-tannous then

you have to edit both files in:

C:\Users\%username%\AppData\Local\Arduino15

package_drazzy.com_index.json and package_drazzy.json

open them in notepad and search for this link: https://azduino.com/bin/micronucleus/micronucleus-cli-2.5-azd1b-x86_64-mingw32.zip

and replace it with this link (its hosted on my server and doesnt have certificate errors):

http://aexadev.ddns.net/uploads/micronucleus-cli-2.5-azd1b-x86_64-mingw32.zip

And it should work!

SpenceKonde commented 6 months ago

Closing as duplicate; note that using an old version of the IDE won't actually let you install it either, because my webserver is hosed and needs to be rebuilt, among like a million other critical tasks