Code pour esp 32 +ld2410

Pour moi c’est le même soucis que le post que je t’es dit ESP32-S2 - Où est le wifi et le port com?

Ca a bien compiler le firmware, mais le flash plante.

Faudrais essayer de le flasher du server web https://web.esphome.io/
avec une configue minimum. Surtout bien le mettre en mode download.

Citation
Appuyer et maintenir le bouton BOOT et appuyer sur le bouton RESET une fois.
Ensuite vous pouvez relachez le bouton BOOT

Mais ton ip 192.168.0.123 que ta choisie pour le ESP, donc ta box est sur l’ip 192.168.0.1 ?
pour essayer ta pas besoin de ce code, enleve le car tu dois mal le configurer:

 manual_ip:
    static_ip: 192.168.0.123
    gateway: 192.168.0.1
    subnet: 255.255.255.0

Salut
C’est le même Pb sur web esphome.io, ça compile bien, l’ordi reconnaît le port com en connexion directe a.lordi et après ça ne connecte pas. Malgré le mode download bien actif ( boot puis reset puis on relâche boot).
Ça viendrait pas de l ordi non?

Pour la box l ip est 192.168.1.5, je l avais corrigé par rapport au code plus haut.

J’ai mis
manual_ip:
static_ip: 192.168.1.567
gateway: 192.168.1.5
subnet: 255.255.255.0

Salut,
as tu un antivirus ?
si oui, désactive le et retente de flasher.

Hello
j’ai enlevé l’anti virus , je commence a desespérer
j’ai essayer de reinstall avec ce code

esphome:
  name: detect-human-1
  friendly_name: Detect human 1

esp32:
  board: esp32-s2-saola-1
  framework:
    type: arduino

# Enable logging
logger:


# Enable Home Assistant API
api:
  encryption:
    key: "4Z9dX+x91iOI64ruwapKWUb/vViAul1C1GDymoNW4sU="

ota:
  password: "a3690bcba0242a60d6a98cd91c957045"

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  manual_ip:
    static_ip: 192.168.1.250
    gateway: 192.168.1.5
    subnet: 255.255.255.0
  
  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Detect-Human-1 Fallback Hotspot"
    password: "DjT6g3vXN0NU"

captive_portal:
web_server:

ld2410:

uart:
  tx_pin: GPIO18
  rx_pin: GPIO33
  baud_rate: 256000
  parity: NONE
  stop_bits: 1

binary_sensor:
  - platform: ld2410
    has_target:
      name: Presence
    has_moving_target:
      name: Moving Target
    has_still_target:
      name: Still Target
    out_pin_presence_status:
      name: out pin presence status
    
sensor:
  - platform: ld2410
    light:
      name: light
    moving_distance:
      name : Moving Distance
    still_distance:
      name: Still Distance
    moving_energy:
      name: Move Energy
    still_energy:
      name: Still Energy
    detection_distance:
      name: Detection Distance
    g0:
      move_energy:
        name: g0 move energy
      still_energy:
        name: g0 still energy
    g1:
      move_energy:
        name: g1 move energy
      still_energy:
        name: g1 still energy
    g2:
      move_energy:
        name: g2 move energy
      still_energy:
        name: g2 still energy
    g3:
      move_energy:
        name: g3 move energy
      still_energy:
        name: g3 still energy
    g4:
      move_energy:
        name: g4 move energy
      still_energy:
        name: g4 still energy
    g5:
      move_energy:
        name: g5 move energy
      still_energy:
        name: g5 still energy
    g6:
      move_energy:
        name: g6 move energy
      still_energy:
        name: g6 still energy
    g7:
      move_energy:
        name: g7 move energy
      still_energy:
        name: g7 still energy
    g8:
      move_energy:
        name: g8 move energy
      still_energy:
        name: g8 still energy


number:
  - platform: ld2410
    timeout:
      name: timeout
    light_threshold:
      name: light threshold
    max_move_distance_gate:
      name: max move distance gate
    max_still_distance_gate:
      name: max still distance gate
    g0:
      move_threshold:
        name: g0 move threshold
      still_threshold:
        name: g0 still threshold
    g1:
      move_threshold:
        name: g1 move threshold
      still_threshold:
        name: g1 still threshold
    g2:
      move_threshold:
        name: g2 move threshold
      still_threshold:
        name: g2 still threshold
    g3:
      move_threshold:
        name: g3 move threshold
      still_threshold:
        name: g3 still threshold
    g4:
      move_threshold:
        name: g4 move threshold
      still_threshold:
        name: g4 still threshold
    g5:
      move_threshold:
        name: g5 move threshold
      still_threshold:
        name: g5 still threshold
    g6:
      move_threshold:
        name: g6 move threshold
      still_threshold:
        name: g6 still threshold
    g7:
      move_threshold:
        name: g7 move threshold
      still_threshold:
        name: g7 still threshold
    g8:
      move_threshold:
        name: g8 move threshold
      still_threshold:
        name: g8 still threshold

le log est le suivant

Citation
"
Install kk.yaml
INFO ESPHome 2023.12.9
INFO Reading configuration /config/esphome/kk.yaml…
INFO Generating C++ source…
INFO Compiling app…
Processing detect-human-1 (board: esp32-s2-saola-1; framework: arduino; platform: platformio/espressif32@5.4.0)


Library Manager: Installing esphome/AsyncTCP-esphome @ 2.0.1
INFO Installing esphome/AsyncTCP-esphome @ 2.0.1
Unpacking [####################################] 100%
Library Manager: AsyncTCP-esphome@2.0.1 has been installed!
INFO AsyncTCP-esphome@2.0.1 has been installed!
Library Manager: Installing esphome/ESPAsyncWebServer-esphome @ 3.1.0
INFO Installing esphome/ESPAsyncWebServer-esphome @ 3.1.0
Unpacking [####################################] 100%
Library Manager: ESPAsyncWebServer-esphome@3.1.0 has been installed!
INFO ESPAsyncWebServer-esphome@3.1.0 has been installed!
Library Manager: Resolving dependencies…
INFO Resolving dependencies…
Library Manager: Installing esphome/noise-c @ 0.1.4
INFO Installing esphome/noise-c @ 0.1.4
Unpacking [####################################] 100%
Library Manager: noise-c@0.1.4 has been installed!
INFO noise-c@0.1.4 has been installed!
Library Manager: Resolving dependencies…
INFO Resolving dependencies…
Library Manager: Installing esphome/libsodium @ 1.10018.1
INFO Installing esphome/libsodium @ 1.10018.1
Unpacking [####################################] 100%
Library Manager: libsodium@1.10018.1 has been installed!
INFO libsodium@1.10018.1 has been installed!
Library Manager: Installing bblanchon/ArduinoJson @ 6.18.5
INFO Installing bblanchon/ArduinoJson @ 6.18.5
Unpacking [####################################] 100%
Library Manager: ArduinoJson@6.18.5 has been installed!
INFO ArduinoJson@6.18.5 has been installed!
HARDWARE: ESP32S2 240MHz, 320KB RAM, 4MB Flash

  • toolchain-riscv32-esp @ 8.4.0+2021r2-patch5
  • toolchain-xtensa-esp32s2 @ 8.4.0+2021r2-patch5
    Dependency Graph
    |-- AsyncTCP-esphome @ 2.0.1
    |-- WiFi @ 2.0.0
    |-- FS @ 2.0.0
    |-- Update @ 2.0.0
    |-- ESPAsyncWebServer-esphome @ 3.1.0
    |-- DNSServer @ 2.0.0
    |-- ESPmDNS @ 2.0.0
    |-- noise-c @ 0.1.4
    |-- ArduinoJson @ 6.18.5
    Compiling .pioenvs/detect-human-1/src/esphome/components/api/api_connection.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/api/api_frame_helper.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/api/api_pb2.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/api/api_pb2_service.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/api/api_server.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/api/list_entities.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/api/proto.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/api/subscribe_state.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/api/user_services.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/binary_sensor/automation.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/binary_sensor/binary_sensor.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/binary_sensor/filter.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/captive_portal/captive_portal.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/esp32/core.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/esp32/gpio.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/esp32/preferences.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/json/json_util.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/ld2410/ld2410.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/ld2410/number/gate_threshold_number.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/ld2410/number/light_threshold_number.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/ld2410/number/max_distance_timeout_number.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/logger/logger.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/md5/md5.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/mdns/mdns_component.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/mdns/mdns_esp32.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/mdns/mdns_esp8266.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/mdns/mdns_host.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/mdns/mdns_libretiny.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/mdns/mdns_rp2040.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/network/util.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/number/automation.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/number/number.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/number/number_call.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/number/number_traits.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/ota/ota_backend_arduino_esp32.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/ota/ota_backend_arduino_esp8266.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/ota/ota_backend_arduino_libretiny.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/ota/ota_backend_arduino_rp2040.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/ota/ota_backend_esp_idf.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/ota/ota_component.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/sensor/automation.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/sensor/filter.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/sensor/sensor.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/socket/bsd_sockets_impl.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/socket/lwip_raw_tcp_impl.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/socket/lwip_sockets_impl.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/socket/socket.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/uart/uart.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/uart/uart_component.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/uart/uart_component_esp32_arduino.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/uart/uart_component_esp8266.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/uart/uart_component_esp_idf.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/uart/uart_component_libretiny.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/uart/uart_component_rp2040.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/uart/uart_debugger.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/web_server/list_entities.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/web_server/web_server.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/web_server_base/web_server_base.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/wifi/wifi_component.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/wifi/wifi_component_esp32_arduino.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/wifi/wifi_component_esp8266.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/wifi/wifi_component_esp_idf.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/wifi/wifi_component_libretiny.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/components/wifi/wifi_component_pico_w.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/core/application.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/core/color.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/core/component.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/core/component_iterator.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/core/controller.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/core/entity_base.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/core/helpers.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/core/log.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/core/ring_buffer.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/core/scheduler.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/core/string_ref.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/core/time.cpp.o
    Compiling .pioenvs/detect-human-1/src/esphome/core/util.cpp.o
    Compiling .pioenvs/detect-human-1/src/main.cpp.o
    Building .pioenvs/detect-human-1/bootloader.bin
    Creating esp32s2 image…
    Successfully created esp32s2 image.
    Generating partitions .pioenvs/detect-human-1/partitions.bin
    Compiling .pioenvs/detect-human-1/lib942/AsyncTCP-esphome/AsyncTCP.cpp.o
    Compiling .pioenvs/detect-human-1/lib64d/WiFi/WiFi.cpp.o
    Compiling .pioenvs/detect-human-1/lib64d/WiFi/WiFiAP.cpp.o
    Compiling .pioenvs/detect-human-1/lib64d/WiFi/WiFiClient.cpp.o
    Archiving .pioenvs/detect-human-1/lib942/libAsyncTCP-esphome.a
    Compiling .pioenvs/detect-human-1/lib64d/WiFi/WiFiGeneric.cpp.o
    Compiling .pioenvs/detect-human-1/lib64d/WiFi/WiFiMulti.cpp.o
    Compiling .pioenvs/detect-human-1/lib64d/WiFi/WiFiSTA.cpp.o
    Compiling .pioenvs/detect-human-1/lib64d/WiFi/WiFiScan.cpp.o
    Compiling .pioenvs/detect-human-1/lib64d/WiFi/WiFiServer.cpp.o
    Compiling .pioenvs/detect-human-1/lib64d/WiFi/WiFiUdp.cpp.o
    Compiling .pioenvs/detect-human-1/lib01c/FS/FS.cpp.o
    Compiling .pioenvs/detect-human-1/lib01c/FS/vfs_api.cpp.o
    Compiling .pioenvs/detect-human-1/libbc6/Update/HttpsOTAUpdate.cpp.o
    Archiving .pioenvs/detect-human-1/lib64d/libWiFi.a
    Compiling .pioenvs/detect-human-1/libbc6/Update/Updater.cpp.o
    Compiling .pioenvs/detect-human-1/lib208/ESPAsyncWebServer-esphome/AsyncEventSource.cpp.o
    Compiling .pioenvs/detect-human-1/lib208/ESPAsyncWebServer-esphome/AsyncWebSocket.cpp.o
    Archiving .pioenvs/detect-human-1/lib01c/libFS.a
    Compiling .pioenvs/detect-human-1/lib208/ESPAsyncWebServer-esphome/WebAuthentication.cpp.o
    Archiving .pioenvs/detect-human-1/libbc6/libUpdate.a
    Compiling .pioenvs/detect-human-1/lib208/ESPAsyncWebServer-esphome/WebHandlers.cpp.o
    Compiling .pioenvs/detect-human-1/lib208/ESPAsyncWebServer-esphome/WebRequest.cpp.o
    Compiling .pioenvs/detect-human-1/lib208/ESPAsyncWebServer-esphome/WebResponses.cpp.o
    Compiling .pioenvs/detect-human-1/lib208/ESPAsyncWebServer-esphome/WebServer.cpp.o
    Compiling .pioenvs/detect-human-1/lib333/DNSServer/DNSServer.cpp.o
    Compiling .pioenvs/detect-human-1/lib915/ESPmDNS/ESPmDNS.cpp.o
    Archiving .pioenvs/detect-human-1/lib915/libESPmDNS.a
    Compiling .pioenvs/detect-human-1/lib21b/libsodium/crypto_aead/chacha20poly1305/sodium/aead_chacha20poly1305.c.o
    Archiving .pioenvs/detect-human-1/lib333/libDNSServer.a
    Compiling .pioenvs/detect-human-1/lib21b/libsodium/crypto_core/ed25519/core_ed25519.c.o
    Compiling .pioenvs/detect-human-1/lib21b/libsodium/crypto_core/ed25519/core_ristretto255.c.o
    Compiling .pioenvs/detect-human-1/lib21b/libsodium/crypto_core/ed25519/ref10/ed25519_ref10.c.o
    Archiving .pioenvs/detect-human-1/lib208/libESPAsyncWebServer-esphome.a
    Compiling .pioenvs/detect-human-1/lib21b/libsodium/crypto_hash/crypto_hash.c.o
    Compiling .pioenvs/detect-human-1/lib21b/libsodium/crypto_hash/sha256/cp/hash_sha256_cp.c.o
    Compiling .pioenvs/detect-human-1/lib21b/libsodium/crypto_hash/sha256/hash_sha256.c.o
    Compiling .pioenvs/detect-human-1/lib21b/libsodium/crypto_onetimeauth/crypto_onetimeauth.c.o
    Compiling .pioenvs/detect-human-1/lib21b/libsodium/crypto_onetimeauth/poly1305/donna/poly1305_donna.c.o
    Compiling .pioenvs/detect-human-1/lib21b/libsodium/crypto_onetimeauth/poly1305/onetimeauth_poly1305.c.o
    Compiling .pioenvs/detect-human-1/lib21b/libsodium/crypto_scalarmult/crypto_scalarmult.c.o
    Compiling .pioenvs/detect-human-1/lib21b/libsodium/crypto_scalarmult/curve25519/ref10/x25519_ref10.c.o
    Compiling .pioenvs/detect-human-1/lib21b/libsodium/crypto_scalarmult/curve25519/scalarmult_curve25519.c.o
    Compiling .pioenvs/detect-human-1/lib21b/libsodium/crypto_stream/chacha20/ref/chacha20_ref.c.o
    Compiling .pioenvs/detect-human-1/lib21b/libsodium/crypto_stream/chacha20/stream_chacha20.c.o
    Compiling .pioenvs/detect-human-1/lib21b/libsodium/crypto_stream/crypto_stream.c.o
    Compiling .pioenvs/detect-human-1/lib21b/libsodium/crypto_verify/sodium/verify.c.o
    Compiling .pioenvs/detect-human-1/lib21b/libsodium/sodium/codecs.c.o
    Compiling .pioenvs/detect-human-1/lib21b/libsodium/sodium/core.c.o
    Compiling .pioenvs/detect-human-1/lib21b/libsodium/sodium/runtime.c.o
    Compiling .pioenvs/detect-human-1/lib21b/libsodium/sodium/utils.c.o
    Compiling .pioenvs/detect-human-1/lib36d/noise-c/backend/openssl/cipher-aesgcm.c.o
    Compiling .pioenvs/detect-human-1/lib36d/noise-c/backend/ref/cipher-aesgcm.c.o
    Compiling .pioenvs/detect-human-1/lib36d/noise-c/backend/ref/cipher-chachapoly.c.o
    Compiling .pioenvs/detect-human-1/lib36d/noise-c/backend/ref/dh-curve25519.c.o
    Compiling .pioenvs/detect-human-1/lib36d/noise-c/backend/ref/hash-blake2b.c.o
    Compiling .pioenvs/detect-human-1/lib36d/noise-c/backend/ref/hash-blake2s.c.o
    Compiling .pioenvs/detect-human-1/lib36d/noise-c/backend/ref/hash-sha256.c.o
    Compiling .pioenvs/detect-human-1/lib36d/noise-c/backend/sodium/cipher-aesgcm.c.o
    Compiling .pioenvs/detect-human-1/lib36d/noise-c/backend/sodium/cipher-chachapoly.c.o
    Compiling .pioenvs/detect-human-1/lib36d/noise-c/backend/sodium/dh-curve25519.c.o
    Compiling .pioenvs/detect-human-1/lib36d/noise-c/backend/sodium/hash-blake2b.c.o
    Compiling .pioenvs/detect-human-1/lib36d/noise-c/backend/sodium/hash-sha256.c.o
    Compiling .pioenvs/detect-human-1/lib36d/noise-c/crypto/aes/rijndael-alg-fst.c.o
    Compiling .pioenvs/detect-human-1/lib36d/noise-c/crypto/blake2/blake2b.c.o
    Compiling .pioenvs/detect-human-1/lib36d/noise-c/crypto/blake2/blake2s.c.o
    Compiling .pioenvs/detect-human-1/lib36d/noise-c/crypto/chacha/chacha.c.o
    Compiling .pioenvs/detect-human-1/lib36d/noise-c/crypto/donna/curve25519-donna-c64.c.o
    Compiling .pioenvs/detect-human-1/lib36d/noise-c/crypto/donna/curve25519-donna.c.o
    Compiling .pioenvs/detect-human-1/lib36d/noise-c/crypto/donna/poly1305-donna.c.o
    Compiling .pioenvs/detect-human-1/lib36d/noise-c/crypto/sha2/sha256.c.o
    Compiling .pioenvs/detect-human-1/lib36d/noise-c/crypto/sha2/sha512.c.o
    Compiling .pioenvs/detect-human-1/lib36d/noise-c/crypto/x25519/x25519.c.o
    Compiling .pioenvs/detect-human-1/lib36d/noise-c/protocol/cipherstate.c.o
    Compiling .pioenvs/detect-human-1/lib36d/noise-c/protocol/dhstate.c.o
    Compiling .pioenvs/detect-human-1/lib36d/noise-c/protocol/errors.c.o
    Compiling .pioenvs/detect-human-1/lib36d/noise-c/protocol/handshakestate.c.o
    Compiling .pioenvs/detect-human-1/lib36d/noise-c/protocol/hashstate.c.o
    Compiling .pioenvs/detect-human-1/lib36d/noise-c/protocol/internal.c.o
    Compiling .pioenvs/detect-human-1/lib36d/noise-c/protocol/names.c.o
    Compiling .pioenvs/detect-human-1/lib36d/noise-c/protocol/patterns.c.o
    Compiling .pioenvs/detect-human-1/lib36d/noise-c/protocol/rand_os.c.o
    Compiling .pioenvs/detect-human-1/lib36d/noise-c/protocol/rand_sodium.c.o
    Compiling .pioenvs/detect-human-1/lib36d/noise-c/protocol/randstate.c.o
    Compiling .pioenvs/detect-human-1/lib36d/noise-c/protocol/signstate.c.o
    Compiling .pioenvs/detect-human-1/lib36d/noise-c/protocol/symmetricstate.c.o
    Compiling .pioenvs/detect-human-1/lib36d/noise-c/protocol/util.c.o
    Compiling .pioenvs/detect-human-1/FrameworkArduino/Esp.cpp.o
    Compiling .pioenvs/detect-human-1/FrameworkArduino/FirmwareMSC.cpp.o
    Archiving .pioenvs/detect-human-1/lib36d/libnoise-c.a
    Compiling .pioenvs/detect-human-1/FrameworkArduino/FunctionalInterrupt.cpp.o
    Compiling .pioenvs/detect-human-1/FrameworkArduino/HWCDC.cpp.o
    Compiling .pioenvs/detect-human-1/FrameworkArduino/HardwareSerial.cpp.o
    Compiling .pioenvs/detect-human-1/FrameworkArduino/IPAddress.cpp.o
    Compiling .pioenvs/detect-human-1/FrameworkArduino/IPv6Address.cpp.o
    Archiving .pioenvs/detect-human-1/lib21b/libsodium.a
    Compiling .pioenvs/detect-human-1/FrameworkArduino/MD5Builder.cpp.o
    Compiling .pioenvs/detect-human-1/FrameworkArduino/Print.cpp.o
    Compiling .pioenvs/detect-human-1/FrameworkArduino/Stream.cpp.o
    Compiling .pioenvs/detect-human-1/FrameworkArduino/StreamString.cpp.o
    Compiling .pioenvs/detect-human-1/FrameworkArduino/Tone.cpp.o
    Compiling .pioenvs/detect-human-1/FrameworkArduino/USB.cpp.o
    Compiling .pioenvs/detect-human-1/FrameworkArduino/USBCDC.cpp.o
    Compiling .pioenvs/detect-human-1/FrameworkArduino/USBMSC.cpp.o
    Compiling .pioenvs/detect-human-1/FrameworkArduino/WMath.cpp.o
    Compiling .pioenvs/detect-human-1/FrameworkArduino/WString.cpp.o
    Compiling .pioenvs/detect-human-1/FrameworkArduino/base64.cpp.o
    Compiling .pioenvs/detect-human-1/FrameworkArduino/cbuf.cpp.o
    Compiling .pioenvs/detect-human-1/FrameworkArduino/esp32-hal-adc.c.o
    Compiling .pioenvs/detect-human-1/FrameworkArduino/esp32-hal-bt.c.o
    Compiling .pioenvs/detect-human-1/FrameworkArduino/esp32-hal-cpu.c.o
    Compiling .pioenvs/detect-human-1/FrameworkArduino/esp32-hal-dac.c.o
    Compiling .pioenvs/detect-human-1/FrameworkArduino/esp32-hal-gpio.c.o
    Compiling .pioenvs/detect-human-1/FrameworkArduino/esp32-hal-i2c-slave.c.o
    Compiling .pioenvs/detect-human-1/FrameworkArduino/esp32-hal-i2c.c.o
    Compiling .pioenvs/detect-human-1/FrameworkArduino/esp32-hal-ledc.c.o
    Compiling .pioenvs/detect-human-1/FrameworkArduino/esp32-hal-matrix.c.o
    Compiling .pioenvs/detect-human-1/FrameworkArduino/esp32-hal-misc.c.o
    Compiling .pioenvs/detect-human-1/FrameworkArduino/esp32-hal-psram.c.o
    Compiling .pioenvs/detect-human-1/FrameworkArduino/esp32-hal-rgb-led.c.o
    Compiling .pioenvs/detect-human-1/FrameworkArduino/esp32-hal-rmt.c.o
    Compiling .pioenvs/detect-human-1/FrameworkArduino/esp32-hal-sigmadelta.c.o
    Compiling .pioenvs/detect-human-1/FrameworkArduino/esp32-hal-spi.c.o
    Compiling .pioenvs/detect-human-1/FrameworkArduino/esp32-hal-time.c.o
    Compiling .pioenvs/detect-human-1/FrameworkArduino/esp32-hal-timer.c.o
    Compiling .pioenvs/detect-human-1/FrameworkArduino/esp32-hal-tinyusb.c.o
    Compiling .pioenvs/detect-human-1/FrameworkArduino/esp32-hal-touch.c.o
    Compiling .pioenvs/detect-human-1/FrameworkArduino/esp32-hal-uart.c.o
    Compiling .pioenvs/detect-human-1/FrameworkArduino/firmware_msc_fat.c.o
    Compiling .pioenvs/detect-human-1/FrameworkArduino/libb64/cdecode.c.o
    Compiling .pioenvs/detect-human-1/FrameworkArduino/libb64/cencode.c.o
    Compiling .pioenvs/detect-human-1/FrameworkArduino/main.cpp.o
    Compiling .pioenvs/detect-human-1/FrameworkArduino/stdlib_noniso.c.o
    Compiling .pioenvs/detect-human-1/FrameworkArduino/wiring_pulse.c.o
    Compiling .pioenvs/detect-human-1/FrameworkArduino/wiring_shift.c.o
    Archiving .pioenvs/detect-human-1/libFrameworkArduino.a
    Linking .pioenvs/detect-human-1/firmware.elf
    RAM: [= ] 13.9% (used 45488 bytes from 327680 bytes)
    Flash: [===== ] 50.8% (used 932546 bytes from 1835008 bytes)
    Building .pioenvs/detect-human-1/firmware.bin
    Creating esp32s2 image…
    Successfully created esp32s2 image.
    esp32_create_combined_bin([« .pioenvs/detect-human-1/firmware.bin »], [« .pioenvs/detect-human-1/firmware.elf »])
    Wrote 0xf3c40 bytes to file /data/build/detect-human-1/.pioenvs/detect-human-1/firmware-factory.bin, ready to flash to offset 0x0
    ======================== [SUCCESS] Took 368.52 seconds ========================
    INFO Successfully compiled program.
    INFO Connecting to 192.168.1.250
    ERROR Connecting to 192.168.1.250:3232 failed: [Errno 113] No route to host"

j’ai essayé avec un code de base , cest pas mieux

Salut,
as tu fait un flashage par défaut du webserver a partir de ton pc.
Brancher le ESP en mode download sur le pc, ce connecter au site https://web.esphome.io/

tu sélectionne le port com de l’esp et fait prépare for first use. Tu choix un esp32-s2 et lance le flash.
Quand le flash est fini, débranche l’esp et rebranche le , reconnecte toi et configure le wifi.
Ensuite , adopte le sur HA et tu le reflashera avec le code complet ensuite.

pas a pas

je me connecte du pc vers le site en mode download , ESP device bien reconnue, je lance le flash et ca s’arrete (je recommence comme cela sans cesse)

est ce que c’est l esp qui dysfonctionne?

Quand ta le message Failed to initialize, refait la commande pour mettre en mode donwload ( laisse l’esp brancher au pc ) et fait retry.

j’ai un esp32-S3 avec la même commande pour mettre en mode download.
j’utilisais arduino a un moment pour des tests et je brancher mon esp au pc normal. je lancer arduino, selectionner mon esp, je fesait mon code et avant de flasher, je mettait mon esp en mode download et lancer le flash. Ca fonctionner nikel.

Après, as tu essayer avec un autre cable USB ?
faut un cable USB qui permet le transfert de DATA.

hello
« Quand ta le message Failed to initialize, refait la commande pour mettre en mode donwload ( laisse l’esp brancher au pc ) et fait retry »
je fais ca tout bien ( mode dld) , mais rien a faire, ca me remet le meme message sans fin …

oui moi aussi , j’ai deja flasher des ESP 32, c’etait facile; mais la ca bloque durement …
Le pire , c’est que j’ai un deuxieme device (ESP32 S2, et LD2410c que j’ai soudé) et c’est la meme chose .

Le cable est bon , de qualité mais je vais quand meme essayer de le changer