VS Arduino
Visual Micro >> Other Hardware >> ESP8266
https://www.visualmicro.com/forums/YaBB.pl?num=1439144646

Message started by Johanan on Aug 9th, 2015 at 6:24pm

Title: ESP8266
Post by Johanan on Aug 9th, 2015 at 6:24pm
I tried to setup Visual micro fro ESP8266, I can see the board, but get a compilation error with no description. The original Arduino IDE compiles the EPS8266 OK. What am I missing?
Thanks
Johanan

Title: Re: ESP8266
Post by Visual Micro on Aug 9th, 2015 at 6:26pm
Hi,

If you switch on tools>options>visual micro>compiler>show build properties and verbose then click build>clean>then click build and email the output to info[at]visualmicro.com that will help

Thanks

Title: Re: ESP8266
Post by Johanan on Aug 9th, 2015 at 6:32pm
So it can't fine the compiler..
Where do I set it?
Thanks


"C:\Users\Johanan\Documents\Arduino\hardware\esp8266com/esp8266/tools/{runtime.os}/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\Users\Johanan\Documents\Arduino\hardware\esp8266com/esp8266/sdk//include" -c -Os -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -std=c++11 -MMD -DF_CPU=80000000L -DARDUINO=165 -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266 -DESP8266 -I"C:\Users\Johanan\Documents\Arduino\hardware\esp8266com\esp8266\cores\esp8266" -I"C:\Users\Johanan\Documents\Arduino\hardware\esp8266com\esp8266\variants\generic" "C:\Users\Johanan\AppData\Local\V.Micro\Arduino\Builds\epsProj1\generic\epsProj1.cpp" -o "C:\Users\Johanan\AppData\Local\V.Micro\Arduino\Builds\epsProj1\generic\epsProj1.cpp.o"
The system cannot find the file specified
     Process: "C:\Users\Johanan\Documents\Arduino\hardware\esp8266com\esp8266\tools\{runtime.os}\xtensa-lx106-elf\bin\xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\Users\Johanan\Documents\Arduino\hardware\esp8266com/esp8266/sdk//include" -c -Os -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -std=c++11 -MMD -DF_CPU=80000000L -DARDUINO=165 -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266 -DESP8266 -I"C:\Users\Johanan\Documents\Arduino\hardware\esp8266com\esp8266\cores\esp8266" -I"C:\Users\Johanan\Documents\Arduino\hardware\esp8266com\esp8266\variants\generic" "C:\Users\Johanan\AppData\Local\V.Micro\Arduino\Builds\epsProj1\generic\epsProj1.cpp" -o "C:\Users\Johanan\AppData\Local\V.Micro\Arduino\Builds\epsProj1\generic\epsProj1.cpp.o"
Error compiling

Title: Re: ESP8266
Post by Visual Micro on Aug 9th, 2015 at 7:10pm
Thanks,

Please download the latest beta from the visualmicro.com downloads page. The latest esp sources use a property that no one has used before but should have been supported.

runtime.os=windows


Title: Re: ESP8266
Post by Visual Micro on Aug 9th, 2015 at 7:28pm
I've just seen another potential error in your output but when I install the esp8266 core it works well for me.

Please give me a link to the .json index file you are using for the 8266

Thanks

ps: don't forget to install the latest beta from near the top of the downloads page

Title: Re: ESP8266
Post by Johanan on Aug 11th, 2015 at 6:27pm
cant find the beta version, so I assume it is the last stable one from 10th Aug.
Downloaded and installed it, but still no joy.
I am not sure what do you mean by:
"Please give me a link to the .json index file you are using for the 8266"

I downloaded eps files from :

https://github.com/sandeepmistry/esp8266-Arduino

Thanks
Johanan

Title: Re: ESP8266
Post by Visual Micro on Aug 11th, 2015 at 7:44pm
Yes it's now the release.

Okay that link you are using is out of date and unsupported. Since arduino 1.6.2 there is a new system which arduino produced called the Board Manager. If you install a clean copy of the latest Arduino software (you can use the zip from arduino.cc) then point visual micro at it you will be in better shape.

Then configure the location for arduino 1.6 in the Visual Micro Ide locations window. Also notice lower down the window is an "Additional board support urls" field and below the field is a link to the page that arduino.cc maintain with a list of .json urls.

On the page you will find the url or the official ESP8266 Community Arduino index.json which is http://arduino.esp8266.com/stable/package_esp8266com_index.json

Paste the url into the visual micro additional board urls then click OK.

In the Micro explorer click on the "Board Manager" tab and the esp8266 should appear as a core that can be downloaded. Click the esp core and you will be prompted to install. Click OK and wait for the download to complete (it's about 500mb)

When the download has finished click the Rescan button on the explorer bar.

Create or open a sketch. Ensure you select Arduino 1.6 and Esp8266 from the tool bar or menu. You will also find additional options for the board on the Visual Micro menu below the list of boards.

This will give you the most recent and the active release of the esp build system and you will see in the boards manager that new updates will automatically be shown when they are available.

Please see the Board Manager documentation for more info http://www.visualmicro.com/page/User-Guide.aspx?doc=Board-Manager.html

Thanks

Title: Re: ESP8266
Post by Johanan on Aug 12th, 2015 at 8:06pm
Got the simplest sketch compiled.
Any idea where can one find some eps8266 examples or docs?

Thanks
Johanan

Title: Re: ESP8266
Post by danieldk on Aug 14th, 2015 at 7:07am
I have installed the ESP8266 boards from both Arduino , and from the VisualMicro boards manager, But I am still unable to select the ESP boards to program.

When I install the ESP8266 from the boards manager ( 1.6.5-947-g39819f0 ) it installs,
when I go to the "installed" tab, ESP8266 does not show up, and according to the "manage boards" tab its not installed

Am i doing something strange ?
( VS2015 community edition, installed Visual Micro addon - .visx file )

edit :  It works in the regular Arduino IDE 1.6.5 but not from Visual Studio

Title: Re: ESP8266
Post by Johanan on Aug 14th, 2015 at 7:37am
I am using VS2012, I followed Tim's instruction to the point (above) and it works.
Make sure you added wifi lib to the ide.
Maybe there are some issues with VS2015.
Johanan

Title: Re: ESP8266
Post by Visual Micro on Aug 14th, 2015 at 1:55pm
@danieldk

You have to click Rescan or restart the ide after installing or removing hardware.

If the esp still does not show up then another board manager url package has resulted in an unknown condition and caused visual micro to stop loading hardware. In this case please tell me the names of any folder you see below here C:\Users\[your name]\AppData\Roaming\arduino15\packages

Title: Re: ESP8266
Post by danieldk on Aug 15th, 2015 at 8:58am
interesting,

I have :
arcore ( this shows up in boards manager )
arduino
attiny
esp8266
RFduino
Sparkfun

( all installed from the Arduino IDE boards manager, not from whithin Visual studio /  Visual Micro )

-D

Title: Re: ESP8266
Post by Visual Micro on Aug 15th, 2015 at 3:29pm
Well I thought I was going to be blaming the problem on Adafruit but this time it was my fault.

The "arcore" firmware does not have its own tools, it uses the tools of other packages/platforms but Visual Micro still tried to find them. That caused the background Boards Manager to fail to load most other boards.

A good one found thanks!

Fixed in 1508.14 Sp1 available from the downloads page

Title: Re: ESP8266
Post by danieldk on Aug 17th, 2015 at 10:24am
hihi,
That fixed it in Both the VS2013 and VS2015 community editions :)

Thank you very much !

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.