-
Notifications
You must be signed in to change notification settings - Fork 147
Description
Development Kit
ESP32-C3-DevKitM-1 v1.6
Module or chip used
ESP32-C3
Debug Adapter
Built in
OpenOCD version
v0.11.0-esp32-20221026
Operating System
Windows 10
Using an IDE ?
no
OpenOCD command line
openocd -f board/esp32c3-builtin.cfg
JTAG Clock Speed
40000
ESP-IDF version
v4.4.3
Problem Description
- build and flash project. (works)
- start openocd with: "openocd -f board/esp32c3-builtin.cfg" in a esp-idf console
- start riscv gdb with: "riscv32-esp-elf-gdb.exe .\build\blink.elf " or any other project
- connect with gdb with openocd with: "target extended-remote localhost:3333"
- set a breakpoint at app_main with: "break app_main"
- reset program with: "monitor reset halt"
- continue with: "c"
When I follow these steps I get the following output to the console:
PS D:\Projects\esp32blink> C:\Users\jan.wendler.espressif\tools\openocd-esp32\v0.11.0-esp32-20221026\openocd-esp32\bin\openocd.exe -f board/esp32c3-builtin.cfg
Open On-Chip Debugger v0.11.0-esp32-20221026 (2022-10-26-14:48)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
Info : esp_usb_jtag: VID set to 0x303a and PID to 0x1001
Info : esp_usb_jtag: capabilities descriptor set to 0x2000
Warn : Transport "jtag" was already selected
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : esp_usb_jtag: serial (60:55:F9:C1:0C:90)
Info : esp_usb_jtag: Device found. Base speed 40000KHz, div range 1 to 255
Info : clock speed 40000 kHz
Info : JTAG tap: esp32c3.cpu tap/device found: 0x00005c25 (mfg: 0x612 (Espressif Systems), part: 0x0005, ver: 0x0)
Info : datacount=2 progbufsize=16
Info : Examined RISC-V core; found 1 harts
Info : hart 0: XLEN=32, misa=0x40101104
Info : starting gdb server for esp32c3 on 3333
Info : Listening on port 3333 for gdb connections
Info : accepting 'gdb' connection on tcp/3333
Warn : No symbols for FreeRTOS!
Info : [esp32c3] Found 8 triggers
Info : Flash mapping 0: 0x10020 -> 0x3c030020, 25 KB
Info : Auto-detected flash bank 'esp32c3.flash' size 4096 KB
Info : Using flash bank 'esp32c3.flash' size 4096 KB
Info : Flash mapping 0: 0x10020 -> 0x3c030020, 25 KB
Info : Using flash bank 'esp32c3.irom' size 0 KB
Info : Flash mapping 0: 0x10020 -> 0x3c030020, 25 KB
Info : Using flash bank 'esp32c3.drom' size 28 KB
Warn : negative reply, retrying
Error: FreeRTOS: uxTopUsedPriority is not defined, consult the OpenOCD manual for a work-around!
Error: FreeRTOS: uxTopUsedPriority is not defined, consult the OpenOCD manual for a work-around!
Info : Hart 0 unexpectedly reset!
Info : Reset cause (3) - (Software core reset)
Info : Hart 0 unexpectedly reset!
Info : Reset cause (3) - (Software core reset)
Info : Hart 0 unexpectedly reset!
Info : Reset cause (3) - (Software core reset)
Info : Hart 0 unexpectedly reset!
Info : Reset cause (3) - (Software core reset)
Info : Hart 0 unexpectedly reset!
No matter how deep I place the breakpoint, it is never reached because something is causing a reset.
I tested this with my personal project and the standard blinky project with the same result. Both programs work fine when flashed.
I also tried to debug my code in CLion, using openocd, with the same result.
Debug Logs
The debug log is to long. I will provide it separately.
Expected behavior
I expect to reach a breakpoint set somewhere in the program.
Screenshots
No response