-
Notifications
You must be signed in to change notification settings - Fork 13.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install via Board manager #13
Comments
I don't think you can install via Boards Manager, but this claims to allow you to use ESP8266 with the stock Arduino IDE. I haven't had a chance to try it out yet. https://github.com/rogerclarkmelbourne/arduino-esp8266/ |
@beriberikix Ultimately, that is the plan. But right now the board manager does not support installation from a .zip archive. The list of available boards gets downloaded from Arduino.cc servers. So we need to get listed there, which requires us to do some talking... But we will get there, eventually. For now I will add a release archive packaged for installation to the user's hardware folder. |
👍 |
I'm looking at how to do the installation via IDE 1.6.2 This is a very new feature At the moment I can't see a way to add external repo's to the boards manager, it only seems to show the official Arduino boards. Does either of you know where it gets the list from or what the package for the board needs to look like ? It appears to download multiple files e.g. the core and the tools seem to be separate I guess I could read the Java to try to work out if there is a way to patch in additional boards e.g. by updating an XML somewhere ?? |
IDE downloads the list of platforms from the following URL: |
Thanks This change has broken my STM32 repo :-( :-( Just trying to fix it now because my STM32 repo relies on the ATM compilor used to the DUE to be installed The latest version of 1.6.2 release yesterday (or perhaps today) has moved the compilors to %appdata%/Arduino15 So my compile recipe for STM32 No longer works I will need to find the new equivalents to {runtime.ide.path} for Due This won't effect ESP8266 as the tools are in the hardware folder Perhaps this change is a result of the internal dispute between Arduino LLC and the board manufacturing side of the business Either way, it will break a lot of things that use the IDE :-( |
OK I did some more research, and the package data gets downloaded from Arduino.cc every time the popup is opened :-( There is no way to just modify / patch the package file, as it gets overwritten (I have tried ) The Boards Manager needs a new feature I don't know if Arduino.lcc developers will allow a feature to add external sources However, even if they don't want to add it, I think we should I have forked the main Arduino IDE repo and cloned it to my local machine I will investigate how to add a feature where the Boards Manager can have multiple package data files from multiple external locations If Arduino Won't add this via pull request, we should add this, and I will tell anyone using my STM32 hardware files etc, to use esp8266/arduino However really we need to removed the esp8266 etc stuff from the release and add it as a separate package file, i.e may need to fork the repo and have another one that just contains the hardware cores files, taken as a sub project of this main repo ??? |
I think the idea was to allow only some "verified" cores to be installed via Board Manager. Also it's not entirely clear to me why we need to split the repository? We can very well create whatever package necessary from this one without all the forking and submodules. |
Ivan. OK. But basically that just won't happen. I've found it very had to get any STM32 specific stuff into any of the core libraries. e.g. Paul Stoffregen who is one of the lead developers on the Arduino IDE team ( https://github.com/PaulStoffregen ) won't even action a pull request to add generic support to the One Wire library (which isn't even specific to the STM32) So I think the chances of anyone getting their repo added to the list is unlikely, unless they are for example Expressif or MicroChip or ST themselves One other person has replied to my posting on the IDE developers mailing list asking for the same thing, but as this change has only happened in the last 2 or 3 days, I don't think a lot of people have noticed I've re-activated a thread on the Arduino forum for Mega1280p users to alert them, and there is also another thread about the new library manager - which is basically along the same lines So perhaps over the next few days, more people will contribute PS. Sorry, I've not be able to update my binaries (long story, but I have an internet data quota per month, and I only have a small amount left - so I don't have enough quota to upload the new binaries :-( ) I should really remove them and use the distribution system instead, but I've been very busy with the Board Manager thing this morning, and this afternoon I've had repairs to do on my house ;-) If I can find a copy of JDK on a CDI will attempt to build the IDE from source, and look at adding new packages etc |
Edit Sorry. Re packages Looks like the tools and the hardware folders are in separate zips I may try turning off my internet so that the IDE can't update the package description, and then use a local web server to test how to build the zips |
See arduino/Arduino#2856 |
Ivan I did a bit of testing, by changing my hosts file to prevent the IDE updating the package file And I can get it to install a new hardware files, but I have not tried to get the tools working yet, One issue I did encounter is that the checksum in the package Must be lower case. I did have success by adding a new block of data inside the first json array item (which is arduino products), but when I tried to add a separate section e.g. at the top level in packages, I get an error because the IDE can't access the Internet I'm not sure if the error is really because it can't contact the Internet, or if I have made a mistake with the package structure. I will continue tomorrow as its getting too late for me to continue today. |
@rogerclarkmelbourne nice work! There's also a way to override the package file URL via setting |
Hi Sandeep I've posted this elsewhere as well, but this is how to (at least on Windows) change this path. On widows, you edit the file C:\Program Files (x86)\Arduino\arduino.l4j.ini and add in an extra line which specifies the address of the package_index.json file So the ini file could look like this
I put a copy of package_index.json on my personal website, you can specify another address or even a local webs server to test package deployment I have not had time to build the tools and cores packages that would be needed, and also it appears that the Arduino IDE team have really messed things up and you can not install Due and the ARM compiler any more :-( I have a backup of the json file that allows installation of ARM etc, if you want to see how the ARM / Due cores are setup in the packages file. http://www.rogerclark.net/downloads/package_index.json.old However I think the Arduino team have changed version numbers on the AVR files and I'm not sure if the ARM files in the old package_index are still available I think we may need to leave this until the IDE team sorts out this current mess. |
Looks like Arduino LLC is opening up the Board Manager in the next release: http://blog.arduino.cc/2015/04/28/opening-up-the-arduino-ide/ |
1.6.4 is now live and supports installing unofficial boards by adding a URL in the preference section. |
Looks like that ESP8266 support developed by this community has been added
and hosted on Adafruit servers.
From Mobile.
|
i packaged up an earlier version of the core and tools in this repo (mentioned in #57 & #204) for Adafruit's v1.6.3 board manager proxy, and just found @sandeepmistry's repo today. i made some modifications to make it easier to package for the 1.6.4 board manager. i made the modifications on OS X, and added a here's the fork: https://github.com/toddtreece/esp8266-Arduino i'm going to add the new package to Adafruit's main package index after some testing, but if anyone would like to test, you can add this to your v1.6.4 board manager url preferences and install the ESP8266 package from the board manager: https://github.com/toddtreece/esp8266-Arduino/releases/download/1.6.4/package_esptest_index.json |
I tried the previous 1.6.3 version and that worked fine. I really like the ease of updating via the board manager. I just looked at updating to the latest version:
So why not base your fork on igrr's original your version, it will assure always the latest version. BTW : I run the sandeepmistry version currently too, because it's an easy download/copy, much easier than igrr's complete build. Thx for the effort! |
Hi Installed on a fresh install of Arduino 1.6.4 on a windows 7 64 bit machine. Also did a install from the official link to the Adafruit boards - On that install it would go straight to a compiler error. |
@gerardwr thanks for the info. i'm trying to help out by restructuring so the repo for arduino 1.6.4 so it's a bit easier for this project to release without building a separate IDE, and that will probably be easier for users as well since they don't have to download multiple arduino IDEs. it has been a bit hard to track all of the changes with this project, the changes to the official arduino IDE, and still have time for normal work. it seemed like @sandeepmistry's fork was a good starting place, since when i packaged up the adafruit version it was based on the 1.6.1 release from this project. the current version in the adafruit board index doesn't work for arduino 1.6.4 on windows, but it did on 1.6.3 for some reason. that's what @IanWalker is probably seeing, and that's why i started down this update path yesterday. i'd be happy to fork and adapt any repo that's considered the canonical version of this project, but i didn't start with this one since i saw a comment saying master was fairly unstable currently. it'd almost make sense to start a new repo with just the esp8266 core and tools so the upstream Arduino IDE git history is cleared out. the files in the IDE repo aren't needed for releasing 1.6.4 third party board packages, and decoupling the esp8266 core version from the arduino IDE version seems to make sense to me as well. |
Thanks for the extensive explanation. I fully agree:
My point from a user perspective is that your approach using the Board Manager + a stable version of @igrr 's master seems the optimal solution. Would be excellent if @igrr would restructure his repo according to the @sandeepmistry repo, so you could use this to build upon. Better yet, if the three of you could team up! That would save a lot of valuable specialist and user time. I understand it would take time from @igrr and he has probably a million things on his todo list :-) A lot of user problems are caused by outdated ESP extensions, already solved in the latest versions. This software is great, and it deserves a rock solid release base. Thanks for supporting the evolution for that. |
@toddtreece - Thank You for taking the time to do this. For newbies the additional board manager is I think the easiest solution. Ok so I went back to a fresh install of 1.6.4 and selected the Adafruit packages as per the arduino GitHub One of the open issues mentioned a missing libiconv-2.dll. - I had a seperate install of this repo of @iggr and found that file there and copied it the new 1.6.4 install and compilation / downloading of the Hello Server worked fine. It looks like Adafruit - You? are aware of this and working on a sollution. Thanks again to everyone that is making arduino compatibility for these great little modules possible. |
@IanWalker yep. i have a test package index file for the esp windows fix here: https://github.com/adafruit/arduino-board-index/releases/download/esptool-0.4.2-winfix/package_esptest_index.json i've been testing it on clean installs, and it seems to fix the issue. let me know if you get a chance to try it, and i can deploy the fix to the adafruit package index. |
@toddtreece - Working this side as well. ESPTool does not show in programmer selection but uploads fine. |
for the ESPool i read, if i remember on @sandeepmistry repo, that this is a new function.
So in the repository merging a pull request it is removed the ESPTool |
Success on Mac Os X 10.10.3.
Job well done, thx ! |
the esp8266 package in the main adafruit package index (https://adafruit.github.io/arduino-board-index/package_adafruit_index.json) has been updated to 1.6.2 with the windows libiconv fix. thanks for the help testing! there's more info about adding third party boards using the official arduino 1.6.4 IDE here: https://learn.adafruit.com/add-boards-arduino-v164 |
@toddtreece nice work! I totally agree with:
It probably doesn't make sense to have 3 repos to maintain long term (this one, my fork, and your fork). Sound like we should work with @igrr to see if we can have a build steps to produce:
|
@sandeepmistry that sounds like a good approach to me. really all that's needed from my repo is the package shell script, and the JSON template folder for building the JSON to add to the package index. there are also some minor modifications to the platform.txt file to support the folder structure of board manager installed packages & tools. we could probably point the |
@toddtreece I use your JSON and Install 1.6.4. It works fine. But I have problems with this version if I use DHT11 library. |
There are multiple DHT11 libraries on GitHub... I think the 'ESP-compatible' library you want is: https://github.com/adafruit/DHT-sensor-library but I'm new to the ESP................ On 13 May 2015 at 20:20, Thro42 notifications@github.com wrote:
|
@duncan-a Yes I use https://github.com/adafruit/DHT-sensor-library . But after I type in my coding include DHT.h, it stops working.:( |
Now we have a board manager package as well. Readme has been updated with instructions to use it. |
What version of release is included with board manager? Latest tagged release, or just latest? |
The version shown by the Boards Manager contains the commit id — 545ffde in this case. |
I added your json url to the Arduino 3rd party boards support urls |
pull latest SDK
With the 1.6.2 IDE release, there is now a way to download new boards directly. Will this implementation be able to support the manager? It would be nice to be able to use a single IDE rather than a fork.
The text was updated successfully, but these errors were encountered: