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 by Spence Konde' doesn't show in Board Manager list #802

Closed Napoleon-BlownApart closed 8 months ago

Napoleon-BlownApart commented 10 months ago

Using Arduino IDE 2.2.1 on Mac, adding the http://drazzy.com/package_drazzy.com_index.json url to the list (only one in my case) and pressing OK, causes the IDE to download the package_drazzy.json file into /Users/<user>/Library/Arduino15. But when I go into the Board Manager and try to find ATTinyCore by Spence Konde in the list, it's not there.

What to do?

Napoleon-BlownApart commented 10 months ago

I installed Arduino IDE 2.1.0, and now it's working again. (Didn't work with v2.2.0)

SpenceKonde commented 10 months ago

Do note that we do not yet officially support IDE versions 2.x - as some people yourself included have observed, under at least some conditions, some 2.x.x versions work. I have not characterized which ones do or not (I'm sorry, I'm sick and tired of 80-90% of versions that Arduino ships being unfit for purpose with major regressions, and people acting like it's my job to figure that out). I asked way back when 2.0 first came out if anyone had tried it out or found any problems, on all of my cores. You could hear the chirping of crickets. But then I see issues getting created like this, with peiople

Did any errors come up when you opened board manager?

There is an issue with the webserver configuration; if the new IDE is trying to force https when http urls are fed to it, that would prevent it from downloading the board manager json file, because the https functionality of the webserver is busted in ways that I do not understand.

Napoleon-BlownApart commented 10 months ago

I understand. I believe this to be an issue with the IDE, not your package. Under 2.2.1, no errors were displayed, just the entry was not visible in the board manager list after adding it to the preferences list. Under 2.1.0, ATTiny85 and ATTiny88 (MH-ET Live) work fine for me using the Micronucleus.

redactedaccount commented 9 months ago

I can't even get the http://drazzy.com/package_drazzy.com_index.json link to work, says it wont connect.

Napoleon-BlownApart commented 9 months ago

I can't even get the http://drazzy.com/package_drazzy.com_index.json link to work, says it wont connect.

Maybe try it in your browser? Note it's not using https. You could try, after doing the normal steps in the preference settings, manually download the file and save it into your ~/Library/Arduino15 folder using the name package_drazzy.com_index.json. And then try to install ATTinyCore the normal way.

redactedaccount commented 9 months ago

Maybe try it in your browser?

Did YOU try it in your browser?

SpenceKonde commented 9 months ago

Yes it is down because I'm trying to fix 5hw last problem reported but broke my wrbsrtveterer in the procwss


Spence Konde Azzy’S Electronics

New products! Check them out at tindie.com/stores/DrAzzy GitHub: github.com/SpenceKonde ATTinyCore: Arduino support for almost every ATTiny microcontroller Contact: @.***

On Fri, Sep 8, 2023, 13:52 redactedaccount @.***> wrote:

Maybe try it in your browser?

Did YOU try it in your browser?

— Reply to this email directly, view it on GitHub https://github.com/SpenceKonde/ATTinyCore/issues/802#issuecomment-1712031036, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTXEW7D7UEDLZQQEDXZXATXZNLOBANCNFSM6AAAAAA4JD677I . You are receiving this because you commented.Message ID: @.***>

redactedaccount commented 9 months ago

Still down

SpenceKonde commented 9 months ago

Still aware of the problem

skyreacher commented 9 months ago

Maybe try it in your browser? Note it's not using https. You could try, after doing the normal steps in the preference settings, manually download the file and save it into your ~/Library/Arduino15 folder using the name package_drazzy.com_index.json. And then try to install ATTinyCore the normal way.

I also ran into the issue, that the boards manager URL is not working (on Mac with Arduino IDE 2.2.1). Downloading the json file and putting it into ~/Library/Arduino15 was an easy work around. Thanks for sharing!

bjfischb commented 8 months ago

I have the same issue as the original post: I can put the json in my preferences, and I then see the json file appear in my Arduino15 directory. However, ATtinyCore does not show up in the board manager as an option to download. I have since successfully downloaded a different board package, so it must be something about ATtinyCore and this release of the IDE. I'm using Arduino IDE 2.2.1, so I guess there's something that wasn't fully tested.

I'm able to do the manual download where I put the ATtinyCore package in my sketches hardware directory. But, it would be good to get this resolved so that the core can be maintained through the board manager.

Is there any indication on what the root cause is? Does it have something to do with how the json file is named?

The ATtinyCore is working for me on IDE 2.2.1 as far as I can tell......

per1234 commented 8 months ago

Hi all. 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:

https://github.com/arduino/arduino-cli/issues/2345

I apologize for any inconvenience this has caused.


The bug has already been fixed, but there hasn't been a release of Arduino CLI since that time so the fix is not yet available to Arduino IDE users.

I'll provide instructions for a workaround:

  1. Select File > Quit from the Arduino IDE menus if it is running.
  2. Open the following folder in your file manager program (e.g., Windows File Explorer):
    • If you are using Linux:
      /home/<username>/.arduino15/

      (Where <username> is your Linux username) ❗ The .arduino15 folder may be hidden by default in your file manager and terminal.

    • If you are using macOS:
      /Users/<username>/Library/Arduino15/

      (Where <username> is your macOS username) ❗ The Library folder is hidden by default. You can make it visible by pressing the Command+Shift+. keyboard shortcut.

    • If you are using Windows:
      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 <!-- 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".

  3. You will see a file named package_drazzy.json in that folder. Rename it to package_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.

SpenceKonde commented 8 months ago

<3

MyVanitar commented 7 months ago

I followed your procedure for windows but I received the following error: (IDE: 2.2.1)

Failed to install platform: 'ATTinyCore:1.5.2'. 2 UNKNOWN: Get "https://azduino.com/bin/micronucleus/micronucleus-cli-2.5-azd1b-x86_64-mingw32.zip": tls: failed to verify certificate: x509: certificate has expired or is not yet valid:

SpenceKonde commented 7 months ago

Yes, I bloody know this and I'm not allowed to do anything else until I fix it, except for time bounded things like "ship this because the customer is annoyed that it hasn't shipped yet" and "get your things packed and in the car and get in because it's leaving in 2 hours, and you have no other way to get out of here"


Spence Konde Azzy’S Electronics

New products! Check them out at tindie.com/stores/DrAzzy GitHub: github.com/SpenceKonde ATTinyCore: Arduino support for almost every ATTiny microcontroller Contact: @.***

On Sun, Nov 19, 2023, 09:09 Hesam Moshiri @.***> wrote:

I followed your procedure for windows but I received the following error: (IDE: 2.2.1)

Failed to install platform: 'ATTinyCore:1.5.2'. 2 UNKNOWN: Get " https://azduino.com/bin/micronucleus/micronucleus-cli-2.5-azd1b-x86_64-mingw32.zip": tls: failed to verify certificate: x509: certificate has expired or is not yet valid:

— Reply to this email directly, view it on GitHub https://github.com/SpenceKonde/ATTinyCore/issues/802#issuecomment-1817866725, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTXEW6EP2H563BTDAEULS3YFIHLDAVCNFSM6AAAAAA4JD677KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJXHA3DMNZSGU . You are receiving this because you modified the open/close state.Message ID: @.***>

MyVanitar commented 7 months ago

My intention was just to report this. otherwise, you are not bound to fix or reply. We haven't purchased anything from you to ask for aftersales or warranty. I installed this manually and it works flawlessly

per1234 commented 7 months ago
Get "https://azduino.com/bin/micronucleus/micronucleus-cli-2.5-azd1b-x86_64-mingw32.zip": tls: failed to verify certificate: x509: certificate has expired or is not yet valid

That error is completely unrelated to the bug in Arduino CLI's handling of the package index filename (https://github.com/arduino/arduino-cli/issues/2345) reported here. There is a dedicated issue tracking the installation failure caused by the expired SSL certificate on azduino.com at https://github.com/SpenceKonde/ATTinyCore/issues/815. I know you already found a workaround @<!-->MyVanitar, but for anyone else who is affected a link to instructions for a more friendly workaround are provided in this comment.

smdg49 commented 7 months ago

Between both workarounds I got it to work. @SpenceKonde : thanks so much for ATTinyCore. Same as @MyVanitar, was just reporting the issue. Great work. You do not owe anyone anything.

Intechgreater commented 5 months ago

Hi all. 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:

arduino/arduino-cli#2345

I apologize for any inconvenience this has caused.

The bug has already been fixed, but there hasn't been a release of Arduino CLI since that time so the fix is not yet available to Arduino IDE users.

I'll provide instructions for a workaround:

  1. Select File > Quit from the Arduino IDE menus if it is running.
  2. Open the following folder in your file manager program (e.g., Windows File Explorer):

    • If you are using Linux:

      /home/<username>/.arduino15/

      (Where <username> is your Linux username) ❗ The .arduino15 folder may be hidden by default in your file manager and terminal.

    • If you are using macOS:

      /Users/<username>/Library/Arduino15/

      (Where <username> is your macOS username) ❗ The Library folder is hidden by default. You can make it visible by pressing the Command+Shift+. keyboard shortcut.

  • If you are using Windows:

    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 <!-- 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".

  1. You will see a file named package_drazzy.json in that folder. Rename it to package_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.

Greatly appreciate this! How about adding it to the official installation instructions in the meantime? https://github.com/SpenceKonde/ATTinyCore/blob/v2.0.0-devThis-is-the-head-submit-PRs-against-this/Installation.md

SpenceKonde commented 5 months ago

GOD THEY STILL HAVEN'T RELEASED AN UPDATE FOR THE IDE? What the hell is wrong with them?! They broke a major feature of the IDE in august. They had implemented the fix in september. FOUR MONTHS LATER WE ARE STILL WAITING FOR A RELEASE WITH THE FIX!

I do not make a policy of extensively documenting workarounds like this because the updates take so long to make it to the IDE that by then I've forgotten about all the places that I put such instructions, and then am mortifed a year or two later when someone asks "Is this being maintained? That workaround hasn't been needed for a year!" - so the problem is that I don't have a way to know where they all are, and I don't get notifications to know when to remove them, and the Arduino team frequently breaks something else when they fix something, so for a period of time the what would also be unclear. Since we have no good way to determine the where, no automatic way to know when, and no guarantee of what should be done to update the documentation, I just state that the 2.x.x versions have yet to include any version with basic functionality intact, and a fix is implemented but not available in any releases.

I also disapprove of extensively documenting such things because it minimizes the apparent severity and gives the Arduino team more of a free pass than I think they deserve. Especially considering the fact that it preferentially hits my cores because I'm apparently the only one who actually read their spec and named the board manager json file the way they said to - then they broke that, fixed it, but have been sitting on the fix for 4 months.

Oh, and misdiagnosis of the problem and a botched attempt at correcting that issue is what led to this core being uninstallable for 3 months due to the expired SSL cert (the actual problem behind that was that I had been in the wrong window and deleted all of the apache configuration files from the live server that I was going to take down once the new one was set up instead of the new one, so while azduino.com's SSL cert worked, apache was still working from RAM, even though the certs and all the config files were deleted from the disk. but once the SSL cert expired, I couldn't renew it, and a bunch of shit came up such that a top priority task took 3 months to look at.

I do not have time to document workarounds for this shit. I am struggling to keep my head above water as it is.

neshiq commented 3 months ago

FYI (sorry I didn't read all comments) After update IDE to 2.3.1 the attinycore boards are available.

CaptainCheeze29 commented 1 week ago

I know you've got a lot on plates. Just updating. Boards were fine on 2.3.1 and now not fine on 2.3.2 again.