- Executing action: flash
- Running ninja in directory /home/suraj/esp/esp-serial-flasher/examples/esp32_example/build
- Executing "ninja flash"...
- [1/5] cd /home/suraj/esp/esp-serial-flasher/examples/esp32_example/build/esp-idf/esptool_py && /home...ion-table.bin /home/suraj/esp/esp-serial-flasher/examples/esp32_example/build/esp-serial-flasher.bin
- esp-serial-flasher.bin binary size 0x14f940 bytes. Smallest app partition is 0x1e0000 bytes. 0x906c0 bytes (30%) free.
- [2/5] Performing build step for 'bootloader'
- [1/1] cd /home/suraj/esp/esp-serial-flasher/examples/esp32_example/build/bootloader/esp-idf/esptool_py && /home/suraj/.espressif/python_env/idf4.4_py3.10_env/bin/python /home/suraj/esp/esp-idf/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x1000 /home/suraj/esp/esp-serial-flasher/examples/esp32_example/build/bootloader/bootloader.bin
- Bootloader binary size 0x63c0 bytes. 0xc40 bytes (11%) free.
- [2/3] cd /home/suraj/esp/esp-idf/components/esptool_py && /usr/bin/cmake -D IDF_PATH="/home/suraj/es...examples/esp32_example/build" -P /home/suraj/esp/esp-idf/components/esptool_py/run_serial_tool.cmake
- esptool.py esp32 -p /dev/ttyUSB0 -b 460800 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 40m --flash_size 4MB 0x1000 bootloader/bootloader.bin 0x10000 esp-serial-flasher.bin 0x8000 partition_table/partition-table.bin
- esptool.py v3.3.2
- Serial port /dev/ttyUSB0
- Connecting.....
- Chip is ESP32-D0WD-V3 (revision 3)
- Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
- Crystal is 40MHz
- MAC: e8:31:cd:c4:cf:3c
- Uploading stub...
- Running stub...
- Stub running...
- Changing baud rate to 460800
- Changed.
- Configuring flash size...
- Flash will be erased from 0x00001000 to 0x00007fff...
- Flash will be erased from 0x00010000 to 0x0015ffff...
- Flash will be erased from 0x00008000 to 0x00008fff...
- Compressed 25536 bytes to 15950...
- Writing at 0x00001000... (100 %)
- Wrote 25536 bytes (15950 compressed) at 0x00001000 in 0.7 seconds (effective 273.7 kbit/s)...
- Hash of data verified.
- Compressed 1374528 bytes to 782572...
- Writing at 0x00010000... (2 %)
- Writing at 0x000178fb... (4 %)
- Writing at 0x0001cb98... (6 %)
- Writing at 0x0002272e... (8 %)
- Writing at 0x00028164... (10 %)
- Writing at 0x0002e245... (12 %)
- Writing at 0x00033e87... (14 %)
- Writing at 0x0003a77b... (16 %)
- Writing at 0x000415bc... (18 %)
- Writing at 0x000489cb... (20 %)
- Writing at 0x0005080e... (22 %)
- Writing at 0x0005775d... (25 %)
- Writing at 0x0005ced1... (27 %)
- Writing at 0x00063339... (29 %)
- Writing at 0x0006b506... (31 %)
- Writing at 0x00073c7d... (33 %)
- Writing at 0x00079860... (35 %)
- Writing at 0x00083688... (37 %)
- Writing at 0x0008970d... (39 %)
- Writing at 0x000915ab... (41 %)
- Writing at 0x00098dfe... (43 %)
- Writing at 0x0009eb5c... (45 %)
- Writing at 0x000a4c07... (47 %)
- Writing at 0x000aac00... (50 %)
- Writing at 0x000b1dcb... (52 %)
- Writing at 0x000ba62e... (54 %)
- Writing at 0x000c0901... (56 %)
- Writing at 0x000c71a7... (58 %)
- Writing at 0x000cdcd0... (60 %)
- Writing at 0x000d57d5... (62 %)
- Writing at 0x000e1aa0... (64 %)
- Writing at 0x000e7ca6... (66 %)
- Writing at 0x000eeb3e... (68 %)
- Writing at 0x000f6408... (70 %)
- Writing at 0x000fc7d0... (72 %)
- Writing at 0x00102b14... (75 %)
- Writing at 0x0010a027... (77 %)
- Writing at 0x00111e94... (79 %)
- Writing at 0x0011a8aa... (81 %)
- Writing at 0x0011f970... (83 %)
- Writing at 0x00126762... (85 %)
- Writing at 0x0012e6c9... (87 %)
- Writing at 0x00139431... (89 %)
- Writing at 0x0013eddd... (91 %)
- Writing at 0x001447f6... (93 %)
- Writing at 0x0014a6e7... (95 %)
- Writing at 0x00152a5d... (97 %)
- Writing at 0x0015af58... (100 %)
- Wrote 1374528 bytes (782572 compressed) at 0x00010000 in 18.3 seconds (effective 599.6 kbit/s)...
- Hash of data verified.
- Compressed 3072 bytes to 105...
- Writing at 0x00008000... (100 %)
- Wrote 3072 bytes (105 compressed) at 0x00008000 in 0.1 seconds (effective 395.6 kbit/s)...
- Hash of data verified.
- Leaving...
- Hard resetting via RTS pin...
- Executing action: monitor
- Running idf_monitor in directory /home/suraj/esp/esp-serial-flasher/examples/esp32_example
- Executing "/home/suraj/.espressif/python_env/idf4.4_py3.10_env/bin/python /home/suraj/esp/esp-idf/tools/idf_monitor.py -p /dev/ttyUSB0 -b 115200 --toolchain-prefix xtensa-esp32-elf- --target esp32 --revision 0 /home/suraj/esp/esp-serial-flasher/examples/esp32_example/build/esp-serial-flasher.elf -m '/home/suraj/.espressif/python_env/idf4.4_py3.10_env/bin/python' '/home/suraj/esp/esp-idf/tools/idf.py' '-p' '/dev/ttyUSB0'"...
- --- idf_monitor on /dev/ttyUSB0 115200 ---
- --- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
- xx������x�x�x��x����x����������x�x��xB��J��ets Jul 29 2019 12:21:46
- rst:0x1 (POWERON_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
- configsip: 0, SPIWP:0xee
- clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
- mode:DIO, clock div:2
- load:0x3fff0030,len:6760
- load:0x40078000,len:14896
- load:0x40080400,len:3792
- 0x40080400: _init at ??:?
- entry 0x40080694
- I (27) boot: ESP-IDF v4.4.3-dirty 2nd stage bootloader
- I (27) boot: compile time 18:38:57
- I (27) boot: chip revision: 3
- I (31) boot_comm: chip revision: 3, min. bootloader chip revision: 0
- I (38) boot.esp32: SPI Speed : 40MHz
- I (42) boot.esp32: SPI Mode : DIO
- I (47) boot.esp32: SPI Flash Size : 4MB
- I (51) boot: Enabling RNG early entropy source...
- I (57) boot: Partition Table:
- I (60) boot: ## Label Usage Type ST Offset Length
- I (68) boot: 0 nvs WiFi data 01 02 00009000 00006000
- I (75) boot: 1 phy_init RF data 01 01 0000f000 00001000
- I (83) boot: 2 factory factory app 00 00 00010000 001e0000
- I (90) boot: End of partition table
- I (94) boot_comm: chip revision: 3, min. application chip revision: 0
- I (101) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=126dcch (1207756) map
- I (547) esp_image: segment 1: paddr=00136df4 vaddr=3ffb0000 size=02334h ( 9012) load
- I (551) esp_image: segment 2: paddr=00139130 vaddr=40080000 size=06ee8h ( 28392) load
- I (565) esp_image: segment 3: paddr=00140020 vaddr=400d0020 size=1a344h (107332) map
- I (604) esp_image: segment 4: paddr=0015a36c vaddr=40086ee8 size=05594h ( 21908) load
- I (613) esp_image: segment 5: paddr=0015f908 vaddr=50000000 size=00010h ( 16) load
- I (619) boot: Loaded app from partition at offset 0x10000
- I (619) boot: Disabling RNG early entropy source...
- I (635) cpu_start: Pro cpu up.
- I (635) cpu_start: Starting app cpu, entry point is 0x40081100
- 0x40081100: call_start_cpu1 at /home/suraj/esp/esp-idf/components/esp_system/port/cpu_start.c:148
- I (0) cpu_start: App cpu up.
- I (649) cpu_start: Pro cpu start user code
- I (649) cpu_start: cpu freq: 160000000
- I (649) cpu_start: Application information:
- I (653) cpu_start: Project name: esp-serial-flasher
- I (659) cpu_start: App version: v1.0.2-3-g8da993a-dirty
- I (666) cpu_start: Compile time: Jan 16 2024 18:38:52
- I (672) cpu_start: ELF file SHA256: 675f40854e405078...
- I (678) cpu_start: ESP-IDF: v4.4.3-dirty
- I (683) heap_init: Initializing. RAM available for dynamic allocation:
- I (690) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
- I (696) heap_init: At 3FFB30A8 len 0002CF58 (179 KiB): DRAM
- I (703) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
- I (709) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
- I (715) heap_init: At 4008C47C len 00013B84 (78 KiB): IRAM
- I (723) spi_flash: detected chip: generic
- I (726) spi_flash: flash io: dio
- I (731) cpu_start: Starting scheduler on PRO CPU.
- I (0) cpu_start: Starting scheduler on APP CPU.
- I (743) gpio: GPIO[25]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
- I (753) gpio: GPIO[26]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
- I (763) serial_flasher: serial initialization succed.
- Cannot connect to target. Error: 2
Error: Cannot connect to target. Error: 2
Hardware used:
slave: ESP32 WROOM 32E
master:ESP32 WROOM 32E
SOLUTIONS TRIED
I tried with different data cables, Jumpers(For slave and master) but getting same issue.
Video demonstration
I am attaching video demonstation link: https://drive.google.com/file/d/1m8qy01 ... p=drivesdk
So please anyone can tell me why this error is occured?
ERROR LOGS: