-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Description
Describe the bug
I do have and esp32c3_devkitc, and am trying to debug it.
I am following the instructions in the documentation at[ (https://docs.zephyrproject.org/latest/boards/espressif/esp32c3_devkitc/doc/index.html) to simplify the setup, using the hello_world example.
Basically doing
west build -b samples/hello_world -- -DOPENOCD=<path/to/bin/openocd> -OPENOCD_DEFAULT_PATH=<path/to/openocd/share/openocd/scripts>
west flash
west debug
The only visible output, coming from gdb and not openocd, just timeouts and does not seem to be able to communicate.
It seems to me that west is not using the correct parameters to gdb/openocd to make them cooperate.
Trying out different combinations manually I note that I have to add
-c '$_CHIPNAME configure -rtos Zephyr' -c 'init; reset; init'
to make openocd happy.
Now even after having things communicating, I still do not get anything to work debug wise but that might be me doing something wrong.
I have been digging around for any information about this, but cannot find anything.
Regression
- This is a regression.
Steps to reproduce
To reproduce the problem;
- west build -b samples/hello_world -- -DOPENOCD=<path/to/bin/openocd> -OPENOCD_DEFAULT_PATH=<path/to/openocd/share/openocd/scripts>
- west flash
- west debug
gdb failing
Relevant log output
(.venv) halloumi zephyr [main]$ west debug
-- west debug: rebuilding
ninja: no work to do.
-- west debug: using runner openocd
-- runners.openocd: OpenOCD GDB server running on port 3333; no thread info available
GNU gdb (Zephyr SDK 0.17.2) 12.1
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "--host=x86_64-host_apple-darwin --target=riscv64-zephyr-elf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://github.com/zephyrproject-rtos/sdk-ng/issues>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /Users/gunnar/Applications/zephyrproject/zephyr/build/zephyr/zephyr.elf...
:3333: Operation timed out.
Register cache flushed.
"monitor" command not supported by this target.
No hardware breakpoint support in the target.
(gdb)Impact
Functional Limitation – Some features not working as expected, but system usable.
Environment
MacOS 15.6, Zephyr toolchain, Zephyr 4.2
Additional Context
No response