Problem with esp-prog for ESP32

I currently have a problem with the esp-prog-debugger for the ESP32 using the Arduino-framework.

Using a really simple and small Blink-Example-Project, debugging works with my hardware. But when I jump to my current project, which is way bigger (About 1,6-1.7 MB) I am occurring this error:

`read 1082880 bytes from file firmware.bin and flash bank 0 at offset 0x00010000 in 3.806639s (277.804 KiB/s)
contents differ
diff 0 address 0x0001001c. Was 0x30 instead of 0xac
diff 1 address 0x0001001d. Was 0x10 instead of 0x1c
Info : dropped 'gdb' connection
Warn : Flash driver of esp32.flash does not support free_driver_priv()
diff 2 address 0x00010020. Was 0x62 instead of 0x7e`

I already double-checked the hardware - which seems to be fine, as it works for the smaller project - and as well checked if I accidentally used any of the UART-Pins inside the project. But I could not find any problematic line.

Do you maybe have any idea, what else might cause this issue? Is there any correlation between the size of the project and the problems that occur?

Inside the platformio.ini-file, I added these lines:

debug_tool = esp-prog

debug_init_break = tbreak setup

upload_protocol = esp-prog

As far as I can tell, this error occurred during upload and not during debugging.

  • Does the project build and upload? If not, post the full log.
  • If it builds, add build_type = debug to platformio.ini and try building and uploading.

Thank you for your quick reply.
Yes, you are correct, the problem occurred when uploading via JTAG. If I use the same project, same hardware etc. and upload via Serial, the project uploads successfully and everything works. I attached the complete the log here (I hope it’s the common way to do so, as I am new to this forum. I wanted to attach it as log.txt, but only images are allowed as attachments).

Building in debug mode
Linking .pio/build/esp32dev/firmware.elf
Building .pio/build/esp32dev/firmware.bin
Retrieving maximum program size .pio/build/esp32dev/firmware.elf
Checking size .pio/build/esp32dev/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [==        ]  16.3% (used 53288 bytes from 327680 bytes)
Flash: [======    ]  55.1% (used 1082758 bytes from 1966080 bytes)
esptool.py v2.6
========================= [SUCCESS] Took 12.11 seconds =========================
Reading symbols from /Users/marcelhunfeld/Documents/Projekte/temp/Test/.pio/build/esp32dev/firmware.elf...
done.
PlatformIO Unified Debugger -> http://bit.ly/pio-debug
PlatformIO: debug_tool = esp-prog
PlatformIO: Initializing remote target...
Open On-Chip Debugger  v0.10.0-esp32-20190708 (2019-07-08-11:04)
Licensed under GNU GPL v2
For bug reports, read
    http://openocd.org/doc/doxygen/bugs.html
none separate
adapter speed: 20000 kHz
Info : Configured 2 cores
esp32 interrupt mask on
Info : tcl server disabled
Info : telnet server disabled
Info : ftdi: if you experience problems at higher adapter clocks, try the command "ftdi_tdo_sample_edge falling"
Info : clock speed 20000 kHz
Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : esp32: Debug controller 0 was reset (pwrstat=0x5F, after clear 0x0F).
Info : esp32: Core 0 was reset (pwrstat=0x5F, after clear 0x0F).
Info : accepting 'gdb' connection from pipe
Error: No symbols for FreeRTOS
Info : Target halted. PRO_CPU: PC=0x40007BA1 (active)    APP_CPU: PC=0x00000000
Info : Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x00000000
Info : Flash mapping 0: 0x10020 -> 0x3f400020, 260 KB
Info : Flash mapping 1: 0x60018 -> 0x400d0018, 685 KB
Info : Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x00000000
Info : Auto-detected flash size 4194303 KB
Info : Using flash size 4194303 KB
Info : Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x00000000
Info : Flash mapping 0: 0x10020 -> 0x3f400020, 260 KB
Info : Flash mapping 1: 0x60018 -> 0x400d0018, 685 KB
Info : Using flash size 688 KB
Info : Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x00000000
Info : Flash mapping 0: 0x10020 -> 0x3f400020, 260 KB
Info : Flash mapping 1: 0x60018 -> 0x400d0018, 685 KB
Info : Using flash size 264 KB
warning: Overlapping regions in memory map: ignoring
0x40007ba1 in ?? ()
Error: Too large number of threads 4046854476!
Temporary breakpoint 1 at 0x400d7bb0: file src/main.cpp, line 362.
Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : esp32: Debug controller 0 was reset (pwrstat=0x5F, after clear 0x0F).
Info : esp32: Core 0 was reset (pwrstat=0x5F, after clear 0x0F).
esp32: Debug controller 0 was reset (pwrstat=0x5F, after clear 0x0F).
esp32: Core 0 was reset (pwrstat=0x5F, after clear 0x0F).
Info : Target halted. PRO_CPU: PC=0x5000004B (active)    APP_CPU: PC=0x00000000
Target halted. PRO_CPU: PC=0x5000004B (active)    APP_CPU: PC=0x00000000
Info : esp32: Core 0 was reset (pwrstat=0x1F, after clear 0x0F).
Info : esp32: Debug controller 1 was reset (pwrstat=0x5F, after clear 0x0F).
Info : esp32: Core 1 was reset (pwrstat=0x5F, after clear 0x0F).
esp32: Core 0 was reset (pwrstat=0x1F, after clear 0x0F).
esp32: Debug controller 1 was reset (pwrstat=0x5F, after clear 0x0F).
esp32: Core 1 was reset (pwrstat=0x5F, after clear 0x0F).
Info : Target halted. PRO_CPU: PC=0x40000400 (active)    APP_CPU: PC=0x40000400
Target halted. PRO_CPU: PC=0x40000400 (active)    APP_CPU: PC=0x40000400
** Programming Started **
** Programming Started **
auto erase enabled
auto erase enabled
Info : Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
Info : Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
wrote 20480 bytes from file /Users/marcelhunfeld/.platformio/packages/framework-arduinoespressif32@2.10002.190628/tools/sdk/bin/bootloader_dio_40m.bin in 0.570365s (35.065 KiB/s)
wrote 20480 bytes from file /Users/marcelhunfeld/.platformio/packages/framework-arduinoespressif32@2.10002.190628/tools/sdk/bin/bootloader_dio_40m.bin in 0.570365s (35.065 KiB/s)
** Programming Finished **
** Programming Finished **
** Verify Started **
** Verify Started **
Info : Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
read 16848 bytes from file /Users/marcelhunfeld/.platformio/packages/framework-arduinoespressif32@2.10002.190628/tools/sdk/bin/bootloader_dio_40m.bin and flash bank 0 at offset 0x00001000 in 0.287078s (57.312 KiB/s)
contents match
read 16848 bytes from file /Users/marcelhunfeld/.platformio/packages/framework-arduinoespressif32@2.10002.190628/tools/sdk/bin/bootloader_dio_40m.bin and flash bank 0 at offset 0x00001000 in 0.287078s (57.312 KiB/s)
contents match
** Verified OK **
** Verified OK **
Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : esp32: Debug controller 0 was reset (pwrstat=0x5F, after clear 0x0F).
Info : esp32: Core 0 was reset (pwrstat=0x5F, after clear 0x0F).
esp32: Debug controller 0 was reset (pwrstat=0x5F, after clear 0x0F).
esp32: Core 0 was reset (pwrstat=0x5F, after clear 0x0F).
Info : Target halted. PRO_CPU: PC=0x5000004B (active)    APP_CPU: PC=0x00000000
Target halted. PRO_CPU: PC=0x5000004B (active)    APP_CPU: PC=0x00000000
Info : esp32: Core 0 was reset (pwrstat=0x1F, after clear 0x0F).
Info : esp32: Debug controller 1 was reset (pwrstat=0x5F, after clear 0x0F).
Info : esp32: Core 1 was reset (pwrstat=0x5F, after clear 0x0F).
esp32: Core 0 was reset (pwrstat=0x1F, after clear 0x0F).
esp32: Debug controller 1 was reset (pwrstat=0x5F, after clear 0x0F).
esp32: Core 1 was reset (pwrstat=0x5F, after clear 0x0F).
Info : Target halted. PRO_CPU: PC=0x40000400 (active)    APP_CPU: PC=0x40000400
Target halted. PRO_CPU: PC=0x40000400 (active)    APP_CPU: PC=0x40000400
** Programming Started **
** Programming Started **
auto erase enabled
auto erase enabled
Info : Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
Info : Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
wrote 4096 bytes from file /Users/marcelhunfeld/Documents/Projekte/temp/Test/.pio/build/esp32dev/partitions.bin in 0.514045s (7.781 KiB/s)
wrote 4096 bytes from file /Users/marcelhunfeld/Documents/Projekte/temp/Test/.pio/build/esp32dev/partitions.bin in 0.514045s (7.781 KiB/s)
** Programming Finished **
** Programming Finished **
** Verify Started **
** Verify Started **
Info : Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
read 3072 bytes from file /Users/marcelhunfeld/Documents/Projekte/temp/Test/.pio/build/esp32dev/partitions.bin and flash bank 0 at offset 0x00008000 in 0.247685s (12.112 KiB/s)
contents match
read 3072 bytes from file /Users/marcelhunfeld/Documents/Projekte/temp/Test/.pio/build/esp32dev/partitions.bin and flash bank 0 at offset 0x00008000 in 0.247685s (12.112 KiB/s)
contents match
** Verified OK **
** Verified OK **
Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : esp32: Debug controller 0 was reset (pwrstat=0x5F, after clear 0x0F).
Info : esp32: Core 0 was reset (pwrstat=0x5F, after clear 0x0F).
esp32: Debug controller 0 was reset (pwrstat=0x5F, after clear 0x0F).
esp32: Core 0 was reset (pwrstat=0x5F, after clear 0x0F).
Info : Target halted. PRO_CPU: PC=0x5000004B (active)    APP_CPU: PC=0x00000000
Target halted. PRO_CPU: PC=0x5000004B (active)    APP_CPU: PC=0x00000000
Info : esp32: Core 0 was reset (pwrstat=0x1F, after clear 0x0F).
Info : esp32: Debug controller 1 was reset (pwrstat=0x5F, after clear 0x0F).
Info : esp32: Core 1 was reset (pwrstat=0x5F, after clear 0x0F).
esp32: Core 0 was reset (pwrstat=0x1F, after clear 0x0F).
esp32: Debug controller 1 was reset (pwrstat=0x5F, after clear 0x0F).
esp32: Core 1 was reset (pwrstat=0x5F, after clear 0x0F).
Info : Target halted. PRO_CPU: PC=0x40000400 (active)    APP_CPU: PC=0x40000400
Target halted. PRO_CPU: PC=0x40000400 (active)    APP_CPU: PC=0x40000400
** Programming Started **
** Programming Started **
auto erase enabled
auto erase enabled
Info : Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
Info : Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
wrote 8192 bytes from file /Users/marcelhunfeld/.platformio/packages/framework-arduinoespressif32@2.10002.190628/tools/partitions/boot_app0.bin in 0.520635s (15.366 KiB/s)
wrote 8192 bytes from file /Users/marcelhunfeld/.platformio/packages/framework-arduinoespressif32@2.10002.190628/tools/partitions/boot_app0.bin in 0.520635s (15.366 KiB/s)
** Programming Finished **
** Programming Finished **
** Verify Started **
** Verify Started **
Info : Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
read 8192 bytes from file /Users/marcelhunfeld/.platformio/packages/framework-arduinoespressif32@2.10002.190628/tools/partitions/boot_app0.bin and flash bank 0 at offset 0x0000e000 in 0.260637s (30.694 KiB/s)
contents match
read 8192 bytes from file /Users/marcelhunfeld/.platformio/packages/framework-arduinoespressif32@2.10002.190628/tools/partitions/boot_app0.bin and flash bank 0 at offset 0x0000e000 in 0.260637s (30.694 KiB/s)
contents match
** Verified OK **
** Verified OK **
Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : esp32: Debug controller 0 was reset (pwrstat=0x5F, after clear 0x0F).
Info : esp32: Core 0 was reset (pwrstat=0x5F, after clear 0x0F).
esp32: Debug controller 0 was reset (pwrstat=0x5F, after clear 0x0F).
esp32: Core 0 was reset (pwrstat=0x5F, after clear 0x0F).
Info : Target halted. PRO_CPU: PC=0x5000004B (active)    APP_CPU: PC=0x00000000
Target halted. PRO_CPU: PC=0x5000004B (active)    APP_CPU: PC=0x00000000
Info : esp32: Core 0 was reset (pwrstat=0x1F, after clear 0x0F).
Info : esp32: Debug controller 1 was reset (pwrstat=0x5F, after clear 0x0F).
Info : esp32: Core 1 was reset (pwrstat=0x5F, after clear 0x0F).
esp32: Core 0 was reset (pwrstat=0x1F, after clear 0x0F).
esp32: Debug controller 1 was reset (pwrstat=0x5F, after clear 0x0F).
esp32: Core 1 was reset (pwrstat=0x5F, after clear 0x0F).
Info : Target halted. PRO_CPU: PC=0x40000400 (active)    APP_CPU: PC=0x40000400
Target halted. PRO_CPU: PC=0x40000400 (active)    APP_CPU: PC=0x40000400
** Programming Started **
** Programming Started **
auto erase enabled
auto erase enabled
Info : Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
Info : Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
wrote 1085440 bytes from file /Users/marcelhunfeld/Documents/Projekte/temp/Test/.pio/build/esp32dev/firmware.bin in 3.577347s (296.309 KiB/s)
wrote 1085440 bytes from file /Users/marcelhunfeld/Documents/Projekte/temp/Test/.pio/build/esp32dev/firmware.bin in 3.577347s (296.309 KiB/s)
** Programming Finished **
** Programming Finished **
** Verify Started **
** Verify Started **
Info : Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
read 1082880 bytes from file /Users/marcelhunfeld/Documents/Projekte/temp/Test/.pio/build/esp32dev/firmware.bin and flash bank 0 at offset 0x00010000 in 3.806639s (277.804 KiB/s)
contents differ
diff 0 address 0x0001001c. Was 0x30 instead of 0xac...
diff 122 address 0x0001013c. Was 0x82 instead of 0x9e
diff 123 address 0x0001013d. Was 0x87 instead of 0xcd
diff 124 address 0x00010140. Was 0x87 instead of 0xa3
diff 125 address 0x00010141. Was 0x87 instead of 0xcd
diff 126 address 0x00010144. Was 0x96 instead of 0xb2
diff 127 address 0x00010145. Was 0x87 instead of 0xcd
More than 128 errors, the rest are not printed.
embedded:startup.tcl:480: Error: ** Verify Failed **
in procedure 'program_esp32'
in procedure 'program_error' called at file "/Users/marcelhunfeld/.platformio/packages/tool-openocd-esp32/share/openocd/scripts/target/esp32.cfg", line 138
at file "embedded:startup.tcl", line 480
read 1082880 bytes from file /Users/marcelhunfeld/Documents/Projekte/temp/Test/.pio/build/esp32dev/firmware.bin and flash bank 0 at offset 0x00010000 in 3.806639s (277.804 KiB/s)
contents differ
diff 0 address 0x0001001c. Was 0x30 instead of 0xac
diff 1 address 0x0001001d. Was 0x10 instead of 0x1c
Info : dropped 'gdb' connection
Warn : Flash driver of esp32.flash does not support free_driver_priv()
diff 2 address 0x00010020. Was 0x62 instead of 0x7e
diff 3 address 0x00010021. Was 0xc5 instead of 0x0b
diff 71 address 0x0001007c. Was 0xe5 instead of 0x01
diff 72 address 0x0001007d. Was 0xcd instead of 0x14
diff 73 address 0x0001007e. Was 0x0d instead of 0x0e
.pioinit:20: Error in sourced command file:
Remote connection closed
sabled
Info : ftdi: if you experience problems at higher adapter clocks, try the command "ftdi_tdo_sample_edge falling"
Info : clock speed 20000 kHz
Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : esp32: Debug controller 0 was reset (pwrstat=0x5F, after clear 0x0F).
Info : esp32: Core 0 was reset (pwrstat=0x5F, after clear 0x0F).
Info : accepting 'gdb' connection from pipe
Error: No symbols for FreeRTOS
Info : Target halted. PRO_CPU: PC=0x40007BA1 (active)    APP_CPU: PC=0x00000000
Info : Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x00000000
Info : Flash mapping 0: 0x10020 -> 0x3f400020, 260 KB
Info : Flash mapping 1: 0x60018 -> 0x400d0018, 685 KB
Info : Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x00000000
Info : Auto-detected flash size 4194303 KB
Info : Using flash size 4194303 KB
Info : Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x00000000
Info : Flash mapping 0: 0x10020 -> 0x3f400020, 260 KB
Info : Flash mapping 1: 0x60018 -> 0x400d0018, 685 KB
Info : Using flash size 688 KB
Info : Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x00000000
Info : Flash mapping 0: 0x10020 -> 0x3f400020, 260 KB
Info : Flash mapping 1: 0x60018 -> 0x400d0018, 685 KB
Info : Using flash size 264 KB
warning: Overlapping regions in memory map: ignoring
0x40007ba1 in ?? ()
Error: Too large number of threads 4046854476!
Temporary breakpoint 1 at 0x400d7bb0: file src/main.cpp, line 362.
Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : esp32: Debug controller 0 was reset (pwrstat=0x5F, after clear 0x0F).
Info : esp32: Core 0 was reset (pwrstat=0x5F, after clear 0x0F).
esp32: Debug controller 0 was reset (pwrstat=0x5F, after clear 0x0F).
esp32: Core 0 was reset (pwrstat=0x5F, after clear 0x0F).
Info : Target halted. PRO_CPU: PC=0x5000004B (active)    APP_CPU: PC=0x00000000
Target halted. PRO_CPU: PC=0x5000004B (active)    APP_CPU: PC=0x00000000
Info : esp32: Core 0 was reset (pwrstat=0x1F, after clear 0x0F).
Info : esp32: Debug controller 1 was reset (pwrstat=0x5F, after clear 0x0F).
Info : esp32: Core 1 was reset (pwrstat=0x5F, after clear 0x0F).
esp32: Core 0 was reset (pwrstat=0x1F, after clear 0x0F).
esp32: Debug controller 1 was reset (pwrstat=0x5F, after clear 0x0F).
esp32: Core 1 was reset (pwrstat=0x5F, after clear 0x0F).
Info : Target halted. PRO_CPU: PC=0x40000400 (active)    APP_CPU: PC=0x40000400
Target halted. PRO_CPU: PC=0x40000400 (active)    APP_CPU: PC=0x40000400
** Programming Started **
** Programming Started **
auto erase enabled
auto erase enabled
Info : Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
Info : Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
wrote 20480 bytes from file /Users/marcelhunfeld/.platformio/packages/framework-arduinoespressif32@2.10002.190628/tools/sdk/bin/bootloader_dio_40m.bin in 0.570365s (35.065 KiB/s)
wrote 20480 bytes from file /Users/marcelhunfeld/.platformio/packages/framework-arduinoespressif32@2.10002.190628/tools/sdk/bin/bootloader_dio_40m.bin in 0.570365s (35.065 KiB/s)
** Programming Finished **
** Programming Finished **
** Verify Started **
** Verify Started **
Info : Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
read 16848 bytes from file /Users/marcelhunfeld/.platformio/packages/framework-arduinoespressif32@2.10002.190628/tools/sdk/bin/bootloader_dio_40m.bin and flash bank 0 at offset 0x00001000 in 0.287078s (57.312 KiB/s)
contents match
read 16848 bytes from file /Users/marcelhunfeld/.platformio/packages/framework-arduinoespressif32@2.10002.190628/tools/sdk/bin/bootloader_dio_40m.bin and flash bank 0 at offset 0x00001000 in 0.287078s (57.312 KiB/s)
contents match
** Verified OK **
** Verified OK **
Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : esp32: Debug controller 0 was reset (pwrstat=0x5F, after clear 0x0F).
Info : esp32: Core 0 was reset (pwrstat=0x5F, after clear 0x0F).
esp32: Debug controller 0 was reset (pwrstat=0x5F, after clear 0x0F).
esp32: Core 0 was reset (pwrstat=0x5F, after clear 0x0F).
Info : Target halted. PRO_CPU: PC=0x5000004B (active)    APP_CPU: PC=0x00000000
Target halted. PRO_CPU: PC=0x5000004B (active)    APP_CPU: PC=0x00000000
Info : esp32: Core 0 was reset (pwrstat=0x1F, after clear 0x0F).
Info : esp32: Debug controller 1 was reset (pwrstat=0x5F, after clear 0x0F).
Info : esp32: Core 1 was reset (pwrstat=0x5F, after clear 0x0F).
esp32: Core 0 was reset (pwrstat=0x1F, after clear 0x0F).
esp32: Debug controller 1 was reset (pwrstat=0x5F, after clear 0x0F).
esp32: Core 1 was reset (pwrstat=0x5F, after clear 0x0F).
Info : Target halted. PRO_CPU: PC=0x40000400 (active)    APP_CPU: PC=0x40000400
Target halted. PRO_CPU: PC=0x40000400 (active)    APP_CPU: PC=0x40000400
** Programming Started **
** Programming Started **
auto erase enabled
auto erase enabled
Info : Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
Info : Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
wrote 4096 bytes from file /Users/marcelhunfeld/Documents/Projekte/temp/Test/.pio/build/esp32dev/partitions.bin in 0.514045s (7.781 KiB/s)
wrote 4096 bytes from file /Users/marcelhunfeld/Documents/Projekte/temp/Test/.pio/build/esp32dev/partitions.bin in 0.514045s (7.781 KiB/s)
** Programming Finished **
** Programming Finished **
** Verify Started **
** Verify Started **
Info : Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
read 3072 bytes from file /Users/marcelhunfeld/Documents/Projekte/temp/Test/.pio/build/esp32dev/partitions.bin and flash bank 0 at offset 0x00008000 in 0.247685s (12.112 KiB/s)
contents match
read 3072 bytes from file /Users/marcelhunfeld/Documents/Projekte/temp/Test/.pio/build/esp32dev/partitions.bin and flash bank 0 at offset 0x00008000 in 0.247685s (12.112 KiB/s)
contents match
** Verified OK **
** Verified OK **
Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : esp32: Debug controller 0 was reset (pwrstat=0x5F, after clear 0x0F).
Info : esp32: Core 0 was reset (pwrstat=0x5F, after clear 0x0F).
esp32: Debug controller 0 was reset (pwrstat=0x5F, after clear 0x0F).
esp32: Core 0 was reset (pwrstat=0x5F, after clear 0x0F).
Info : Target halted. PRO_CPU: PC=0x5000004B (active)    APP_CPU: PC=0x00000000
Target halted. PRO_CPU: PC=0x5000004B (active)    APP_CPU: PC=0x00000000
Info : esp32: Core 0 was reset (pwrstat=0x1F, after clear 0x0F).
Info : esp32: Debug controller 1 was reset (pwrstat=0x5F, after clear 0x0F).
Info : esp32: Core 1 was reset (pwrstat=0x5F, after clear 0x0F).
esp32: Core 0 was reset (pwrstat=0x1F, after clear 0x0F).
esp32: Debug controller 1 was reset (pwrstat=0x5F, after clear 0x0F).
esp32: Core 1 was reset (pwrstat=0x5F, after clear 0x0F).
Info : Target halted. PRO_CPU: PC=0x40000400 (active)    APP_CPU: PC=0x40000400
Target halted. PRO_CPU: PC=0x40000400 (active)    APP_CPU: PC=0x40000400
** Programming Started **
** Programming Started **
auto erase enabled
auto erase enabled
Info : Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
Info : Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
wrote 8192 bytes from file /Users/marcelhunfeld/.platformio/packages/framework-arduinoespressif32@2.10002.190628/tools/partitions/boot_app0.bin in 0.520635s (15.366 KiB/s)
wrote 8192 bytes from file /Users/marcelhunfeld/.platformio/packages/framework-arduinoespressif32@2.10002.190628/tools/partitions/boot_app0.bin in 0.520635s (15.366 KiB/s)
** Programming Finished **
** Programming Finished **
** Verify Started **
** Verify Started **
Info : Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
read 8192 bytes from file /Users/marcelhunfeld/.platformio/packages/framework-arduinoespressif32@2.10002.190628/tools/partitions/boot_app0.bin and flash bank 0 at offset 0x0000e000 in 0.260637s (30.694 KiB/s)
contents match
read 8192 bytes from file /Users/marcelhunfeld/.platformio/packages/framework-arduinoespressif32@2.10002.190628/tools/partitions/boot_app0.bin and flash bank 0 at offset 0x0000e000 in 0.260637s (30.694 KiB/s)
contents match
** Verified OK **
** Verified OK **
Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : esp32: Debug controller 0 was reset (pwrstat=0x5F, after clear 0x0F).
Info : esp32: Core 0 was reset (pwrstat=0x5F, after clear 0x0F).
esp32: Debug controller 0 was reset (pwrstat=0x5F, after clear 0x0F).
esp32: Core 0 was reset (pwrstat=0x5F, after clear 0x0F).
Info : Target halted. PRO_CPU: PC=0x5000004B (active)    APP_CPU: PC=0x00000000
Target halted. PRO_CPU: PC=0x5000004B (active)    APP_CPU: PC=0x00000000
Info : esp32: Core 0 was reset (pwrstat=0x1F, after clear 0x0F).
Info : esp32: Debug controller 1 was reset (pwrstat=0x5F, after clear 0x0F).
Info : esp32: Core 1 was reset (pwrstat=0x5F, after clear 0x0F).
esp32: Core 0 was reset (pwrstat=0x1F, after clear 0x0F).
esp32: Debug controller 1 was reset (pwrstat=0x5F, after clear 0x0F).
esp32: Core 1 was reset (pwrstat=0x5F, after clear 0x0F).
Info : Target halted. PRO_CPU: PC=0x40000400 (active)    APP_CPU: PC=0x40000400
Target halted. PRO_CPU: PC=0x40000400 (active)    APP_CPU: PC=0x40000400
** Programming Started **
** Programming Started **
auto erase enabled
auto erase enabled
Info : Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
Info : Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
wrote 1085440 bytes from file /Users/marcelhunfeld/Documents/Projekte/temp/Test/.pio/build/esp32dev/firmware.bin in 3.577347s (296.309 KiB/s)
wrote 1085440 bytes from file /Users/marcelhunfeld/Documents/Projekte/temp/Test/.pio/build/esp32dev/firmware.bin in 3.577347s (296.309 KiB/s)
** Programming Finished **
** Programming Finished **
** Verify Started **
** Verify Started **
Info : Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
Target halted. PRO_CPU: PC=0x400916EE (active)    APP_CPU: PC=0x40000400
read 1082880 bytes from file /Users/marcelhunfeld/Documents/Projekte/temp/Test/.pio/build/esp32dev/firmware.bin and flash bank 0 at offset 0x00010000 in 3.806639s (277.804 KiB/s)
contents differ
diff 0 address 0x0001001c. Was 0x30 instead of 0xac
diff 1 address 0x0001001d. Was 0x10 instead of 0x1
diff 127 address 0x00010145. Was 0x87 instead of 0xcd
More than 128 errors, the rest are not printed.
embedded:startup.tcl:480: Error: ** Verify Failed **
in procedure 'program_esp32'
in procedure 'program_error' called at file "/Users/marcelhunfeld/.platformio/packages/tool-openocd-esp32/share/openocd/scripts/target/esp32.cfg", line 138
at file "embedded:startup.tcl", line 480
read 1082880 bytes from file /Users/marcelhunfeld/Documents/Projekte/temp/Test/.pio/build/esp32dev/firmware.bin and flash bank 0 at offset 0x00010000 in 3.806639s (277.804 KiB/s)
contents differ
diff 0 address 0x0001001c. Was 0x30 instead of 0xac
diff 1 address 0x0001001d. Was 0x10 instead of 0x1c
Info : dropped 'gdb' connection
Warn : Flash driver of esp32.flash does not support free_driver_priv()

.pioinit:20: Error in sourced command file:
Remote connection closed
1 Like