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 10710 times)
Acuario
Full Member
***
Offline


Posts: 233
Location: Spain
Joined: Aug 28th, 2015
ESP8266 not working after ESP32 install
Feb 24th, 2017 at 5:15pm
Print Post  
Hi,
I installed the ESP32 tools following the instructions on github, I installed the tools in C:\Program Files (x86)\Arduino\hardware\espressif as the folderĀ  C:/Users/[YOUR_USER_NAME]/Documents/Arduino/hardware/espressif/esp32 does not exist on my system (Windows 7).

I do have a ores\esp8266

Firstly in vs all the ESP8266 boards disappeared Sad The board manager still had the ESP8266 listed though.

I tried in the Arduino IDE and it works ok. Now I have the ESP boards listed and can select one but when I try to compile I get the following..
 
« Last Edit: Feb 24th, 2017 at 5:25pm by Tim@Visual Micro »  
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 #1 - Feb 24th, 2017 at 5:29pm
Print Post  
Hi,

Thanks for the output but it's best read from a .txt file. Can you please copy the output to a .txt and attach to a post here

"C:/Users/[YOUR_USER_NAME]/Documents/Arduinohardware" means "myDocuments\Arduino\Hardware" and that's the best place for it.

Which versions of visual micro do you have installed? Tools>extensions and Updates>Installed>Arduino IDE

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 #2 - Feb 24th, 2017 at 8:05pm
Print Post  
Version is 1701.19.1
I've never (conscientiously) selected anything but the default directories chosen when I've installed anything. I've had vm installed for ages and regularly update.
On my system MyDocuments\Arduino\Hardware doesn't exist. I have the Arduino ide in C:\Program Files (x86)\Arduino
« Last Edit: Feb 24th, 2017 at 8:09pm 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 #3 - Feb 24th, 2017 at 8:15pm
Print Post  
Thanks. 

There have been huge changes in the tools discovery design of the arduino world in the past 18 months. In the past few months there have also been many different tool versions released (for each tool chain) which have tested the tool discovery system to the full.

In the past month visual micro has added a lot of resilience in this area so it's worth updating. The release notes are always on the top menu of visualmicro.com if you like to ensure there is something of interest before upgrading.

Look forward to hearing if the update resolves the issue.
  
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 #4 - Feb 24th, 2017 at 9:07pm
Print Post  
Hi,
not fixed it and even worse Sad I have 1882 errors shown in the error list (before I had 7 that didn't seem to matter).

I can't compile as it says I'm missing includes.
I checked and the file is not in the build path.
So I tried to re-install the library and it installs in the directory correctly but doesn't appear in the list of user installed libraries and it seems like vm doesn't recognise it is there although it has installed it.

The library concerned is:
ESP8266 and ESP32 Oled Driver for SSD1306 display by Daniel Eichhom, Fabrice Weinberg

Just found another, ArduinoOTA - exhibits the same problem.
« Last Edit: Feb 24th, 2017 at 9:19pm by Acuario »  
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 #5 - Feb 24th, 2017 at 9:18pm
Print Post  
Hi

Thanks for updating it's always important. 

In the visual micro board manager can you see the esp8266 hardware?

If you can then click Rescan and try compile again, otherwise let me know.

The errors will be intellisense errors because you have not yet has a successful compile. It is possible to filter the error list for "build only" ignoring intellisense. That can be less confusing.

I am running both esp32 and 8266 with so we have some mismatch of something.

Can we first of all make sure the esp32 is installed in the sketchBook\Hardware folder and not the ide hardware folder.

After doing that please build and attach the output as a .txt so that I can see the settings again.

Thanks

« Last Edit: Feb 24th, 2017 at 9:20pm 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 #6 - Feb 24th, 2017 at 9:21pm
Print Post  
Hi,
at the moment I'm just interested in getting the ESP8266 functioning again as I'm working on a project (not to self, don't upgrade when working for a customer!!!)

Yes the ESP is in the boards manager

I just found the ArduinoOTA has the same problem.
I've added the full path to force the includes which helps but it still fails before completing.
I'm not too concerned with the errors as long as it compiles.
« Last Edit: Feb 24th, 2017 at 9:24pm 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 #7 - Feb 24th, 2017 at 9:27pm
Print Post  
Hi,

We can now see in the output that the tool chain has been discovered correctly. The compile failure from before is resolved.

The output now shows as you say an issue with a libraries however it's not right that you have hard coded any paths at all and that will cause confusion and make it impossible to diagnose issues.

Please remove all paths and then make another output. 

It might also help if you ziped and emailed your code to me so I can see what you have included in the project. When you email please include link to this post. info[at]visualmicro.com

Thanks
« Last Edit: Feb 24th, 2017 at 9:28pm 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 #8 - Feb 24th, 2017 at 9:28pm
Print Post  
Here is the output with the include without the full path:

// Include the correct display library
// For a connection via I2C using Wire include
#include <Wire.h>  // Only needed for Arduino 1.6.5 and earlier
#include "SSD1306.h" // alias for `#include "SSD1306Wire.h"`
//#include lay\SSD1306.h"

  

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 #9 - Feb 24th, 2017 at 9:34pm
Print Post  
Excellent thanks.

It says it can't find SSD1306.h

Which library is that in and what is its location.

Is it in a lib below:-

C:\Users\Nigel\Documents\Arduino\libraries

Maybe the easiest thing is to open the arduino ide and switch on file>preferences>verbose compile. Then build and right click select all the build output then copy into a .txt. That will show me where your libs are.
  
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 #10 - Feb 24th, 2017 at 9:38pm
Print Post  
Looking again at your full path references.

try renaming the library named ESP8266_Oled_Driver_for_SSD1306_disp to SSD1306

Then click Rescan on the visual micro explorer or restart the ide.

I suspect that will fix which I will look into.
  
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 #11 - Feb 24th, 2017 at 9:45pm
Print Post  
The arduino ide verbose output will show us the problem (as mentioned above)

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 #12 - Feb 24th, 2017 at 9:51pm
Print Post  
Hi,
tried renaming, rescan but same problem - it seems the library isn't being recognised, neither is ArduinoOTA.
The Arduino compile threw more (and different) errors, output attached.
  

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 #13 - Feb 24th, 2017 at 9:57pm
Print Post  
Can you please post verbose output from the arduino ide as described previously that will help

but also post or email the changes you made to the time library so that you ended up with TimeArd.h as an include

Thanks
  
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 #14 - Feb 24th, 2017 at 10:07pm
Print Post  
I've look at the source you sent. You still have an illegal path for the #include of arduino OTA.

Remember that lib includes must have no path at all
  
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 #15 - Feb 24th, 2017 at 10:12pm
Print Post  
Hi,
Arduino compile attached.
I've included the time library where the TimeArd.h file comes from, I think it was a library I got from somewhere...
  

Please Register or Login to the Forum to see File Attachments
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 #16 - Feb 24th, 2017 at 10:13pm
Print Post  
..only 1 attachment per post..
  

Please Register or Login to the Forum to see File Attachments
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 #17 - Feb 24th, 2017 at 10:14pm
Print Post  
re the path - that was while I was trying to fix the missing includes. I'll remove it now.
  
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 #18 - Feb 24th, 2017 at 10:28pm
Print Post  
Yes you need to remove the path you put in for arduinoJson it would fail to compile in both vm and arduino

It might be an idea you zip and email or attach all your libraries so I can replicate your setup. The timeZone master is currently an issue for both arduino ide and 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 #19 - Feb 24th, 2017 at 10:46pm
Print Post  
ok will email now.
The thing is, before installing the ESP32 code everything compiled and worked correctly, it all went wrong after I installed the ESP32 code (which worked via the Arduino IDE). I have removed the ESP32 code but now can't compile.

I'll send the libraries in a zip by email.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint