I adjusted platformio.ini as suggested. It takes some time until the Tasmota stuff was downloaded and installed. Then I gave the "Build" command in Platformio. The build fails however, see log below.
Code: Select all
* Executing task: C:\Users\Erik\.platformio\penv\Scripts\platformio.exe run --environment env_analogclock
Processing env_analogclock (board: esp32-c6-devkitc-1; platform: https://github.com/tasmota/platform-espressif32/releases/download/2024.06.10/platform-espressif32.zip; framework: arduino)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32-c6-devkitc-1.html
PLATFORM: Espressif 32 (2024.6.10) > Espressif ESP32-C6-DevKitC-1
HARDWARE: ESP32C6 160MHz, 320KB RAM, 8MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-builtin, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
- framework-arduinoespressif32 @ 3.0.1+sha.371d83e
- tool-esptoolpy @ 4.7.3
- tool-mklittlefs @ 3.2.0
- tool-openocd-esp32 @ 2.1100.20220706 (11.0)
- tool-riscv32-esp-elf-gdb @ 11.2.0+20220823
- tool-xtensa-esp-elf-gdb @ 11.2.0+20230208
- toolchain-riscv32-esp @ 12.2.0+20230208
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 32 compatible libraries
Scanning dependencies...
Dependency Graph
|-- ArduinoJson @ 7.0.4
|-- AsyncTCP-esphome @ 2.1.3
|-- ESPAsyncWebServer-esphome @ 3.2.2
|-- WiFiManager @ 2.0.17+sha.d82d0a1
|-- espMqttClient @ 1.7.0
|-- U8g2 @ 2.35.19
|-- Adafruit NeoPixel @ 1.12.2
|-- Ticker @ 2.0.0
|-- Wire @ 2.0.0
|-- ArduinoOTA @ 2.0.0
|-- ESPmDNS @ 2.0.0
|-- LittleFS @ 2.0.0
|-- WiFi @ 2.0.0
Building in release mode
Compiling .pio\build\env_analogclock\src\app_analogclock\clock.cpp.o
Compiling .pio\build\env_analogclock\src\app_analogclock\pulsegenerator.cpp.o
Compiling .pio\build\env_analogclock\src\app_analogclock\settings.cpp.o
Compiling .pio\build\env_analogclock\src\application.cpp.o
Compiling .pio\build\env_analogclock\src\drivers\console.cpp.o
Compiling .pio\build\env_analogclock\src\drivers\files.cpp.o
Compiling .pio\build\env_analogclock\src\drivers\hal.cpp.o
In file included from src/httpserver.h:3,
from src/application.cpp:6:
.pio/libdeps/env_analogclock/AsyncTCP-esphome/src/AsyncTCP.h:26:10: fatal error: IPv6Address.h: No such file or directory
*********************************************************************
* Looking for IPv6Address.h dependency? Check our library registry!
*
* CLI > platformio lib search "header:IPv6Address.h"
* Web > https://registry.platformio.org/search?q=header:IPv6Address.h
*
*********************************************************************
26 | #include "IPv6Address.h"
| ^~~~~~~~~~~~~~~
compilation terminated.
*** [.pio\build\env_analogclock\src\application.cpp.o] Error 1
In file included from C:/Users/Erik/.platformio/packages/framework-arduinoespressif32/libraries/WiFi/src/WiFiSTA.h:29,
from C:/Users/Erik/.platformio/packages/framework-arduinoespressif32/libraries/WiFi/src/WiFi.h:33,
from src/network.h:2,
from src/main.h:4,
from src/drivers/console.cpp:5:
C:/Users/Erik/.platformio/packages/framework-arduinoespressif32/libraries/WiFi/src/WiFiGeneric.h:46:25: error: 'network_event_handle_t' does not name a type; did you mean 'esp_event_handler_t'?
46 | #define wifi_event_id_t network_event_handle_t
| ^~~~~~~~~~~~~~~~~~~~~~
C:/Users/Erik/.platformio/packages/framework-arduinoespressif32/libraries/WiFi/src/WiFiGeneric.h:79:3: note: in expansion of macro 'wifi_event_id_t'
79 | wifi_event_id_t onEvent(WiFiEventCb cbEvent, arduino_event_id_t event = ARDUINO_EVENT_MAX);
| ^~~~~~~~~~~~~~~
C:/Users/Erik/.platformio/packages/framework-arduinoespressif32/libraries/WiFi/src/WiFiGeneric.h:46:25: error: 'network_event_handle_t' does not name a type; did you mean 'esp_event_handler_t'?
46 | #define wifi_event_id_t network_event_handle_t
| ^~~~~~~~~~~~~~~~~~~~~~
C:/Users/Erik/.platformio/packages/framework-arduinoespressif32/libraries/WiFi/src/WiFiGeneric.h:80:3: note: in expansion of macro 'wifi_event_id_t'
80 | wifi_event_id_t onEvent(WiFiEventFuncCb cbEvent, arduino_event_id_t event = ARDUINO_EVENT_MAX);
| ^~~~~~~~~~~~~~~
C:/Users/Erik/.platformio/packages/framework-arduinoespressif32/libraries/WiFi/src/WiFiGeneric.h:46:25: error: 'network_event_handle_t' does not name a type; did you mean 'esp_event_handler_t'?
46 | #define wifi_event_id_t network_event_handle_t
| ^~~~~~~~~~~~~~~~~~~~~~
C:/Users/Erik/.platformio/packages/framework-arduinoespressif32/libraries/WiFi/src/WiFiGeneric.h:81:3: note: in expansion of macro 'wifi_event_id_t'
81 | wifi_event_id_t onEvent(WiFiEventSysCb cbEvent, arduino_event_id_t event = ARDUINO_EVENT_MAX);
| ^~~~~~~~~~~~~~~
C:/Users/Erik/.platformio/packages/framework-arduinoespressif32/libraries/WiFi/src/WiFiGeneric.h:43:25: error: 'NetworkEventCb' has not been declared
43 | #define WiFiEventCb NetworkEventCb
| ^~~~~~~~~~~~~~
C:/Users/Erik/.platformio/packages/framework-arduinoespressif32/libraries/WiFi/src/WiFiGeneric.h:82:20: note: in expansion of macro 'WiFiEventCb'
82 | void removeEvent(WiFiEventCb cbEvent, arduino_event_id_t event = ARDUINO_EVENT_MAX);
| ^~~~~~~~~~~
C:/Users/Erik/.platformio/packages/framework-arduinoespressif32/libraries/WiFi/src/WiFiGeneric.h:82:41: error: 'arduino_event_id_t' has not been declared
82 | void removeEvent(WiFiEventCb cbEvent, arduino_event_id_t event = ARDUINO_EVENT_MAX);
| ^~~~~~~~~~~~~~~~~~
C:/Users/Erik/.platformio/packages/framework-arduinoespressif32/libraries/WiFi/src/WiFiGeneric.h:45:25: error: 'NetworkEventSysCb' has not been declared
45 | #define WiFiEventSysCb NetworkEventSysCb
| ^~~~~~~~~~~~~~~~~
C:/Users/Erik/.platformio/packages/framework-arduinoespressif32/libraries/WiFi/src/WiFiGeneric.h:83:20: note: in expansion of macro 'WiFiEventSysCb'
83 | void removeEvent(WiFiEventSysCb cbEvent, arduino_event_id_t event = ARDUINO_EVENT_MAX);
| ^~~~~~~~~~~~~~
C:/Users/Erik/.platformio/packages/framework-arduinoespressif32/libraries/WiFi/src/WiFiGeneric.h:83:44: error: 'arduino_event_id_t' has not been declared
83 | void removeEvent(WiFiEventSysCb cbEvent, arduino_event_id_t event = ARDUINO_EVENT_MAX);
| ^~~~~~~~~~~~~~~~~~
C:/Users/Erik/.platformio/packages/framework-arduinoespressif32/libraries/WiFi/src/WiFiGeneric.h:83:8: error: 'void WiFiGenericClass::removeEvent(int, int)' cannot be overloaded
with 'void WiFiGenericClass::removeEvent(int, int)'
83 | void removeEvent(WiFiEventSysCb cbEvent, arduino_event_id_t event = ARDUINO_EVENT_MAX);
| ^~~~~~~~~~~
C:/Users/Erik/.platformio/packages/framework-arduinoespressif32/libraries/WiFi/src/WiFiGeneric.h:82:8: note: previous declaration 'void WiFiGenericClass::removeEvent(int, int)'
82 | void removeEvent(WiFiEventCb cbEvent, arduino_event_id_t event = ARDUINO_EVENT_MAX);
| ^~~~~~~~~~~
C:/Users/Erik/.platformio/packages/framework-arduinoespressif32/libraries/WiFi/src/WiFiGeneric.h:46:25: error: 'network_event_handle_t' has not been declared
46 | #define wifi_event_id_t network_event_handle_t
| ^~~~~~~~~~~~~~~~~~~~~~
C:/Users/Erik/.platformio/packages/framework-arduinoespressif32/libraries/WiFi/src/WiFiGeneric.h:84:20: note: in expansion of macro 'wifi_event_id_t'
84 | void removeEvent(wifi_event_id_t id);
| ^~~~~~~~~~~~~~~
C:/Users/Erik/.platformio/packages/framework-arduinoespressif32/libraries/WiFi/src/WiFiGeneric.h:128:25: error: 'arduino_event_id_t' has not been declared
128 | const char *eventName(arduino_event_id_t id);
| ^~~~~~~~~~~~~~~~~~
C:/Users/Erik/.platformio/packages/framework-arduinoespressif32/libraries/WiFi/src/WiFiGeneric.h:130:30: error: 'arduino_event_t' has not been declared
130 | static void _eventCallback(arduino_event_t *event);
| ^~~~~~~~~~~~~~~
C:/Users/Erik/.platformio/packages/framework-arduinoespressif32/libraries/WiFi/src/WiFiGeneric.h:82:68: error: 'ARDUINO_EVENT_MAX' was not declared in this scope; did you mean 'WIFI_EVENT_MAX'?
82 | void removeEvent(WiFiEventCb cbEvent, arduino_event_id_t event = ARDUINO_EVENT_MAX);
| ^~~~~~~~~~~~~~~~~
| WIFI_EVENT_MAX
C:/Users/Erik/.platformio/packages/framework-arduinoespressif32/libraries/WiFi/src/WiFiGeneric.h:83:71: error: 'ARDUINO_EVENT_MAX' was not declared in this scope; did you mean 'WIFI_EVENT_MAX'?
83 | void removeEvent(WiFiEventSysCb cbEvent, arduino_event_id_t event = ARDUINO_EVENT_MAX);
| ^~~~~~~~~~~~~~~~~
| WIFI_EVENT_MAX
C:/Users/Erik/.platformio/packages/framework-arduinoespressif32/libraries/WiFi/src/WiFiSTA.h:44:42: error: expected class-name before '{' token
44 | class STAClass : public NetworkInterface {
| ^
In file included from C:/Users/Erik/.platformio/packages/framework-arduinoespressif32/libraries/WiFi/src/WiFi.h:34:
C:/Users/Erik/.platformio/packages/framework-arduinoespressif32/libraries/WiFi/src/WiFiAP.h:39:41: error: expected class-name before '{' token
39 | class APClass : public NetworkInterface {
| ^
*** [.pio\build\env_analogclock\src\drivers\console.cpp.o] Error 1
========================================================================== [FAILED] Took 36.54 seconds ==========================================================================
Environment Status Duration
--------------- -------- ------------
env_analogclock FAILED 00:00:36.537
===================================================================== 1 failed, 0 succeeded in 00:00:36.537 =====================================================================
I changed back my platformio.ini, but the errors remain ?!
So I removed my local ".platformio" folder and have rebuilt it all, now it's working again with ESP32C3.
I'm puzzled what is going wrong.
Could it be that Tasmota is not 100% compatible (or older/newer?) with plain vanilla Arduino?
See partial log below of the working config with ESP32C3 and plain vanilla Arduino.
Code: Select all
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/adafruit_qtpy_esp32c3.html
PLATFORM: Espressif 32 (6.7.0) > Adafruit QT Py ESP32-C3
HARDWARE: ESP32C3 160MHz, 320KB RAM, 4MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-builtin, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
- framework-arduinoespressif32 @ 3.20016.0 (2.0.16)
- tool-esptoolpy @ 1.40501.0 (4.5.1)
- tool-openocd-esp32 @ 2.1100.20220706 (11.0)
- toolchain-riscv32-esp @ 8.4.0+2021r2-patch5