I can compile my C-code using Arduino IDE 2.2.1 on Windows 10 Pro without any arror, using the DOIT ESP32 DEVKIT V1.
When I switch the board to ESP32-S3 USB-UTG, the compilation aborts with ping timeout error.
Can you help me to fix it?
ItS looks like there is a directive for ESP32 somewhere that causes the error when I select any ESP32-S3 board option.
By the way, I did not include the libraries WiFi, WiFiClientSecure and HTTPClient.
The output end for ESP32-S3 is
In file included from C:\Users\Projetos\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11/tools/sdk/esp32s3/include/esp_rom/include/esp32/rom/rtc.h:18,
from C:\Comum\CONSENG\_Clientes\4Ground\_DEV\VOXfreezer\SW\ESP32S3\VOXfreezer_v3xN\VOXfreezer_v3xN.ino:229:
C:\Users\Projetos\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11/tools/sdk/esp32s3/include/esp_rom/include/esp32/rom/ets_sys.h:29:2: error: #error "This header should only be included when building for ESP32"
#error "This header should only be included when building for ESP32"
^~~~~
Using library EEPROM at version 2.0.0 in folder: C:\Users\Projetos\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11\libraries\EEPROM
Using library ArduinoJson at version 6.21.3 in folder: C:\Users\Projetos\Documents\Arduino\libraries\ArduinoJson
Using library Arduino_CRC32 at version 1.0.0 in folder: C:\Users\Projetos\Documents\Arduino\libraries\Arduino_CRC32
Using library Ticker at version 2.0.0 in folder: C:\Users\Projetos\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11\libraries\Ticker
Using library FS at version 2.0.0 in folder: C:\Users\Projetos\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11\libraries\FS
Using library SD at version 2.0.0 in folder: C:\Users\Projetos\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11\libraries\SD
Using library SPI at version 2.0.0 in folder: C:\Users\Projetos\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11\libraries\SPI
Using library SPIFFS at version 2.0.0 in folder: C:\Users\Projetos\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11\libraries\SPIFFS
Using library ESP8266Audio at version 1.9.7 in folder: C:\Users\Projetos\Documents\Arduino\libraries\ESP8266Audio
Using library HTTPClient at version 2.0.0 in folder: C:\Users\Projetos\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11\libraries\HTTPClient
Using library WiFi at version 2.0.0 in folder: C:\Users\Projetos\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11\libraries\WiFi
Using library WiFiClientSecure at version 2.0.0 in folder: C:\Users\Projetos\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11\libraries\WiFiClientSecure