Skip to content

Commit

Permalink
OpenOCD: Update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
kolipakakondal committed Aug 19, 2020
1 parent 4c26c84 commit f8d039a
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,12 @@ CMake editor preferences can be controlled using `Eclipse > Preferences > CMakeE

<a name="debugging"></a>
# Debugging the Project
Please refer to <a href ="https://docs.espressif.com/projects/esp-idf/en/latest/api-guides/jtag-debugging/index.html" > JTAG Debugging guide</a>
## GDB Hardware Debugging
Please refer to <a href ="https://docs.espressif.com/projects/esp-idf/en/latest/api-guides/jtag-debugging/index.html" > GDB Hardware Debugging guide</a>

Predefined debug launch configuration files can be found <a href ="https://github.com/espressif/idf-eclipse-plugin/tree/master/resources/Debugging%20Launch%20Configurations" > here</a>. These can be used for reference.
## GDB OpenOCD Debugging
Please refer to this <a href="https://github.com/espressif/idf-eclipse-plugin/tree/master/docs/OpenOCD%20Debugging.md">GDB OpenOCD Debugging</a>

Please refer to [Importing Debug Launch Configuration](#customizeLaunchConfig) section for importing the existing configuration files into Eclipse. Make sure to modify the debug launch configuraton project specific settings after importing.

<a name="sizeanalysiseditor"></a>
# ESP-IDF Application Size Analysis
Expand Down
32 changes: 32 additions & 0 deletions docs/OpenOCD Debugging.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
## ESP-IDF GDB OpenOCD Debugging
In ESP-IDF GDB OpenOCD Debugging, both GDB server and GDB client both will be initiated by Eclipse, so no need to run anything from the command line.

Before you get started, please make sure you've already installed `Embedded C/C++ OpenOCD Debugging` plugin while updating the IDF Eclipse Plugin.

![](images/OpenOCDDebug_1.png)

# Create a new debug configuration
Please follow the below steps to create a new debug configuration.
* Right-click on the project
* `Debug As > Debug Configurations...` This will launch a debug configuration window
* On the left Panel, choose `ESP-IDF GDB OpenOCD Debugging`
* Right Click and create `New Configuration` This will create a new debug configuration for your project

Please navigate through each tab and configure project specific settings.
> **NOTE:** Most of the settings are auto-configured by the plugin.
![](images/OpenOCDDebug_4.png)

![](images/OpenOCDDebug_5.png)

![](images/OpenOCDDebug_6.png)

> **NOTE:** Update the OpenOCD Config options based on the esp board you've choosen. Please check this here https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/jtag-debugging/tips-and-quirks.html#id1
![](images/OpenOCDDebug_7.png)


# Preferences for OpenOCD Configuration
OpenOCD path is auto-configured based on the `OPENOCD_SCRIPTS` path defined in the CDT Build environment variables.

![](images/OpenOCDDebug_2.png)
Binary file added docs/images/OpenOCDDebug_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/OpenOCDDebug_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/OpenOCDDebug_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/OpenOCDDebug_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/OpenOCDDebug_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/OpenOCDDebug_6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/OpenOCDDebug_7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/OpenOCDDebug_8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f8d039a

Please sign in to comment.