Skip to content

ESP32S3 - Error: Unknown param: -alt-work-area-phys, try one of: (OCD-1160) #362

@wailay

Description

@wailay

Development Kit

ESP32-S3-DevKitM-1

Module or chip used

ESP32-S3-MINI-1-U-1N8

Debug Adapter

Builtin JTAG in the dev kit module

OpenOCD version

v0.12.0-esp32-20241016

Operating System

Windows

Using an IDE ?

VSCode

OpenOCD command line

openocd -f board/esp32s3-builtin.cfg

JTAG Clock Speed

default

ESP-IDF version

v5.4.0

Problem Description

Trying to start a debug session with VSCode using the builting JTAG with ESP32 and openocd fails with the following error:

Open On-Chip Debugger v0.12.0-esp32-20241016 (2024-10-16-14:17)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
Info : only one transport option; autoselecting 'jtag'
Info : esp_usb_jtag: VID set to 0x303a and PID to 0x1001
Info : esp_usb_jtag: capabilities descriptor set to 0x2000
Warn : Transport "jtag" was already selected
C:\Espressif\tools\openocd-esp32\v0.11.0-esp32-20221026/openocd-esp32/share/openocd/scripts/target/esp_common.cfg:28: Error: Unknown param: -alt-work-area-phys, try one of: -type, -event, -work-area-virt, -work-area-phys, -work-area-size, -work-area-backup, -endian, -coreid, -chain-position, -dbgbase, -rtos, -defer-examine, -gdb-port, or -gdb-max-connections
in procedure 'script'
at file "embedded:startup.tcl", line 28
at file "C:\Espressif\tools\openocd-esp32\v0.11.0-esp32-20221026/openocd-esp32/share/openocd/scripts/board/esp32s3-builtin.cfg", line 13
in procedure 'configure_esp_workarea' called at file "C:\Espressif\tools\openocd-esp32\v0.11.0-esp32-20221026/openocd-esp32/share/openocd/scripts/target/esp32s3.cfg",
 line 100
at file "C:\Espressif\tools\openocd-esp32\v0.11.0-esp32-20221026/openocd-esp32/share/openocd/scripts/target/esp_common.cfg", line 28

Debug Logs

Expected behavior

For openocd command to start.

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions