LOGBOOK

HELP

Quiz Entry - updated: 2026.11.10

What do these lines in OpenOCD's log tell you about the ESP32 it is connected to?

JTAG tap: esp32.tap0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
JTAG tap: esp32.tap1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
[esp32.cpu0] Target halted, PC=0x400D4474, debug_reason=00000001
Detected FreeRTOS version: (10.5.1)
accepting 'gdb' connection on tcp/3333

The JTAG chain works and holds two Tensilica TAPs, one per ESP32 core. CPU 0 is halted at a known address because of a breakpoint. OpenOCD has recognised FreeRTOS in the firmware, and GDB has connected on port 3333.

Line by line:

  1. The two JTAG tap lines are the IDCODE scan from the start of every session. OpenOCD read the ID register of every TAP (test access port) in the chain and found two, both with manufacturer code 0x272, which belongs to Tensilica, the designer of the ESP32's Xtensa cores. Each core has its own TAP, so on JTAG a dual-core ESP32 looks like a chain of two devices. If this line shows all zeros or all ones instead, a wire is loose or swapped.
  2. Target halted, PC=…, debug_reason=… reports that a core stopped and why. The program counter (PC) is the address of the next instruction. A debug_reason of 1 means a breakpoint, while 0 is a halt on request, such as after reset halt.
  3. Detected FreeRTOS version shows that OpenOCD's RTOS awareness found FreeRTOS's data structures in the firmware. It reads the task lists from the chip's memory and reports each FreeRTOS task to GDB as a thread. That is why GDB prints Thread 3 "main" hit Breakpoint …: main is the FreeRTOS task that calls app_main. info threads lists every task, and thread <n> switches to one to see its stack.
  4. accepting 'gdb' connection on tcp/3333 is the client connecting. Nothing is debugged until this appears.

The monitor terminal can also contain a warning such as Detected size(4096k) larger than the size in the binary image header(2048k). It means the project was built for 2 MB of flash while the module has 4 MB; the image still runs, and idf.py menuconfig sets the real size.

Go deeper:

From Quiz: SIOT / JTAG Debugging with OpenOCD and GDB | Updated: Nov 10, 2026