Trouble to flash ESP 32 S2 mini + ld2410c

Kikipro35
Posts: 5
Joined: Sun Feb 04, 2024 12:01 am

Trouble to flash ESP 32 S2 mini + ld2410c

Postby Kikipro35 » Sun Feb 04, 2024 12:13 am

Hello
i want to make a presence detector. Prject
impossible to flash bye PC
it is possible to compile wirelessely, but flash dont work finally (code IS valides)
my code is

Code: Select all

esphome:
  name: xx
  friendly_name: XX

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

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "xxxxxxxxxx"

ota:
  password: "xxxxxx"

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  manual_ip:
   static_ip: 192.168.1.56
   gateway: 192.168.1.5
   subnet: 255.255.255.0

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Xx Fallback Hotspot"
    password: "oxxxxxxxxx"

captive_portal:

web_server:
  port: 80
  version: 2
  local: true
 
ld2410:
 
uart:
  tx_pin: GPIO18
  rx_pin: GPIO33
  baud_rate: 256000
  parity: NONE
  stop_bits: 1
 
i2c:
  - id: bus_a
    sda: 12
    scl: 11
    scan: true
 
sensor:
  - platform: ld2410
    light:
      name: light  
    moving_distance:
      name: Moving Distance
    still_distance:
      name: Still Distance
    moving_energy:
      name: Moving 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
 
  - platform: bh1750
    name: "BH1750 Illuminance"
    address: 0x23
    update_interval: 10s
    id: bh1750_sensor
 
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
 
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
 
switch:
  - platform: ld2410
    engineering_mode:
      name: Engineering Mode
    bluetooth:
      name: Control Bluetooth
 
button:
  - platform: ld2410
    factory_reset:
      name: "factory reset"
    restart:
      name: "restart"
    query_params:
      name: query params
 
select:
  - platform: ld2410
    distance_resolution:
      name: "distance resolution"
    baud_rate:
      name: "baud rate"
    light_function:
      name: light function
    out_pin_level:
      name: out pin level
 
text_sensor:
  - platform: ld2410
    version:
      name: "firmware version"         
  - platform: wifi_info
    ip_address:
      name: ESP IP Address
    ssid:
      name: ESP Connected SSID
    bssid:
      name: ESP Connected BSSID
    mac_address:
      name: ESP Mac Wifi Address

the log is

"
INFO ESPHome 2023.12.9
INFO Reading configuration /config/esphome/xx.yaml…
INFO Generating C++ source…
INFO Compiling app…
Processing xx (board: esp32-s2-saola-1; framework: arduino; platform: platformio/espressif32@5.4.0)
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
|-- Wire @ 2.0.0
|-- ArduinoJson @ 6.18.5
RAM: [= ] 14.4% (used 47168 bytes from 327680 bytes)
Flash: [===== ] 54.2% (used 993810 bytes from 1835008 bytes)
========================= [SUCCESS] Took 29.56 seconds =========================
INFO Successfully compiled program.
INFO Connecting to 192.168.1.56
ERROR Connecting to 192.168.1.56:3232 failed: [Errno 111] Connection refused"

It compiles but cant flash with ans without thé ld2410cmodule

Please help++++++
Mick
Attachments
34e52cf1d3b340b1199761e4b178ae2070c254ea_2_750x1000.jpeg
34e52cf1d3b340b1199761e4b178ae2070c254ea_2_750x1000.jpeg (103.52 KiB) Viewed 2080 times
772f29d077d1b3f17e044a78e258077106d2b303_2_1000x1000.jpeg
772f29d077d1b3f17e044a78e258077106d2b303_2_1000x1000.jpeg (115.66 KiB) Viewed 2080 times
720a2f4f5c321af0df1dd5fdc1d9896e421bbc9d_2_1182x1000.jpeg
720a2f4f5c321af0df1dd5fdc1d9896e421bbc9d_2_1182x1000.jpeg (125.55 KiB) Viewed 2080 times

lbernstone
Posts: 829
Joined: Mon Jul 22, 2019 3:20 pm

Re: Trouble to flash ESP 32 S2 mini + ld2410c

Postby lbernstone » Sun Feb 04, 2024 3:14 am

You would need to first flash a firmware via USB/UART that listens on the ArduinoOTA port

Kikipro35
Posts: 5
Joined: Sun Feb 04, 2024 12:01 am

Re: Trouble to flash ESP 32 S2 mini + ld2410c

Postby Kikipro35 » Sun Feb 04, 2024 10:32 pm

Cool thanks a lot
Mick

Kikipro35
Posts: 5
Joined: Sun Feb 04, 2024 12:01 am

Re: Trouble to flash ESP 32 S2 mini + ld2410c

Postby Kikipro35 » Mon Feb 05, 2024 8:26 am

hello

with this code :

Code: Select all

"#include <WiFi.h>
#include <ESPmDNS.h>
#include <WiFiUdp.h>
#include <ArduinoOTA.h>

const char* ssid = "..........";
const char* password = "..........";

void setup() {
  Serial.begin(115200);
  Serial.println("Booting");
  WiFi.mode(WIFI_STA);
  WiFi.begin(ssid, password);
  while (WiFi.waitForConnectResult() != WL_CONNECTED) {
    Serial.println("Connection Failed! Rebooting...");
    delay(5000);
    ESP.restart();
  }

  // Port defaults to 3232
  // ArduinoOTA.setPort(3232);

  // Hostname defaults to esp3232-[MAC]
  // ArduinoOTA.setHostname("myesp32");

  // No authentication by default
  // ArduinoOTA.setPassword("admin");

  // Password can be set with it's md5 value as well
  // MD5(admin) = 21232f297a57a5a743894a0e4a801fc3
  // ArduinoOTA.setPasswordHash("21232f297a57a5a743894a0e4a801fc3");

  ArduinoOTA
    .onStart([]() {
      String type;
      if (ArduinoOTA.getCommand() == U_FLASH)
        type = "sketch";
      else // U_SPIFFS
        type = "filesystem";

      // NOTE: if updating SPIFFS this would be the place to unmount SPIFFS using SPIFFS.end()
      Serial.println("Start updating " + type);
    })
    .onEnd([]() {
      Serial.println("\nEnd");
    })
    .onProgress([](unsigned int progress, unsigned int total) {
      Serial.printf("Progress: %u%%\r", (progress / (total / 100)));
    })
    .onError([](ota_error_t error) {
      Serial.printf("Error[%u]: ", error);
      if (error == OTA_AUTH_ERROR) Serial.println("Auth Failed");
      else if (error == OTA_BEGIN_ERROR) Serial.println("Begin Failed");
      else if (error == OTA_CONNECT_ERROR) Serial.println("Connect Failed");
      else if (error == OTA_RECEIVE_ERROR) Serial.println("Receive Failed");
      else if (error == OTA_END_ERROR) Serial.println("End Failed");
    });

  ArduinoOTA.begin();

  Serial.println("Ready");
  Serial.print("IP address: ");
  Serial.println(WiFi.localIP());
}

void loop() {
  ArduinoOTA.handle();
}"
[code]


i have this error log 

[code]
Sketch uses 699722 bytes (53%) of program storage space. Maximum is 1310720 bytes.
Global variables use 43636 bytes (13%) of dynamic memory, leaving 284044 bytes for local variables. Maximum is 327680 bytes.
esptool.py v4.5.1
Serial port COM9
Connecting...
Chip is ESP32-S2FNR2 (revision v1.0)
Features: WiFi, Embedded Flash 4MB, Embedded PSRAM 2MB, ADC and temperature sensor calibration in BLK2 of efuse V2
Crystal is 40MHz
MAC: 80:65:99:49:8c:b4
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Flash will be erased from 0x00001000 to 0x00004fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Flash will be erased from 0x00010000 to 0x000bafff...
Compressed 14720 bytes to 10221...
Writing at 0x00001000... (20 %)
Writing at 0x00001c5a... (40 %)
Writing at 0x000027ac... (60 %)
Writing at 0x000032d6... (80 %)
Writing at 0x00003c4c... (100 %)
Wrote 14720 bytes (10221 compressed) at 0x00001000 in 0.2 seconds (effective 603.6 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 146...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (146 compressed) at 0x00008000 in 0.0 seconds (effective 552.7 kbit/s)...
Hash of data verified.
Compressed 8192 bytes to 47...
Writing at 0x0000e000... (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.1 seconds (effective 747.7 kbit/s)...
Hash of data verified.
Compressed 700080 bytes to 469717...
Writing at 0x00010000... (0 %)
Writing at 0x0001153f... (0 %)
Writing at 0x00012cf6... (1 %)
Writing at 0x00014226... (1 %)
Writing at 0x00015718... (2 %)
Writing at 0x00016e53... (2 %)
Writing at 0x00018aa2... (3 %)
Writing at 0x0001a319... (3 %)
Writing at 0x0001bd84... (3 %)
Writing at 0x0001d241... (4 %)
Writing at 0x0001ea40... (4 %)
Writing at 0x0001f9ef... (5 %)
Writing at 0x000206c0... (5 %)
Writing at 0x000218d9... (6 %)
Writing at 0x00022eb9... (6 %)
Writing at 0x000252fd... (6 %)
Writing at 0x000275bf... (7 %)
Writing at 0x000296ed... (7 %)
Writing at 0x0002ae65... (8 %)
Writing at 0x0002bf95... (8 %)
Writing at 0x0002caa8... (9 %)
Writing at 0x0002d3d7... (9 %)
Writing at 0x0002dd78... (10 %)
Writing at 0x0002e804... (10 %)
Writing at 0x0002f248... (10 %)
Writing at 0x0002fda5... (11 %)
Writing at 0x000309d9... (11 %)
Writing at 0x000316b9... (12 %)
Writing at 0x00032365... (12 %)
Writing at 0x00032eb1... (13 %)
Writing at 0x0003389a... (13 %)
Writing at 0x00034226... (13 %)
Writing at 0x00034c83... (14 %)
Writing at 0x0003586c... (14 %)
Writing at 0x000362cd... (15 %)
Writing at 0x00036dc1... (15 %)
Writing at 0x00037821... (16 %)
Writing at 0x000384af... (16 %)
Writing at 0x00038ee7... (16 %)
Writing at 0x00039a0e... (17 %)
Writing at 0x0003a436... (17 %)
Writing at 0x0003ad8b... (18 %)
Writing at 0x0003b77c... (18 %)
Writing at 0x0003c158... (19 %)
Writing at 0x0003ccd4... (19 %)
Writing at 0x0003d781... (20 %)
Writing at 0x0003e199... (20 %)
Writing at 0x0003eb5e... (20 %)
Writing at 0x0003f567... (21 %)
Writing at 0x0003ff7e... (21 %)
Writing at 0x00040a98... (22 %)
Writing at 0x000415bb... (22 %)
Writing at 0x00042032... (23 %)
Writing at 0x00042a77... (23 %)
Writing at 0x000434e8... (23 %)
Writing at 0x00043fe1... (24 %)
Writing at 0x000449ed... (24 %)
Writing at 0x00045359... (25 %)
Writing at 0x00045cbb... (25 %)
Writing at 0x0004661f... (26 %)
Writing at 0x00047036... (26 %)
Writing at 0x000479ec... (26 %)
Writing at 0x0004841e... (27 %)
Writing at 0x00048f34... (27 %)
Writing at 0x00049913... (28 %)
Writing at 0x0004a32d... (28 %)
Writing at 0x0004ad00... (29 %)
Writing at 0x0004b649... (29 %)
Writing at 0x0004bf62... (30 %)
Writing at 0x0004c923... (30 %)
Writing at 0x0004d356... (30 %)
Writing at 0x0004dd24... (31 %)
Writing at 0x0004e74d... (31 %)
Writing at 0x0004f0e5... (32 %)
Writing at 0x0004fb41... (32 %)
Writing at 0x000504a9... (33 %)
Writing at 0x00050e40... (33 %)
Writing at 0x00051896... (33 %)
Writing at 0x000521ff... (34 %)
Writing at 0x00052cde... (34 %)
Writing at 0x0005370e... (35 %)
Writing at 0x000540a4... (35 %)
Writing at 0x00054ab5... (36 %)
Writing at 0x00055445... (36 %)
Writing at 0x00055d88... (36 %)
Writing at 0x000567b5... (37 %)
Writing at 0x000571b7... (37 %)
Writing at 0x00057b56... (38 %)
Writing at 0x000584f0... (38 %)
Writing at 0x00058f59... (39 %)
Writing at 0x0005992e... (39 %)
Writing at 0x0005a342... (40 %)
Writing at 0x0005acdd... (40 %)
Writing at 0x0005b6e9... (40 %)
Writing at 0x0005c037... (41 %)
Writing at 0x0005ca06... (41 %)
Writing at 0x0005d4fb... (42 %)
Writing at 0x0005df27... (42 %)
Writing at 0x0005e93d... (43 %)
Writing at 0x0005f320... (43 %)
Writing at 0x0005fcb4... (43 %)
Writing at 0x000606da... (44 %)
Writing at 0x0006105a... (44 %)
Writing at 0x00061a6c... (45 %)
Writing at 0x0006238d... (45 %)
Writing at 0x00062dcb... (46 %)
Writing at 0x00063778... (46 %)
Writing at 0x00064357... (46 %)
Writing at 0x00064d6c... (47 %)
Writing at 0x00065811... (47 %)
Writing at 0x0006629e... (48 %)
Writing at 0x00066de3... (48 %)
Writing at 0x000677e2... (49 %)
Writing at 0x000680e0... (49 %)
Writing at 0x00068a92... (50 %)
Writing at 0x00069475... (50 %)
Writing at 0x00069e99... (50 %)
Writing at 0x0006a8c6... (51 %)
Writing at 0x0006b2b5... (51 %)
Writing at 0x0006bdce... (52 %)
Writing at 0x0006c7f9... (52 %)
Writing at 0x0006d229... (53 %)
Writing at 0x0006dd10... (53 %)
Writing at 0x0006e6bb... (53 %)
Writing at 0x0006f223... (54 %)
Writing at 0x000701f6... (54 %)
Writing at 0x00070d22... (55 %)
Writing at 0x000717bf... (55 %)
Writing at 0x000722de... (56 %)
Writing at 0x00072d6c... (56 %)
Writing at 0x00073839... (56 %)
Writing at 0x000742d9... (57 %)
Writing at 0x00074bfc... (57 %)
Writing at 0x000755ab... (58 %)
Writing at 0x00075f8c... (58 %)
Writing at 0x00076944... (59 %)
Writing at 0x000772e2... (59 %)
Writing at 0x00077c60... (60 %)
Writing at 0x0007866c... (60 %)
Writing at 0x0007902c... (60 %)
Writing at 0x00079a20... (61 %)
Writing at 0x0007a401... (61 %)
Writing at 0x0007adbd... (62 %)
Writing at 0x0007b7e1... (62 %)
Writing at 0x0007c1f5... (63 %)
Writing at 0x0007cbe5... (63 %)
Writing at 0x0007d5e7... (63 %)
Writing at 0x0007e0ed... (64 %)
Writing at 0x0007eb76... (64 %)
Writing at 0x0007f552... (65 %)
Writing at 0x0007feb0... (65 %)
Writing at 0x00080823... (66 %)
Writing at 0x00081274... (66 %)
Writing at 0x00081c59... (66 %)
Writing at 0x00082655... (67 %)
Writing at 0x00082fec... (67 %)
Writing at 0x000839e9... (68 %)
Writing at 0x00084552... (68 %)
Writing at 0x00084fd7... (69 %)
Writing at 0x0008595c... (69 %)
Writing at 0x00086387... (70 %)
Writing at 0x00086e6b... (70 %)
Writing at 0x00087a6c... (70 %)
Writing at 0x000884be... (71 %)
Writing at 0x00088ec4... (71 %)
Writing at 0x000898cb... (72 %)
Writing at 0x0008a30f... (72 %)
Writing at 0x0008ad19... (73 %)
Writing at 0x0008b718... (73 %)
Writing at 0x0008c29e... (73 %)
Writing at 0x0008ccd4... (74 %)
Writing at 0x0008d7f6... (74 %)
Writing at 0x0008e23d... (75 %)
Writing at 0x0008ece2... (75 %)
Writing at 0x0008f6c6... (76 %)
Writing at 0x0009019f... (76 %)
Writing at 0x00090c22... (76 %)
Writing at 0x00091647... (77 %)
Writing at 0x0009238d... (77 %)
Writing at 0x000930cd... (78 %)
Writing at 0x00093cc4... (78 %)
Writing at 0x00094819... (79 %)
Writing at 0x0009521c... (79 %)
Writing at 0x00095cae... (80 %)
Writing at 0x0009685c... (80 %)
Writing at 0x000972ca... (80 %)
Writing at 0x00097d13... (81 %)
Writing at 0x000986ee... (81 %)
Writing at 0x0009915a... (82 %)
Writing at 0x00099cdf... (82 %)
Writing at 0x0009a858... (83 %)
Writing at 0x0009b35d... (83 %)
Writing at 0x0009be24... (83 %)
Writing at 0x0009c9e0... (84 %)
Writing at 0x0009dfcd... (84 %)
Writing at 0x0009efa6... (85 %)
Writing at 0x000a14b0... (85 %)
Writing at 0x000a24a7... (86 %)
Writing at 0x000a2e79... (86 %)
Writing at 0x000a37f2... (86 %)
Writing at 0x000a48ad... (87 %)
Writing at 0x000a5db2... (87 %)
Writing at 0x000a81c3... (88 %)
Writing at 0x000a90fb... (88 %)
Writing at 0x000a9dc2... (89 %)
Writing at 0x000aa90a... (89 %)
Writing at 0x000ab1ba... (90 %)
Writing at 0x000abb64... (90 %)
Writing at 0x000ac557... (90 %)
Writing at 0x000acf7d... (91 %)
Writing at 0x000ad8ad... (91 %)
Writing at 0x000ae312... (92 %)
Writing at 0x000aec81... (92 %)
Writing at 0x000af688... (93 %)
Writing at 0x000b015a... (93 %)
Writing at 0x000b0b35... (93 %)
Writing at 0x000b16b6... (94 %)
Writing at 0x000b23d5... (94 %)
Writing at 0x000b306c... (95 %)
Writing at 0x000b3c5f... (95 %)
Writing at 0x000b45be... (96 %)
Writing at 0x000b4fe2... (96 %)
Writing at 0x000b5a5a... (96 %)
Writing at 0x000b64ec... (97 %)
Writing at 0x000b6f59... (97 %)
Writing at 0x000b7ad8... (98 %)
Writing at 0x000b8934... (98 %)
Writing at 0x000b93f2... (99 %)
Writing at 0x000b9eae... (99 %)
Writing at 0x000baa6c... (100 %)
Wrote 700080 bytes (469717 compressed) at 0x00010000 in 5.4 seconds (effective 1037.1 kbit/s)...
Hash of data verified.

Leaving...
WARNING: ESP32-S2FNR2 (revision v1.0) chip was placed into download mode using GPIO0.
esptool.py can not exit the download mode over USB. To run the app, reset the chip manually.
To suppress this note, set --after option to 'no_reset'.
Failed uploading: uploading error: exit status 1

Kikipro35
Posts: 5
Joined: Sun Feb 04, 2024 12:01 am

Re: Trouble to flash ESP 32 S2 mini + ld2410c

Postby Kikipro35 » Mon Feb 05, 2024 10:38 am

Hello

I try the code with Arduino IDE

Code: Select all

#include <WiFi.h>
#include <ESPmDNS.h>
#include <WiFiUdp.h>
#include <ArduinoOTA.h>

const char* ssid = "..........";
const char* password = "..........";

void setup() {
  Serial.begin(115200);
  Serial.println("Booting");
  WiFi.mode(WIFI_STA);
  WiFi.begin(ssid, password);
  while (WiFi.waitForConnectResult() != WL_CONNECTED) {
    Serial.println("Connection Failed! Rebooting...");
    delay(5000);
    ESP.restart();
  }

  // Port defaults to 3232
  // ArduinoOTA.setPort(3232);

  // Hostname defaults to esp3232-[MAC]
  // ArduinoOTA.setHostname("myesp32");

  // No authentication by default
  // ArduinoOTA.setPassword("admin");

  // Password can be set with it's md5 value as well
  // MD5(admin) = 21232f297a57a5a743894a0e4a801fc3
  // ArduinoOTA.setPasswordHash("21232f297a57a5a743894a0e4a801fc3");

  ArduinoOTA
    .onStart([]() {
      String type;
      if (ArduinoOTA.getCommand() == U_FLASH)
        type = "sketch";
      else // U_SPIFFS
        type = "filesystem";

      // NOTE: if updating SPIFFS this would be the place to unmount SPIFFS using SPIFFS.end()
      Serial.println("Start updating " + type);
    })
    .onEnd([]() {
      Serial.println("\nEnd");
    })
    .onProgress([](unsigned int progress, unsigned int total) {
      Serial.printf("Progress: %u%%\r", (progress / (total / 100)));
    })
    .onError([](ota_error_t error) {
      Serial.printf("Error[%u]: ", error);
      if (error == OTA_AUTH_ERROR) Serial.println("Auth Failed");
      else if (error == OTA_BEGIN_ERROR) Serial.println("Begin Failed");
      else if (error == OTA_CONNECT_ERROR) Serial.println("Connect Failed");
      else if (error == OTA_RECEIVE_ERROR) Serial.println("Receive Failed");
      else if (error == OTA_END_ERROR) Serial.println("End Failed");
    });

  ArduinoOTA.begin();

  Serial.println("Ready");
  Serial.print("IP address: ");
  Serial.println(WiFi.localIP());
}

void loop() {
  ArduinoOTA.handle();
}
and it fail, the log is

Code: Select all

Sketch uses 704070 bytes (53%) of program storage space. Maximum is 1310720 bytes.
Global variables use 55204 bytes (16%) of dynamic memory, leaving 272476 bytes for local variables. Maximum is 327680 bytes.
esptool.py v4.5.1
Serial port COM9
Connecting...
Chip is ESP32-S2FNR2 (revision v1.0)
Features: WiFi, Embedded Flash 4MB, Embedded PSRAM 2MB, ADC and temperature sensor calibration in BLK2 of efuse V2
Crystal is 40MHz
MAC: 80:65:99:49:8c:b4
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Flash will be erased from 0x00001000 to 0x00004fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Flash will be erased from 0x00010000 to 0x000bbfff...
Compressed 14720 bytes to 10221...
Writing at 0x00001000... (20 %)
Writing at 0x00001c5a... (40 %)
Writing at 0x000027ac... (60 %)
Writing at 0x000032d6... (80 %)
Writing at 0x00003c4c... (100 %)
Wrote 14720 bytes (10221 compressed) at 0x00001000 in 0.2 seconds (effective 591.9 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 146...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (146 compressed) at 0x00008000 in 0.0 seconds (effective 554.1 kbit/s)...
Hash of data verified.
Compressed 8192 bytes to 47...
Writing at 0x0000e000... (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.1 seconds (effective 721.4 kbit/s)...
Hash of data verified.
Compressed 704432 bytes to 474801...
Writing at 0x00010000... (0 %)
Writing at 0x0001154f... (0 %)
Writing at 0x00012752... (1 %)
Writing at 0x00013b24... (1 %)
Writing at 0x00015276... (2 %)
Writing at 0x00016b21... (2 %)
Writing at 0x0001852d... (3 %)
Writing at 0x00019ed9... (3 %)
Writing at 0x0001b911... (3 %)
Writing at 0x0001cdb0... (4 %)
Writing at 0x0001e4a0... (4 %)
Writing at 0x0001f040... (5 %)
Writing at 0x0001fecf... (5 %)
Writing at 0x000212d6... (6 %)
Writing at 0x00022a51... (6 %)
Writing at 0x000252bd... (6 %)
Writing at 0x00026fa2... (7 %)
Writing at 0x000294e0... (7 %)
Writing at 0x0002a7f2... (8 %)
Writing at 0x0002b879... (8 %)
Writing at 0x0002c32f... (9 %)
Writing at 0x0002cc1c... (9 %)
Writing at 0x0002d5c9... (9 %)
Writing at 0x0002e051... (10 %)
Writing at 0x0002eb25... (10 %)
Writing at 0x0002f737... (11 %)
Writing at 0x000302a8... (11 %)
Writing at 0x00030f6d... (12 %)
Writing at 0x00031c94... (12 %)
Writing at 0x000328de... (12 %)
Writing at 0x000333de... (13 %)
Writing at 0x00033d41... (13 %)
Writing at 0x00034657... (14 %)
Writing at 0x000351e6... (14 %)
Writing at 0x00035d27... (15 %)
Writing at 0x000367d5... (15 %)
Writing at 0x00037311... (15 %)
Writing at 0x00037d1a... (16 %)
Writing at 0x000387c5... (16 %)
Writing at 0x00039186... (17 %)
Writing at 0x00039b6b... (17 %)
Writing at 0x0003a654... (18 %)
Writing at 0x0003b143... (18 %)
Writing at 0x0003bb2c... (18 %)
Writing at 0x0003c4f5... (19 %)
Writing at 0x0003cef2... (19 %)
Writing at 0x0003d920... (20 %)
Writing at 0x0003e36d... (20 %)
Writing at 0x0003ef18... (21 %)
Writing at 0x0003f97d... (21 %)
Writing at 0x000402f6... (21 %)
Writing at 0x00040d86... (22 %)
Writing at 0x00041889... (22 %)
Writing at 0x00042262... (23 %)
Writing at 0x00042baf... (23 %)
Writing at 0x00043521... (24 %)
Writing at 0x00043f30... (24 %)
Writing at 0x00044933... (25 %)
Writing at 0x000452e4... (25 %)
Writing at 0x00045dc8... (25 %)
Writing at 0x00046744... (26 %)
Writing at 0x00047165... (26 %)
Writing at 0x00047b3f... (27 %)
Writing at 0x000484f2... (27 %)
Writing at 0x00048e3c... (28 %)
Writing at 0x000497f8... (28 %)
Writing at 0x0004a1da... (28 %)
Writing at 0x0004abfb... (29 %)
Writing at 0x0004b5a0... (29 %)
Writing at 0x0004bf47... (30 %)
Writing at 0x0004c95f... (30 %)
Writing at 0x0004d2f5... (31 %)
Writing at 0x0004dc86... (31 %)
Writing at 0x0004e694... (31 %)
Writing at 0x0004f0f8... (32 %)
Writing at 0x0004fb99... (32 %)
Writing at 0x0005059a... (33 %)
Writing at 0x00050f21... (33 %)
Writing at 0x000518a2... (34 %)
Writing at 0x0005228f... (34 %)
Writing at 0x00052bf8... (34 %)
Writing at 0x000535ba... (35 %)
Writing at 0x00054018... (35 %)
Writing at 0x00054a78... (36 %)
Writing at 0x0005541b... (36 %)
Writing at 0x00055d69... (37 %)
Writing at 0x0005677a... (37 %)
Writing at 0x0005710d... (37 %)
Writing at 0x00057b34... (38 %)
Writing at 0x000584c1... (38 %)
Writing at 0x00058ebb... (39 %)
Writing at 0x00059810... (39 %)
Writing at 0x0005a2f3... (40 %)
Writing at 0x0005ad91... (40 %)
Writing at 0x0005b7c1... (40 %)
Writing at 0x0005c121... (41 %)
Writing at 0x0005cb31... (41 %)
Writing at 0x0005d4ad... (42 %)
Writing at 0x0005debe... (42 %)
Writing at 0x0005e862... (43 %)
Writing at 0x0005f26c... (43 %)
Writing at 0x0005fc29... (43 %)
Writing at 0x00060653... (44 %)
Writing at 0x0006100d... (44 %)
Writing at 0x00061a8a... (45 %)
Writing at 0x00062531... (45 %)
Writing at 0x00063059... (46 %)
Writing at 0x00063ac2... (46 %)
Writing at 0x000645a8... (46 %)
Writing at 0x00064f78... (47 %)
Writing at 0x00065990... (47 %)
Writing at 0x00066447... (48 %)
Writing at 0x00066e50... (48 %)
Writing at 0x00067843... (49 %)
Writing at 0x000682de... (49 %)
Writing at 0x00068e2d... (50 %)
Writing at 0x0006982d... (50 %)
Writing at 0x0006a1be... (50 %)
Writing at 0x0006ab76... (51 %)
Writing at 0x0006b54c... (51 %)
Writing at 0x0006bf78... (52 %)
Writing at 0x0006c997... (52 %)
Writing at 0x0006d2f4... (53 %)
Writing at 0x0006dde2... (53 %)
Writing at 0x0006e7fc... (53 %)
Writing at 0x0006f2d9... (54 %)
Writing at 0x0006fd35... (54 %)
Writing at 0x0007086c... (55 %)
Writing at 0x0007127b... (55 %)
Writing at 0x00072287... (56 %)
Writing at 0x00072dcc... (56 %)
Writing at 0x00073866... (56 %)
Writing at 0x000742cb... (57 %)
Writing at 0x00074d68... (57 %)
Writing at 0x00075825... (58 %)
Writing at 0x000762fa... (58 %)
Writing at 0x00076cc2... (59 %)
Writing at 0x00077671... (59 %)
Writing at 0x00078028... (59 %)
Writing at 0x000789fd... (60 %)
Writing at 0x00079395... (60 %)
Writing at 0x00079c85... (61 %)
Writing at 0x0007a67f... (61 %)
Writing at 0x0007b04e... (62 %)
Writing at 0x0007ba37... (62 %)
Writing at 0x0007c45c... (62 %)
Writing at 0x0007ce57... (63 %)
Writing at 0x0007d876... (63 %)
Writing at 0x0007e27e... (64 %)
Writing at 0x0007ec84... (64 %)
Writing at 0x0007f5d6... (65 %)
Writing at 0x000800ca... (65 %)
Writing at 0x00080b52... (65 %)
Writing at 0x0008156f... (66 %)
Writing at 0x00081f13... (66 %)
Writing at 0x000828bc... (67 %)
Writing at 0x00083308... (67 %)
Writing at 0x00083cd6... (68 %)
Writing at 0x000846ea... (68 %)
Writing at 0x00084ff7... (68 %)
Writing at 0x00085a0b... (69 %)
Writing at 0x000864f1... (69 %)
Writing at 0x00086ff7... (70 %)
Writing at 0x000879d1... (70 %)
Writing at 0x000883f7... (71 %)
Writing at 0x00088ef2... (71 %)
Writing at 0x00089af7... (71 %)
Writing at 0x0008a520... (72 %)
Writing at 0x0008aeaa... (72 %)
Writing at 0x0008b8b7... (73 %)
Writing at 0x0008c2cf... (73 %)
Writing at 0x0008ccd5... (74 %)
Writing at 0x0008d781... (74 %)
Writing at 0x0008e2fe... (75 %)
Writing at 0x0008ed2b... (75 %)
Writing at 0x0008f85a... (75 %)
Writing at 0x000902b5... (76 %)
Writing at 0x00090cb6... (76 %)
Writing at 0x00091677... (77 %)
Writing at 0x0009216b... (77 %)
Writing at 0x00092bda... (78 %)
Writing at 0x0009369f... (78 %)
Writing at 0x0009437e... (78 %)
Writing at 0x000950da... (79 %)
Writing at 0x00095d26... (79 %)
Writing at 0x00096866... (80 %)
Writing at 0x000971dc... (80 %)
Writing at 0x00097c81... (81 %)
Writing at 0x000987ed... (81 %)
Writing at 0x0009924f... (81 %)
Writing at 0x00099cf1... (82 %)
Writing at 0x0009a750... (82 %)
Writing at 0x0009b1ef... (83 %)
Writing at 0x0009bd3f... (83 %)
Writing at 0x0009c89c... (84 %)
Writing at 0x0009d3ec... (84 %)
Writing at 0x0009de00... (84 %)
Writing at 0x0009e9f7... (85 %)
Writing at 0x0009ff43... (85 %)
Writing at 0x000a0b19... (86 %)
Writing at 0x000a346a... (86 %)
Writing at 0x000a4565... (87 %)
Writing at 0x000a4f30... (87 %)
Writing at 0x000a58ab... (87 %)
Writing at 0x000a6772... (88 %)
Writing at 0x000a7dcf... (88 %)
Writing at 0x000a9cf1... (89 %)
Writing at 0x000ab0b1... (89 %)
Writing at 0x000abddb... (90 %)
Writing at 0x000ac9fa... (90 %)
Writing at 0x000ad309... (90 %)
Writing at 0x000adcbe... (91 %)
Writing at 0x000ae6a1... (91 %)
Writing at 0x000af0df... (92 %)
Writing at 0x000af98a... (92 %)
Writing at 0x000b03a3... (93 %)
Writing at 0x000b0d39... (93 %)
Writing at 0x000b16ab... (93 %)
Writing at 0x000b214b... (94 %)
Writing at 0x000b2c67... (94 %)
Writing at 0x000b3778... (95 %)
Writing at 0x000b44cd... (95 %)
Writing at 0x000b50ed... (96 %)
Writing at 0x000b5bb5... (96 %)
Writing at 0x000b652d... (96 %)
Writing at 0x000b7029... (97 %)
Writing at 0x000b7b23... (97 %)
Writing at 0x000b85d0... (98 %)
Writing at 0x000b92d4... (98 %)
Writing at 0x000ba05b... (99 %)
Writing at 0x000baa69... (99 %)
Writing at 0x000bb524... (100 %)
Wrote 704432 bytes (474801 compressed) at 0x00010000 in 5.4 seconds (effective 1047.2 kbit/s)...
Hash of data verified.

Leaving...
WARNING: ESP32-S2FNR2 (revision v1.0) chip was placed into download mode using GPIO0.
esptool.py can not exit the download mode over USB. To run the app, reset the chip manually.
To suppress this note, set --after option to 'no_reset'.
Failed uploading: uploading error: exit status 1
thank

Kikipro35
Posts: 5
Joined: Sun Feb 04, 2024 12:01 am

Re: Trouble to flash ESP 32 S2 mini + ld2410c

Postby Kikipro35 » Tue Feb 06, 2024 3:17 pm

Sorry, i am a very beginner

Who is online

Users browsing this forum: Baidu [Spider] and 130 guests