Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugging ESP32-S3 2nd Core (OCD-908) #317

Closed
ProfFan opened this issue Feb 16, 2024 · 4 comments
Closed

Debugging ESP32-S3 2nd Core (OCD-908) #317

ProfFan opened this issue Feb 16, 2024 · 4 comments

Comments

@ProfFan
Copy link

ProfFan commented Feb 16, 2024

Development Kit

ESP32-S3-MINI

Module or chip used

ESP32-S3-MINI

Debug Adapter

BUILTIN USB

OpenOCD version

v0.12.0-esp32-20230921

Operating System

Linux

Using an IDE ?

VSCode

OpenOCD command line

openocd -c "gdb_port 50000" -c "tcl_port 50001" -c "telnet_port 50002" -s /home/fan/magic-loc-rs -c "set ESP_RTOS none" -c "adapter serial DC:54:75:EF:A2:2C" -f /home/fan/.vscode-server/extensions/marus25.cortex-debug-1.12.1/support/openocd-helpers.tcl -f board/esp32s3-builtin.cfg

JTAG Clock Speed

default

ESP-IDF version

5

Problem Description

How can I attach to core 1 when using GDB?

Debug Logs

No response

Expected behavior

There is no docs at all

Screenshots

No response

@github-actions github-actions bot changed the title Debugging ESP32-S3 2nd Core Debugging ESP32-S3 2nd Core (OCD-908) Feb 16, 2024
@erhankur
Copy link
Collaborator

You can set ESP_RTOS as hwthread. Then when gdb connects, you can execute info threads to see individual cores. And you can switch to the core by thread 1  or thread 2

@ProfFan
Copy link
Author

ProfFan commented Feb 18, 2024

You can set ESP_RTOS as hwthread. Then when gdb connects, you can execute info threads to see individual cores. And you can switch to the core by thread 1  or thread 2

Thank you! Could this be put in the official ReadTheDocs as well?

@erhankur
Copy link
Collaborator

Since this is not a common use case for our users, I am not sure where to put this information.

It is mentioned in the official document, section 20.7. https://openocd.org/doc/html/GDB-and-OpenOCD.html

Thanks for the verification. I am closing this.

@5ami
Copy link

5ami commented Aug 1, 2024

@erhankur erhankur How can we do this via the extension debugging user interface ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants