Arduino 2.2.1 reports ping timeout

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 

Hi @CamargoF

That output doesn't contain anything about "ping timeout". Where are you seeing this error?

It is the message shown on the compilation error.
It is very strange.

I fix the error when I changed the include for rtc.h:

// #include <rom/rtc.h>  
#include <esp32s3/rom/rtc.h>  

Please, close this issue.

Thanks for the update. I'm glad it is working now.

Regards,
Per

I have the same issue, using a M5core2. 'ping timeout'. IDE 2.2.1, ESP32 board version 2.0.11. I tried changing the #include <esp32s3/rom/rtc.h> to #include <esp32s3/rom/rtc.h> . but no luck. any suggestions?

By downgrading we get around the problem with 1.8.19 version.

Downgrading what?

Hello @ptillisch , please can you help me out with my code here. My code fails to compile due to ping timeout. I'm using Arduino IDE v2.2.1, Firebase Library, and ESP32 Wroom DevKit.

It'll be welcoming if you turn up. Thanks