1/5] cmd.exe /C "cd /D C:\Esp_5\E5_work\adc\build\esp-idf\esptool_py && python C:/Esp_5/components/partition_table/check_sizes.py --offset 0x8000 partition --type app C:/Esp_5/E5_work/adc/build/partition_table/partition-table.bin C:/Esp_5/E5_work/adc/build/adc.bin"
adc.bin binary size 0x2a140 bytes. Smallest app partition is 0x100000 bytes. 0xd5ec0 bytes (84%) free.
[2/5] Performing build step for 'bootloader'
[1/1] cmd.exe /C "cd /D C:\Esp_5\E5_work\adc\build\bootloader\esp-idf\esptool_py && python C:/Esp_5/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x1000 C:/Esp_5/E5_work/adc/build/bootloader/bootloader.bin"
Bootloader binary size 0x52e0 bytes. 0x1d20 bytes (26%) free.
[2/3] cmd.exe /C "cd /D C:\Esp_5\components\esptool_py && C:\ESP_51\tools\cmake\3.23.1\bin\cmake.exe -D IDF_PATH=C:/Esp_5 -D SERIAL_TOOL=python;;C:/Esp_5/components/esptool_py/esptool/esptool.py;--chip;esp32s2 -D SERIAL_TOOL_ARGS=--before=default_reset;--after=hard_reset;write_flash;@flash_args -D WORKING_DIRECTORY=C:/Esp_5/E5_work/adc/build -P C:/Esp_5/components/esptool_py/run_serial_tool.cmake"
esptool esp32s2 -p com3 -b 460800 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 80m --flash_size 2MB 0x1000 bootloader/bootloader.bin 0x10000 adc.bin 0x8000 partition_table/partition-table.bin
esptool.py v4.1
Serial port com3
Connecting...
Failed to get PID of a device on com3, using standard reset sequence.
.
Chip is ESP32-S2FNR2
Features: WiFi, Embedded Flash 4MB, Embedded PSRAM 2MB, ADC and temperature sensor calibration in BLK2 of efuse V1
Crystal is 40MHz
MAC: d4:f9:8d:69:e2:66
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Flash will be erased from 0x00001000 to 0x00006fff...
Flash will be erased from 0x00010000 to 0x0003afff...
Flash will be erased from 0x00008000 to 0x00008fff...
Compressed 21216 bytes to 13354...
Writing at 0x00001000... (100 %)
Wrote 21216 bytes (13354 compressed) at 0x00001000 in 0.6 seconds (effective 275.4 kbit/s)...
Hash of data verified.
Compressed 172352 bytes to 95763...
Writing at 0x00010000... (16 %)
Writing at 0x0001afbd... (33 %)
Writing at 0x000208ae... (50 %)
Writing at 0x000264eb... (66 %)
Writing at 0x0002cd18... (83 %)
Writing at 0x00034ba1... (100 %)
Wrote 172352 bytes (95763 compressed) at 0x00010000 in 2.8 seconds (effective 495.9 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 103...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (103 compressed) at 0x00008000 in 0.0 seconds (effective 493.1 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
Executing action: flash
Running ninja in directory c:\esp_5\e5_work\adc\build
Executing "ninja flash"...
Done

ESP-ROM:esp32s2-rc4-20191025
Build:Oct 25 2019
rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3ffe6108,len:0x1760
load:0x4004c000,len:0xab4
load:0x40050000,len:0x3074
entry 0x4004c1bc
I (21) boot: ESP-IDF v5.0-dev-4002-g7405509d75-dirty 2nd stage bootloader
I (21) boot: compile time 06:37:33
I (22) boot: chip revision: 0
I (26) boot.esp32s2: SPI Speed      : 80MHz
I (31) boot.esp32s2: SPI Mode       : DIO
I (35) boot.esp32s2: SPI Flash Size : 1MB
I (40) boot: Enabling RNG early entropy source...
E (45) flash_parts: partition 0 invalid magic number 0x54aa
E (52) boot: Failed to verify partition table
E (57) boot: load partition table error!
ESP-ROM:esp32s2-rc4-20191025
Build:Oct 25 2019
rst:0x3 (RTC_SW_SYS_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x40051556
SPIWP:0xee
mode:DIO, clock div:1
load:0x3ffe6108,len:0x1760
load:0x4004c000,len:0xab4
load:0x40050000,len:0x3074
entry 0x4004c1bc
I (24) boot: ESP-IDF v5.0-dev-4002-g7405509d75-dirty 2nd stage bootloader
I (24) boot: compile time 06:37:33
I (25) boot: chip revision: 0
I (28) boot.esp32s2: SPI Speed      : 80MHz
I (33) boot.esp32s2: SPI Mode       : DIO
I (38) boot.esp32s2: SPI Flash Size : 1MB
I (42) boot: Enabling RNG early entropy source...
E (48) flash_parts: partition 0 invalid magic number 0x54aa
E (54) boot: Failed to verify partition table
E (59) boot: load partition table error!
ESP-ROM:esp32s2-rc4-20191025
Build:Oct 25 2019
rst:0x3 (RTC_SW_SYS_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x40051556
SPIWP:0xee
mode:DIO, clock div:1
load:0x3ffe6108,len:0x1760
load:0x4004c000,len:0xab4
load:0x40050000,len:0x3074
entry 0x4004c1bc
I (24) boot: ESP-IDF v5.0-dev-4002-g7405509d75-dirty 2nd stage bootloader
I (24) boot: compile time 06:37:33
I (25) boot: chip revision: 0
I (28) boot.esp32s2: SPI Speed      : 80MHz
I (33) boot.esp32s2: SPI Mode       : DIO
I (38) boot.esp32s2: SPI Flash Size : 1MB
I (42) boot: Enabling RNG early entropy source...
E (48) flash_parts: partition 0 invalid magic number 0x54aa
E (54) boot: Failed to verify partition table
E (59) boot: load partition table error!
ESP-ROM:esp32s2-rc4-20191025
Build:Oct 25 2019
rst:0x3 (RTC_SW_SYS_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)