Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 [2]  Send TopicPrint
Very Hot Topic (More than 25 Replies) ESP8266 not working after ESP32 install (Read 10712 times)
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP8266 not working after ESP32 install
Reply #20 - Feb 24th, 2017 at 11:05pm
Print Post  
I think the first problem was caused by opening the board manager which recently moved format needing visual micro board manager to be opened so the issue is corrected.

after that problem you had compile issues which prevented intellisense paths from being set correctly. Hat caused a whole load of confusion which you tried to solve by hard coding lib paths. That caused everything to fail until corrected.

Now we can look at any remaining issue with build output from the arduino ide and visual micro. Because you have installed a variety of libraries that have similar names to other libraries on the web it's important to either provide the download location for the libs you are using or zip and and email them.

thanks a lot.
  
Back to top
WWW  
IP Logged
 
Acuario
Full Member
***
Offline


Posts: 233
Location: Spain
Joined: Aug 28th, 2015
Re: ESP8266 not working after ESP32 install
Reply #21 - Feb 25th, 2017 at 12:08am
Print Post  
I think I found the problem why the libraries aren't loading.
In the library.properties file there is a setting
architectures=

If the setting is architecture=* the library loads
If it is anything else (esp8266 or esp32) it does not load and compile fails.

I changed both the SSD1306 and ArduinoOTA settings to * and I can now compile. 

Previously they were:
architectures=esp8266
and
architectures=esp8266,esp32


Over to you...

« Last Edit: Feb 25th, 2017 at 5:27am by Acuario »  
Back to top
 
IP Logged
 
Acuario
Full Member
***
Offline


Posts: 233
Location: Spain
Joined: Aug 28th, 2015
Re: ESP8266 not working after ESP32 install
Reply #22 - Feb 25th, 2017 at 9:09am
Print Post  
By the way, still got a huge number of intellisense errors:
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP8266 not working after ESP32 install
Reply #23 - Feb 25th, 2017 at 12:44pm
Print Post  
Hmm, must be a recent update I use OTA all the time however I use the ota that is supplied in the esp8266 core,

I'll update for no architectures that could be causing intellisense to fail.

I'll look at it later thanks for useful info
  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP8266 not working after ESP32 install
Reply #24 - Feb 25th, 2017 at 1:43pm
Print Post  
The output you have posted from the arduino ide failed to compile. I need an arduino ide output that compiled correctly thanks.

The ArduinoOTA library should not exist in documents\arduino\libraries is is provided with the esp tool chain.
  
Back to top
WWW  
IP Logged
 
Acuario
Full Member
***
Offline


Posts: 233
Location: Spain
Joined: Aug 28th, 2015
Re: ESP8266 not working after ESP32 install
Reply #25 - Feb 25th, 2017 at 6:44pm
Print Post  
In the Arduino IDE it fails to compile still but in Visual Studio it's fine. Note I have changed the architectures settings in the two libraries that were failing.

For some reason the attach file isn't available on the posting.. I'll email you 2 outputs; 1. the Arduino output, 2 the Visual studio output.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP8266 not working after ESP32 install
Reply #26 - Feb 25th, 2017 at 7:02pm
Print Post  
Thanks it's useful to see the two outputs.

I think you just have a bit of confusion with libraries. 

1)
As I said earlier the ArduioOTA library in "\Documents\Arduino\libraries\" should be deleted because it's an old version. The later esp cores included the ota library so remove it.

2)
Same applies to WiFiManager. Remove it.

3)
You have two sdd1306 libraries installed (remove the one you are not using)

ESP8266_Oled_Driver_for_SSD1306_display
esp8266-oled-ssd1306-master


If it doesn't compile in the arduino ide that's a good sign that your config is wrong and not a visual micro issue. 

Visual Micro allows users to override a built-in library by placing it in the sketchbook/libraries folder but you should only do that if you are sure the library is newer and better than the one being overridden. In this case I suspect you have installed older versions of wifiManager and arduinoOTA.

I think if you clean up your libraries folder all will be working nicely again.
« Last Edit: Feb 25th, 2017 at 7:03pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Acuario
Full Member
***
Offline


Posts: 233
Location: Spain
Joined: Aug 28th, 2015
Re: ESP8266 not working after ESP32 install
Reply #27 - Feb 26th, 2017 at 3:59am
Print Post  
Yes, big improvement, along with the latest vm build.
I removed the libraries and it all compiles.

I then reset the SSD1306 architectures value to what it was originally, architectures=esp8266,esp32 and did a refresh.
The library had disappeared again. Back to architectures=* and it works.

I still have all the intellisense errors though.

Thanks for your help Smiley
« Last Edit: Feb 26th, 2017 at 4:33am by Acuario »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP8266 not working after ESP32 install
Reply #28 - Feb 26th, 2017 at 12:47pm
Print Post  
Thanks for the update

I will take a look at multiple architectures in lib properties thanks and will try your project

For now set the "Build + Intellisense" to "Build Only" then the errors list will be more useful



  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP8266 not working after ESP32 install
Reply #29 - Feb 26th, 2017 at 1:39pm
Print Post  
I just tried no architecture and it defaults to * so that's confusing.

I also set up a lib with 3 architectures (avr,sam,esp8266). The lib showed and compiled for all three but when I selected a different platform such as "samd" the lib did not show in the list and was reported as missing by the compiler.

So that worked well in my test and we need to look at your config a little more.

It is not clear from your last post with the intellisense errors which board you had selected? esp32 or esp8266?

Thanks

  
Back to top
WWW  
IP Logged
 
Acuario
Full Member
***
Offline


Posts: 233
Location: Spain
Joined: Aug 28th, 2015
Re: ESP8266 not working after ESP32 install
Reply #30 - Feb 26th, 2017 at 1:57pm
Print Post  
At the moment I'm only using the ESP8266, I don't have the ESP32 tools installed - later when I'm not on an important project!

With just build I have no errors.

With so many intellisense errors auto complete isn't working but I guess that's normal.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP8266 not working after ESP32 install
Reply #31 - Feb 26th, 2017 at 2:44pm
Print Post  
No it's not normal at all.

Now that you are working I need to see a verbose output from both visual micro and the arduino ide again

If you have changed your code to make it work then please also resend.

With this info I should be able see the intellisense issue. 

Thanks

ps: you could also switch intellisense errors back on but change the selector from "current project" to "Open documents". that way you will get intellisense for your own code.
« Last Edit: Feb 26th, 2017 at 2:46pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Acuario
Full Member
***
Offline


Posts: 233
Location: Spain
Joined: Aug 28th, 2015
Re: ESP8266 not working after ESP32 install
Reply #32 - Feb 26th, 2017 at 4:45pm
Print Post  
ok, all sent by email.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP8266 not working after ESP32 install
Reply #33 - Feb 26th, 2017 at 5:34pm
Print Post  
Thanks. I think you should look into the error that you have building in the arduino ide.

I haven't looked but I suspect that you have defined a class or variables from the WiFiClientSecure in the WiFi library in your project. 

You will see the errors they were the ones I was seeing earlier when I tried the code you sent previously. In my case I could see the same error in both visual micro and arduino ide.

I think once you have code that compiles we will be able to resolve the intellisense issue which might be giving up due to duplicate source or paths. In which case I will add some warnings to future releases.

The fact that it compiles now in visual micro but not the arduino ide can be understood/addressed when you have it working fully.
  
Back to top
WWW  
IP Logged
 
Acuario
Full Member
***
Offline


Posts: 233
Location: Spain
Joined: Aug 28th, 2015
Re: ESP8266 not working after ESP32 install
Reply #34 - Feb 26th, 2017 at 6:19pm
Print Post  
Ok I found out what was causing the Arduino error.
In VS you can 'Exclude from project' a file and it then gets ignored. This isn't the case in the lowly Arduino IDE, hence files that shouldn't have been there (ones I used while trying stuff) got included and caused the errors.

Now fixed.. so it compiles in both.

So now just the intellisense....

By the way, the code compiles and works in my project.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP8266 not working after ESP32 install
Reply #35 - Feb 26th, 2017 at 6:59pm
Print Post  
well done. actually I get a lot of users who don't know how to include/exclude files and complain that some files are missed but that it works correctly in the arduino ide. 

There is a tools>option to control if visual micro automatically attempts to add missing files from the project folder when a project is opened using "file>open>arduino project". To be safe it is always best to work the way the arduino ide works in the main project folder. Do as you please in sub folders that arduino doesn't know about. This gives us simple arduino for single folder projects and more advanced when additional folders are used. There isn't a perfect solution as yet Smiley

I don't get any intellisense errors at all with your project. I have re-looked at your build output and see that you have attempted to install esp8266 core below the arduino ide folder and you also have it installed correctly in the downloaded contributions folder.

Delete C:\Program Files (x86)\Arduino\hardware\esp8266. Furthermore if you have added any C:\Program Files (x86)\Arduino\Tools then delete them too. This type of configuration is for older arduino ides or tool chains. The esp tools you have chosen are supposed to be installed using board manager.

Or delete the entire arduino ide folder and install a clean version, then never add any files to it Smiley

Then you will have finally removed everything you have added and things will work again.


« Last Edit: Feb 26th, 2017 at 7:00pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Acuario
Full Member
***
Offline


Posts: 233
Location: Spain
Joined: Aug 28th, 2015
Re: ESP8266 not working after ESP32 install
Reply #36 - Feb 27th, 2017 at 5:25am
Print Post  
That has helped a lot, most of the errors are now gone but some remain. To be sure I deleted the ESP folder from AppData\Local\Arduino15\packages and re-installed using the board manager but the errors remain.

At least intellisense is working again. Any ideas on cleaning these last few - it doesn't affect the project but it would be nice to not have them there.

Also, where should I put the ESP32 stuff? It is all in a folder called espressif but where should it go so the boards etc. get detected? I tried the AppData\Local\Arduino15\packages folder but nothing showed up either in Arduino ide or vs.

Thanks for the helpĀ  Smiley
« Last Edit: Feb 27th, 2017 at 6:43am by Acuario »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP8266 not working after ESP32 install
Reply #37 - Feb 27th, 2017 at 11:23am
Print Post  
Great

I'll try to replicate the 87 errors but if you change the left hand combo box from Current Project to Open Documents they will go for now.

Always install libraries and new hardware into documents\arduino\libraries and documents\arduino\hardware. They are the official arduino locations for custom libs and hardware. You can create the folders if they do not exist. They will never exist by default. This also allows you to change ide without loosing the config.
  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP8266 not working after ESP32 install
Reply #38 - May 6th, 2017 at 12:38am
Print Post  
Update

The windows install guide for the Arduino IDE works well. 

https://github.com/espressif/arduino-esp32/blob/master/doc/windows.md

https://github.com/espressif/arduino-esp32

When it works in the Arduino IDE it will work in Visual Micro.

There will be an update to visual micro over the next few days that solves some intellisense issues for the esp32




« Last Edit: May 6th, 2017 at 12:39am by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send TopicPrint