-->
Page 1 of 12

This is how to install without replacing your existing IDE

PostPosted: Sat Mar 28, 2015 10:00 pm
by RogerClark
Guys,

Firstly thanks to everyone for the code in github.com/esp8266/arduino

And I'm hoping that what I describe below will help everyone and make a better overall system...


Anyway... I downloaded the release from github today, but had lots of issues, with the compilor seeming to be missing a file and I also had upload isssues


So.
I have created a better install package that doesn't require you to have a separate version of the Arduino IDE for ESP8266, in fact you can use the latest Arduino 1.6.2 rather than 1.6.1 which is on github.com/esp8266/arduino
(and which works ;-)

See
https://github.com/rogerclarkmelbourne/arduino-esp8266/


Basically, Arduino's third party hardware spec allows for new devices and their toolchains to be put in the "users" Arduino folder.

On Windows this is My Documents/Arduino

You need to create a hardware folder in the Arduino folder, then download and unzip my repo into the hardware folder, restart the Arduino IDE and select Generic ESP8266 from the boards menu and esptool from the programmer menu

This is all in my readme

If there was some way to cross link my repo just to the core code in github.com/esp8266/Arduino I would have done that, but as far as I'm aware, I can't add a sub project to my repo, which is a sub folder of another repo, and I a lot of the stuff on esp8266/arduino is not required at runtime

Re: This is how to install without replacing your existing I

PostPosted: Mon Mar 30, 2015 11:19 am
by picstart
Nice,
It worked perfectly first time ( how often does that happen these days?).
Thanks

Re: This is how to install without replacing your existing I

PostPosted: Mon Mar 30, 2015 1:27 pm
by robertkendrick
Thanks for this. Nice work.
As you probably are aware, at least the xtensa part of your repo is windows 64-bit.
For us poor souls still using XP I found that if you replace your tools\xtensa directory with the same named xtensa directory from 'the unofficial Esp8266 SDK for eclispe' which according to Dependency Walker is x86 it builds the examples without error. You have to install the 'unofficial Esp8266 SDK for Eclipse to be able to get at the Xtensa directory.

Re: This is how to install without replacing your existing I

PostPosted: Mon Mar 30, 2015 6:03 pm
by AlexanderB
Guess I'm not as smart as I thought, because I couldn't get the contents of arduino-esp8266-master.zip to work at all. (win 7 x64, if that matters)

1.6.2 & arduino-esp8266-master.zip = no-go, the boards and programmer don't show up, not even if I plant them in the program files\arduino\hardware folder itself instead of in the my documents folder.

manually taking the files from the arduino-1.6.1-p1-windows.zip and putting them with my 1.6.2 install, it finally recognises the board and programmer, but I can't get it to properly compile anything, I either get a very nondescript "Error compiling" or a Java regex stack overflow (Not sure what that was about..)

arduino-1.6.1-p1-windows.zip (version 1.6.1) works fine by itsself for the ESP, though 1.6.1 doesn't "work" with normal arduino (theres apparently a known issue with the delay() command that was fixed in 1.6.2)

Sooo in the end, I installed 1.6.2 for my normal Arduinos and put the content of the arduino-1.6.1-p1-windows.zip on my desktop specifically for the ESP, arduino-esp8266-master.zip didn't work out for me.

So not sure if I'm being a dummy, or if this is proper feedback, but just letting you know. :)