Table of Contents
Why do I not see any threads in OpenOCD?
It seems that you do not resume target after programing, so it is halted after the reset and therefore you do not see any threads (app is not strated yet).
What do I need to know about my OpenOCD adapter?
The vendor ID and product ID of the CMSIS-DAP device. If not specified the driver will attempt to auto detect the CMSIS-DAP device. Currently, up to eight [ vid, pid] pairs may be given, e.g. Specifies the serial of the CMSIS-DAP device to use. If not specified, serial numbers are not considered.
What is the error message in OpenOCD debug?
Error: cpu0: Failed to write breakpoint instruction (-4)! Error: cpu0: Failed to add SW breakpoint! omg, this is so fu*** frustrating! you can’t rely on anything. week after week new bugs, errors, subtle problems. debugging is still unsteady as hell. sometimes breakpoints are not recognized, debugger stops completly, etc etc
What was the OpenOCD debug error for ESP32?
Info : esp32: Core 1 was reset. Info : Target halted. CPU0: PC=0x4018A72E (active) Info : Target halted. CPU1: PC=0x4009571C Info : cpu0: Debug controller 0 was reset. Info : cpu0: Core 0 was reset. Info : esp32: Core 0 was reset. Info : esp32: Debug controller 1 was reset. Info : esp32: Core 1 was reset. Info : Target halted.
What do I need to know about an OpenOCD adapter?
If not specified, the device description is ignored during device selection. Specifies the serial-number of the adapter to use, in case the vendor provides unique IDs and more than one adapter is connected to the host. If not specified, serial numbers are not considered.
How to see the ETB registers in OpenOCD?
You can see the ETB registers using the reg command. This displays, or optionally changes, ETB behavior after the ETM’s configured trigger event fires. It controls how much more trace data is saved after the (single) trace trigger becomes active.
What happens if an option error is used in OpenOCD?
If option error is used, OpenOCD will return a non-zero exit code to the parent process. Like any TCL commands, also shutdown can be redefined, e.g.:
Is there an ETM support in OpenOCD?
ETM support in OpenOCD doesn’t seem to be widely used yet. Issues: ETM support may be buggy, and at least some etm config parameters should be detected by asking the ETM for them.