Use the platformio.ini
[env:abiot-gateway-arduinoesp32]
platform = https://github.com/tasmota/platform-espressif32/releases/download/v2.0.2idf/platform-espressif32-2.0.2.zip
framework = arduino
board = esp32-s2-saola-1
lib_deps =
knolleary/PubSubClient@^2.8
vshymanskyy/TinyGSM@^0.11.4
plerup/EspSoftwareSerial@^6.13.2
xreef/EByte LoRa E32 library@^1.5.2
adafruit/RTClib@^1.14.1
nickgammon/Regexp@^0.1.0
bblanchon/ArduinoJson@^6.18.5
arduino-libraries/Ethernet@^2.0.0
openslab-osu/SSLClient@^1.6.11
ayushsharma82/AsyncElegantOTA@^2.2.6
ottowinter/ESPAsyncWebServer-esphome@^2.1.0
monitor_port = COM15
build_flags = -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG
upload_protocol = esp-prog
debug_tool = esp-prog
debug_speed = 500
and execute the project task “Build”, then “Advanced → Verbose Upload”. What does the latter one output?