Closed d42ohpaz closed 3 years ago
Board: ESP32-S2 wroom PlatformIO: 5.1.0 CLion: 2021.3
The ESP32-S2, is different from ESP32 and not supported yet.
The example is compiled OK with ESP32.
You can try to use the correct settings for ESP32-S2 to see if it's OK. The ESP32-S2 core is still not matured and released yet.
[env:esp32-s2-saola-1]
platform = espressif32
board = esp32-s2-saola-1
; change microcontroller
board_build.mcu = esp32s2
; change MCU frequency
board_build.f_cpu = 240000000L
I don't have ESP32-S2 to test now to see if it's OK, but I know there are many incompatibilities compared to ESP32.
I just ordered EP32-S2 to verify.
It looks like my chip is in fact an ESP32 (no S; my apologies). When I switched over my configuration to esp32dev and use the esp32s MCU, I got the following error:
A fatal error occurred: This chip is ESP32 not ESP32-S2. Wrong --chip argument?
I am going to create a blank project and see if I can't get your libraries to work to determine if it's my code or something else. I will try to report back in short order, but this week may be a busy one.
Thank you.
Hello I have exactly the same error and I think my esp32 module is compatible, where am i going wrong?
platformio.ini:
`> [env:esp32doit-devkit-v1]
platform = espressif32 framework = arduino lib_deps = bblanchon/ArduinoJson@^6.18.0 adafruit/Adafruit SSD1306@^2.4.6 adafruit/Adafruit GFX Library@^1.10.10 C:\Users\vjrv\OneDrive\Documentos\PlatformIO\libs\ProDinoESP32 khoih.prog/WebSockets2_Generic@^1.5.0 khoih-prog/EthernetWebServer@^1.5.0 board_build.partitions = min_spiffs.csv board = esp32doit-devkit-v1`
And this is my way out: `> Executing task in folder arduinoesp32: C:\Users\vjrv.platformio\penv\Scripts\platformio.exe run <
Processing esp32doit-devkit-v1 (platform: espressif32; framework: arduino; board: esp32doit-devkit-v1)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via -v, --verbose
option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32doit-devkit-v1.html
PLATFORM: Espressif 32 (3.3.1) > DOIT ESP32 DEVKIT V1
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (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:
compilation terminated. *** [.pio\build\esp32doit-devkit-v1\lib4e0\STM32Ethernet\utility\ethernetif.cpp.o] Error 1 In file included from .pio\libdeps\esp32doit-devkit-v1\STM32Ethernet\src\EthernetUdp.h:43:0, from .pio\libdeps\esp32doit-devkit-v1\STM32Ethernet\src\Dhcp.h:7, from .pio\libdeps\esp32doit-devkit-v1\STM32Ethernet\src\Dhcp.cpp:6: .pio\libdeps\esp32doit-devkit-v1\STM32Ethernet\src\utility/stm32_eth.h:42:23: fatal error: stm32_def.h: No such file or directory
compilation terminated. In file included from .pio\libdeps\esp32doit-devkit-v1\STM32Ethernet\src\EthernetUdp.h:43:0, from .pio\libdeps\esp32doit-devkit-v1\STM32Ethernet\src\Dns.cpp:5: .pio\libdeps\esp32doit-devkit-v1\STM32Ethernet\src\utility/stm32_eth.h:42:23: fatal error: stm32_def.h: No such file or directory
compilation terminated. [.pio\build\esp32doit-devkit-v1\lib4e0\STM32Ethernet\Dhcp.cpp.o] Error 1 [.pio\build\esp32doit-devkit-v1\lib4e0\STM32Ethernet\Dns.cpp.o] Error 1 In file included from .pio\libdeps\esp32doit-devkit-v1\STM32Ethernet\src\EthernetClient.h:7:0, from .pio\libdeps\esp32doit-devkit-v1\STM32Ethernet\src\STM32Ethernet.h:6, from .pio\libdeps\esp32doit-devkit-v1\STM32Ethernet\src\EthernetClient.cpp:7: .pio\libdeps\esp32doit-devkit-v1\STM32Ethernet\src\utility/stm32_eth.h:42:23: fatal error: stm32_def.h: No such file or directory
compilation terminated. In file included from .pio\libdeps\esp32doit-devkit-v1\STM32Ethernet\src\EthernetClient.h:7:0, from .pio\libdeps\esp32doit-devkit-v1\STM32Ethernet\src\STM32Ethernet.h:6, from .pio\libdeps\esp32doit-devkit-v1\STM32Ethernet\src\EthernetServer.cpp:5: .pio\libdeps\esp32doit-devkit-v1\STM32Ethernet\src\utility/stm32_eth.h:42:23: fatal error: stm32_def.h: No such file or directory
compilation terminated. [.pio\build\esp32doit-devkit-v1\lib4e0\STM32Ethernet\EthernetClient.cpp.o] Error 1 [.pio\build\esp32doit-devkit-v1\lib4e0\STM32Ethernet\EthernetServer.cpp.o] Error 1 In file included from .pio\libdeps\esp32doit-devkit-v1\STM32Ethernet\src\EthernetClient.h:7:0, from .pio\libdeps\esp32doit-devkit-v1\STM32Ethernet\src\STM32Ethernet.h:6, from .pio\libdeps\esp32doit-devkit-v1\STM32Ethernet\src\EthernetUdp.cpp:28: .pio\libdeps\esp32doit-devkit-v1\STM32Ethernet\src\utility/stm32_eth.h:42:23: fatal error: stm32_def.h: No such file or directory
compilation terminated. *** [.pio\build\esp32doit-devkit-v1\lib4e0\STM32Ethernet\EthernetUdp.cpp.o] Error 1 In file included from .pio\libdeps\esp32doit-devkit-v1\STM32Ethernet\src\utility\stm32_eth.cpp:40:0: .pio\libdeps\esp32doit-devkit-v1\STM32Ethernet\src\utility\stm32_eth.h:42:23: fatal error: stm32_def.h: No such file or directory
compilation terminated. In file included from .pio\libdeps\esp32doit-devkit-v1\STM32Ethernet\src\EthernetClient.h:7:0, from .pio\libdeps\esp32doit-devkit-v1\STM32Ethernet\src\STM32Ethernet.h:6, from .pio\libdeps\esp32doit-devkit-v1\STM32Ethernet\src\STM32Ethernet.cpp:1: .pio\libdeps\esp32doit-devkit-v1\STM32Ethernet\src\utility/stm32_eth.h:42:23: fatal error: stm32_def.h: No such file or directory
[.pio\build\esp32doit-devkit-v1\lib4e0\STM32Ethernet\utility\stm32_eth.cpp.o] Error 1 compilation terminated. [.pio\build\esp32doit-devkit-v1\lib4e0\STM32Ethernet\STM32Ethernet.cpp.o] Error 1 ============================================================================================ [FAILED] Took 11.20 seconds ============================================================================================El proceso del terminal "C:\Users\vjrv.platformio\penv\Scripts\platformio.exe 'run'" finalizó con el código de salida 1.
Las tareas reutilizarán el terminal, presione cualquier tecla para cerrarlo.`
where is my mistake?
Thanks!
Thanks for your interest in the library.
I'm sorry that you got the same problem as
The reason was stated as
Those lines were added as precaution (more than just enough, covering all platforms / libraries) so that PIO users can easily select which are necessary.
I always expect the more sophisticated PIO users will know how to fix this precaution
issue. But I now rethink and will comment out all those precaution
lines to avoid the fatal error
.
Then it's up to the users to add the necessary lines (or still the same fatal
error` of not finding the library) and see which approach is better then.
When attempting to include this library, or the DS323x_Generic that seems to depend on this library, I get the above error when trying to compile. The thing is: I don't use an stm32; I use an esp32. As you'll see from the compile log below, this appears to stem from somewhere around the STM32Ethernet dependency. I suspect their library works fine for stm32 boards, so maybe there is an include somewhere that needs
#if defined(ESP32)
wrapped around it?Board: ESP32-S2 wroom PlatformIO: 5.1.0 CLion: 2021.3 platformio.ini:
compile log:
If there's anything else I can provide, please let me know.