Code Monkey home page Code Monkey logo

esp-debug-adapter's Introduction

esp_debug_adapter

esp_debug_adapter works as connecting part between IDE and an Debug server. From the IDE side it is needed to follow DAP, from Debug server this adapter is compatible with GDB/MI protocol.

Table of Content:

See also:

Usage

For advanced arguments description follow to specific section: Start Modes and Arguments

Basic description is bellow:

Usage: debug_adapter_main.py [OPTIONS]

Options:
  -a, --app_flash_off INTEGER     Program start address offset
                                  (ESP32_APP_FLASH_OFF)  [default: 65536]
  -b, --board-type TEXT           Type of the board to run tests on (you could
                                  use OOCD_TEST_BOARD envvar by default)
  -d, --debug INTEGER             Debug level (0-4), 5 - for a full OOCD log
                                  [default: 2]
  -dn, --device-name TEXT         The name of used hardware to debug
                                  (currently Esp32 or Esp32_S2). It defines
                                  --toolchain-prefix
  -p, --port INTEGER              Listen on given port for VS Code connections
                                  [default: 43474]
  -pm, --postmortem               Run the adapter without target in 'read-
                                  only' mode
  --developer-mode [none|connection-check|x86-test]
                                  Modes for development purposes  [default:
                                  none]
  -l, --log-file TEXT             Path to log file.
  -lm, --log-mult-files           Log to separated files
  -t, --toolchain-prefix TEXT     (If not set, controlled by --device-name!)
                                  Toolchain prefix. If set, rewrites the value
                                  specified by --device-name.
  -e, --elfpath TEXT              A path to elf files for debugging. You can
                                  use several elf files e.g. `-e file1.elf -e
                                  file2.elf`
  -c, --core-file TEXT            Use a file as a core dump to examine.
  -x, --cmdfile TEXT              Path to a command file containing commands
                                  to automatic execute during a program
                                  startup
  -tsf, --tmo-scale-factor        Scale factor for gdb timeout [default:1]
  -o, --oocd TEXT                 Path to OpenOCD binary file, (used
                                  OPENOCD_BIN envvar or (if not set) 'openocd'
                                  by default)  [default: openocd]
  -oa, --oocd-args TEXT           (If not set, drives by --device-name!)
                                  Specifies custom OpenOCD args. If set,
                                  rewrites the value specified by --device-
                                  name.
  -om, --oocd-mode [run_and_connect|connect_to_instance|without_oocd]
                                  Cooperation with OpenOCD  [default:
                                  connect_to_instance]
  -ip, --oocd-ip TEXT             Ip for remote OpenOCD connection  [default:
                                  localhost]
  -s, --oocd-scripts TEXT         Path to OpenOCD TCL scripts (use
                                  OPENOCD_SCRIPTS envvar by default)
  --help                          Show this message and exit.

References

Credits and licensing

This software is based on a tutorial by Fabio Zadrozny.

All original code in this repository is Copyright 2020 Espressif Systems (Shanghai) Co. Ltd.

The project is released under Eclipse Public License 2.0.

In case an individual source file is also available under a different license, this is indicated in the file itself.

esp-debug-adapter's People

Contributors

an-dr avatar brianignacio5 avatar dobairoland avatar gerekon avatar igrr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

esp-debug-adapter's Issues

Fail to debug in vscode

Development Kit

ESP32C3

Module or chip used

ESP32C3

Debug Adapter

Built-in JTAG

OpenOCD version

v0.11.0-esp32-20211220

Operating System

ubuntu 20.04LTS

Using an IDE ?

Vscode

OpenOCD command line

board/esp32c3-builtin.cfg (vscode default)

JTAG Clock Speed

default

ESP-IDF version

v4.4

Problem Description

Althought following the ESP-IDF programming guide,I successed to debug my device by command line, and I can run the openOCD service in vscode, but when I press the F5, I can not enter that graphical interface.
The reason why I come to you for this question is that I saw you have answered the similar question in https://github.com/espressif/openocd-esp32/issues/236
Looking forward your reply! Big thanks!

Support for ESP32C6

With IDF 5.1 (the first release supporting the ESP32C6) getting beta status, it would be helpful, if esp-debug-adapter could also support the ESP32C6. Right now, it looks like it doesn't find the board configuration for the ESP32C6 and always starts openocd with the ESP32S3 configuration.

Manually starting everything seems a bit tedious.

Example of standalone integration

Hello Peers,

Is there any example out there where i can see this debug adapter working standalone.
I would like to link this debug adapter to other processes.

Thank you :)

Waiting for your answer

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.