First up, i’m new to this way of using the Arduino IDE. Installing packages from downloaded content and installing new boards. That’s probably also where the problem to this is, but i just need to get it pointed out.
The thing is, that whenever i try to compile a piece of code in the Arduino IDE, and want to upload it to my ESP8266-01, I always get an error when there’s a normal arduino library included in the sketch. It seems the IDE can’t find the normal Arduino modules, when compiling for a Generic ESP8266 Module. This is an example of what i get, when trying to compile a sketch with the library avr/eeprom.h included:
C:\Users\XXXX\Documents\Arduino\libraries\Esp8266EasyIoT/Esp8266EasyIoT.h:28:24: fatal error: avr/eeprom.h: No such file or directory #include <avr/eeprom.h> ^ compilation terminated. exit status 1 Error compiling for board Generic ESP8266 Module.
The weird thing is that this doesn’t seem to happen when compiling for one of the standard boards.
Obviuosly the libraries i added myself are there, but the standard ones that should work for all boards, doesn’t work. Or what? Am i mistaken, and do i have to download the missing libraries, because they are not available by standard?
Here’s some information on my setup:
- ESP8266-01 connected to a FT232RL FTDI with 2xAA batteries as power supply.
- Arduino IDE version 1.6.9 (Also tried 1.6.5 and also 1.6.5 as portable, but no luck)
- Added this: https://github.com/esp8266/Arduino on version 2.3.0-rc2 (Also tried: 2.2.0, 2.1.0, 2.0.0 and both stable and staging)
It is worth noting that i can upload sketches without libraries in them.
I have no idea what i’m doing wrong… Do you know it?
Thank you :))