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:
- The two
JTAG taplines 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 code0x272, 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. Target halted, PC=…, debug_reason=…reports that a core stopped and why. The program counter (PC) is the address of the next instruction. Adebug_reasonof 1 means a breakpoint, while 0 is a halt on request, such as afterreset halt.Detected FreeRTOS versionshows 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 printsThread 3 "main" hit Breakpoint …:mainis the FreeRTOS task that callsapp_main.info threadslists every task, andthread <n>switches to one to see its stack.accepting 'gdb' connection on tcp/3333is 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:
OpenOCD — GDB and OpenOCD — includes RTOS support, which turns FreeRTOS tasks into GDB threads.
OpenOCD — Server Configuration — the default GDB, telnet and Tcl ports.