Closed fmuntean closed 4 years ago
OK, this is clearly a missing #ifdef
somewhere and for ESP32 probably never tried before by anyone.
From my investigation I found that there are missing includes in ESPEasayStorage.ino
I can add a pull request for this if you want.
@fmuntean If you could make a PR for it, that would be great.
@TD-er : this issue seems to be still here in 20200721 release:
This is the environment configuration I was able to build before but can't anymore [env:MFD_ESP32_4M316k] extends = esp32_common lib_ignore = ${esp32_common.lib_ignore}, ArduinoOTA, Adafruit SGP30 Sensor, Adafruit TCS34725, Adafruit TSL2591 Library, ESP8266_SSD1306, Adafruit ILI9341, Adafruit GFX Library, Adafruit Motor Shield V2 Library, Adafruit MPR121, Adafruit NeoPixel, Adafruit Unified Sensor, AM2320, Blynk, CHT16K33 LED Matrix Library, LiquidCrystal_I2C, RN2xx3 Arduino Library, SparkFun APDS9960 RGB and Gesture Sensor, TinyGPSPlus, MechInputs, SDM, SerialSensors, NewPingESP8266, HLW8012
lib_deps = https://github.com/TD-er/ESPEasySerial.git#v2.0.1, https://github.com/lbernstone/Tone, MFRC522
platform = ${esp32_common.platform}
build_flags = ${esp32_common.build_flags}
-D PLUGIN_BUILD_CUSTOM
-D MFD_PLUGIN_SET_PROD
-D USE_CUSTOM_H
-D DONT_USE_SERVO
-D ESP32
-D WEBSERVER_NEW_UI
-D USES_P201
-D USES_P129
-D CONFIG_ESP_SYSTEM_PANIC_PRINT_HALT
board = esp32dev
board_build.flash_mode = qio
extra_scripts = ${esp32_common.extra_scripts}
pre:tools/pio/pre_custom_esp32.py
post:post_build_ESP32.py
upload_speed = 921600
It would help if you also gave the build errors. And your pre_custom_esp32.py
If you don't like to share it online, you can also email me.
Is the build error related to P012_LCD ? I tested with your config and I ran into a build error there which I cannot yet explain.
I noticed MD5Builder is part of the Arduino_OTA library, so if you ignore that lib then MD5Builder will not work.
I will have a look at it.
I will make a commit with a few changes I made. That commit, including this build env should probably work:
[env:MFD_ESP32_4M316k]
extends = esp32_common
board = esp32dev
platform = ${esp32_common.platform}
lib_ignore = ${esp32_common.lib_ignore}, ArduinoOTA, Adafruit SGP30 Sensor, Adafruit TCS34725, Adafruit TSL2591 Library, ESP8266_SSD1306, Adafruit ILI9341, Adafruit GFX Library, Adafruit Motor Shield V2 Library, Adafruit MPR121, Adafruit NeoPixel, Adafruit Unified Sensor, AM2320, Blynk, CHT16K33 LED Matrix Library, LiquidCrystal_I2C, RN2xx3 Arduino Library, SparkFun APDS9960 RGB and Gesture Sensor, TinyGPSPlus, MechInputs, SDM, SerialSensors, NewPingESP8266, HLW8012, LOLIN_EPD
lib_deps = ${esp32_common.lib_deps}, https://github.com/lbernstone/Tone, MFRC522
build_flags = ${esp32_common.build_flags} -DPLUGIN_BUILD_CUSTOM -D MFD_PLUGIN_SET_PROD -D DONT_USE_SERVO -D ESP32 -D WEBSERVER_NEW_UI -D USES_P201 -D USES_P129 -D CONFIG_ESP_SYSTEM_PANIC_PRINT_HALT
board_build.flash_mode = qio
extra_scripts = ${esp32_common.extra_scripts} pre:tools/pio/pre_custom_esp32.py
upload_speed = 921600
It would help if you also gave the build errors. And your pre_custom_esp32.py
If you don't like to share it online, you can also email me.
Is the build error related to P012_LCD ? I tested with your config and I ran into a build error there which I cannot yet explain.
I don't have a custom pre ESP32 script. This is the one that is part of the ESPEasy project. I also just realized that I don't need it.
The error was around the MD5Builder not being found.
In my local env I have added #include
You might have run into a different build error than me due to the fact that you might use different plugins. I use so many lib_ignore due to the fact that I don't need them as I am not using the plugins that are using those libraries. So no need to slow the process down. my MFD_PLUGIN_SET_PROD selection is:
// This selects only the plugins I use in my prod boards
#ifdef MFD_PLUGIN_SET_PROD
# define PLUGIN_SET_NONE
# define USES_P001 // Switch
# define USES_P002 // ADC
# define USES_P003 // Pulse
# define USES_P014 // SI7021
# define USES_P017 // PN532 RFID reader
# define USES_P025 // ADS1115
# define USES_P026 // SysInfo
# define USES_P028 // BME280
# define USES_P033 // Dummy
# define USES_P069 // LM75A Temperature Sensor
#define USES_P097 // Touch (ESP32)
# define USES_P105 //RGBW Light
# define USES_P123 // SI7013 Temperature Humindity and ADC
// # define USES_P129 // RC522 RFID reader
# define USES_P200 // ADS1115 Thermistor
# define CONTROLLER_SET_NONE
# define USES_C005 // OpenHAB MQTT
// # define NOTIFIER_SET_NONE //MFD: setting this removes the notification page
# ifdef NOTIFIER_SET_STABLE
# undef NOTIFIER_SET_STABLE
# endif // ifdef NOTIFIER_SET_STABLE
# ifdef NOTIFIER_SET_TESTING
# undef NOTIFIER_SET_TESTING
# endif // ifdef NOTIFIER_SET_TESTING
# ifdef NOTIFIER_SET_EXPERIMENTAL
# undef NOTIFIER_SET_EXPERIMENTAL
# endif // ifdef NOTIFIER_SET_EXPERIMENTAL
# ifdef NOTIFIER_SET_NONE
# undef NOTIFIER_SET_NONE
# endif // ifdef NOTIFIER_SET_NONE
# define USES_N002 // Buzzer
#endif // ifdef MFD_PLUGIN_SET_PROD
With the pending PR and the esp32 env for in your .ini file I can build it just fine with this plugin set you showed.
With the pending PR and the esp32 env for in your .ini file I can build it just fine with this plugin set you showed.
Great: let's have this PR moved forward and I can test it locally.
It has been merged.
tested with latest and now builds successful.
I am trying to disable the ARDUINO_OTA feature for ESP32 board by commenting out the
define FEATURE_ARDUINO_OTA from inside the ESPEasy_common.h
The build fails with the following errors:
This was possible for the ESP8266 boards before.