-
-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESP32 SPI driver missing when compiling for ESP8266 in Arduino IDE #88
Comments
any fixes??? |
It would be nice, if someone has the fix already. If not, then the problem will be fixed, when I have the time. |
Even though I usually compile for a NodeMCU, using the generic ESP8266 gives me the same error as mentioned in my OP. |
I'm facing the same issue while using this library, and since i dont have ESP32, so what i did was disable the include ESP32 in io.h then "remove" the esp32 files from lcd_hal/esp library. |
Still the same. I downloaded the latest board support package for ESP8266, selected NodeMCU 1.0 (12E), and still do not observe any compilation errors. The version of Arduino IDE |
I have the same problem with ESP8266 NodeMCU. Attached the copy of the error messages: Additional info about the missing file or directory above: I found it here (and I do not have any idea about the meaning): C:\Users\XYZ\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\tools\sdk\include\driver\driver\spi_master.h |
I have encountered the same issue while targetting the "LOLIN(WEMOS) D1 R2 & mini" ESP8266-based board. As far as I can see, the line #include "driver/spi_master.h" should only be included (in esp32_spi.h) if the following directives are both defined:
And CONFIG_ESP32_SPI_AVAILABLE should only be set (on line 40 of lcd_hal\esp\io.h) if the following is true:
When compiling for the Wemos board, "ESP8266" is defined (the other three are not), so this test should fail, and CONFIG_ESP32_SPI_AVAILABLE should never be set? |
Checked on Arduino IDE 1.8.13, ESP8266 Boards package 3.0.2
|
Thankyou for your attention :) |
Ok, so I've just experienced this problem on another PC.
Compiling the SSD1306_demo example (and any others I've tried) for an ESP8266 board (tried with either the "Wemos D1 Mini" or "Generic ESP8266 Module") fails, with:
Downgrading to lcdgfx v1.0.6 and it works fine. |
Ok, so after incrementally upgrading the library and re-testing, I can clarify that the error occurs in a change introduced in v1.1.2 (in other words, versions<=1.1.1 work fine, versions>=1.1.2 and later fail with the compilation error above.
[src/lcd_hal/arduino/io.h |
it helped me in UserSettings.h #ifdef ESP32 #ifdef ESP8266 |
ESP32 and ESP8266 are defined by the Arduino IDE at compilation time based on the target platform selection, right? I'm not sure exactly how, but looking through the boards.txt file for the Lolin Wemos D1 Mini board which I'm targetting, I don't see any reference to ESP32, only ESP8266 (which is correct). So I'm not sure why/where/how ESP32 is getting defined? |
@alastaira Yes, the library doesn't define these macro. It only uses ESP32, ESP8266, XTENSA and other macro to understand what is the target system. |
Describe the bug
I'm trying to setup a SH1106 1.3" display using this library. Unfortunately whenever I try to compile it in the IDE, even with the minimal example given in the README.md, I get the error of missing "driver/spi_master.h".
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Expected at least the demo to compile.
Screenshots
Please complete the following information:
Additional context
I tried using different versions of this library and the espressif board files, but I got the same errors regardless.
I also tried removing the ESP32 dependencies, but that just got me into more errors than before.
The text was updated successfully, but these errors were encountered: