You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Build the hello world sample with west build -b esp32c6_devkitc -- -DOPENOCD=/opt/openocd-esp32/bin/openocd -DOPENOCD_DEFAULT_PATH=/opt/openocd-esp32/share/openocd/scripts
I tried to reproduce the behavior on the command line with the flowing commands:
1. start openocd: `stefan@p14s:~$ /opt/openocd-esp32/bin/openocd -l openocd_log.txt -d3 -f /opt/openocd-esp32/share/openocd/scripts/board/esp32c6-builtin.cfg`
2. start GDB: `/home/stefan/Programs/esp/esp-idf/tools/tools/riscv32-esp-elf-gdb/14.2_20240403/riscv32-esp-elf-gdb/bin/riscv32-esp-elf-gdb -ex "set remotelogfile gdb_log.txt" -x gdbinit build/zephyr/zephyr.elf `
Logs are attached to the section "Problem Description"
Expected behavior
The problem is that openOCD starts normally, the program execution starts as well but it is not stopped at break point at main.
Screenshots
No response
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
Cannot start a GDB session in VS code for Zephyr build
Cannot start a GDB session in VS code for Zephyr build (OCD-1039)
Nov 7, 2024
Development Kit
nanoESP32-C6 v1.0 https://github.com/wuxx/nanoESP32-C6/blob/master/README_en.md
Module or chip used
ESP32-C6-WROOM-1
Debug Adapter
On-board JTAG (no additional addapter)
OpenOCD version
Open On-Chip Debugger v0.12.0-esp32-20241016 (2024-10-16-14:17)
Operating System
Ubuntu 24.10
Using an IDE ?
vs code
OpenOCD command line
/opt/openocd-esp32/bin/openocd -l openocd_log.txt -d3 -f /opt/openocd-esp32/share/openocd/scripts/board/esp32c6-builtin.cfg
JTAG Clock Speed
clock speed 24000 kHz
ESP-IDF version
No ESP-IDF used. Instead Zephyr OS v3.7.0
Problem Description
west build -b esp32c6_devkitc -- -DOPENOCD=/opt/openocd-esp32/bin/openocd -DOPENOCD_DEFAULT_PATH=/opt/openocd-esp32/share/openocd/scripts
and task.json
start the debug session.
Logs:
openocd_log.txt
gdb_log.txt
Debug Logs
Expected behavior
The problem is that openOCD starts normally, the program execution starts as well but it is not stopped at break point at main.
Screenshots
No response
The text was updated successfully, but these errors were encountered: