Open stealth-ultd opened 2 years ago
Arduino IDE 1.8.13 SAMD21 with Board Package 1.6.12 (the latest)
Everything is compiled successfully (Windows 11 OS) Unfortunately, I don't have Mac. I would really appreciate if you find the root cause.
Thank you
One more thing. Can you try the latest library code from master branch? If it works for you, then the issue will be fixed with newer lcdgfx release
Thanks for looking into this!
This is what the latest library (Master branch) gives: "In file included from /Users/xx/Documents/Arduino/libraries/lcdgfx/src/lcd_hal/io.h:55:0, from /Users/xx/Documents/Arduino/libraries/lcdgfx/src/nano_gfx_types.h:31, from /Users/xx/Documents/Arduino/libraries/lcdgfx/src/lcdgfx.h:30, from /Users/xx/Documents/Arduino/TA-Regulator-dev57/OledDisplay.ino:3: /Users/xx/Documents/Arduino/libraries/lcdgfx/src/lcd_hal/esp/esp32_spi.h:34:10: fatal error: driver/spi_master.h: No such file or directory
^~~~~~~~~~~~~~~~~~~~~
compilation terminated. Multiple libraries were found for "Ethernet.h" Used: /Users/xx/Documents/Arduino/libraries/Ethernet Not used: /Applications/Arduino.app/Contents/Java/libraries/Ethernet exit status 1 Error compiling for board Arduino MKRZERO."
BTW: The latest board package for the SAMD board is 1.8.13: https://github.com/arduino/ArduinoCore-samd/releases In your screenshot, it looks like you compile with the SAM package (for Arduino Due), not the SAMD one (for MKRZERO), if I'm correct?
In the screenshot SAMD MKRZERO is captured. The second screenshot is incorrect. i have SAMD MKRZERO v1.8.13 installed (Arduino15\packages\arduino\hardware\samd\1.8.13\libraries\Wire ).
Still no issues with the compilation on my side. If it still doesn't work for you can you install Arduino ESP32 package? https://docs.espressif.com/projects/arduino-esp32/en/latest/installing.html Your case is a bit confusing, since you have ARM Cortex-M0 board, but the library thinks that you compile for ESP32, which is different architecture.
#if defined(CONFIG_ESP32_SPI_AVAILABLE) && defined(CONFIG_ESP32_SPI_ENABLE)
For some reaon, this condition is true in your case. Those constants are defined in src/lcd_hal/esp/io.h, which is used only when you have ESP32 boards:
#elif defined(__XTENSA__) && !defined(ARDUINO)
#include "esp/io.h"
You can try to debug in that direction.
I finally have found a workaround: comment out in lcdgfx/src/lcd-hal/UserSettings.h //#define CONFIG_ESP32_I2C_ENABLE //#define CONFIG_ESP32_SPI_ENABLE It does not solve the origin of this problem, but at least I can now compile versions newer than 1.1.1.
Describe the bug Compiling with lcdgfx versions 1.1.2 and 1.1.4 terminates with the following error:
"In file included from /Users/xx/Documents/Arduino/libraries/lcdgfx/src/lcd_hal/io.h:55:0, Multiple libraries were found for "Ethernet.h" Used: /Users/xx/Documents/Arduino/libraries/Ethernet Not used: /Applications/Arduino.app/Contents/Java/libraries/Ethernet from /Users/xx/Documents/Arduino/libraries/lcdgfx/src/nano_gfx_types.h:31, from /Users/xx/Documents/Arduino/libraries/lcdgfx/src/lcdgfx.h:30, from /Users/xx/Documents/Arduino/TA-Regulator-dev55/OledDisplay.ino:3: /Users/xx/Documents/Arduino/libraries/lcdgfx/src/lcd_hal/esp/esp32_spi.h:34:10: fatal error: driver/spi_master.h: No such file or directory
include "driver/spi_master.h"
compilation terminated. exit status 1 Error compiling for board Arduino MKRZERO."
>> Note: With version lcdgfx 1.1.1 all works OK.
To Reproduce Steps to reproduce the behavior:
Expected behavior No compiling error occurs and sketch should complete compilation without error.
Please complete the following information:
Appreciate this library a lot, and hope also the updated version (1.1.4) can be made to work with MKRZERO!