If you have any 'target' (a CPU to be debugged) in your config file, then 
OpenOCD will run continuously polling on the target to check if it has hit a 
breakpoint.
This polling can happen anytime, also within a sequence:
irscan ...
drscan ...
with the result that the IR is modified under the hood.
To prevent it, use the sequence
poll off
irscan ...
drscan ...
poll on



---

** [tickets:#395] segfault: jtag drscan <tapname> 32 1**

**Status:** new
**Milestone:** 0.11.0
**Created:** Fri Apr 28, 2023 09:07 PM UTC by fenugrec
**Last Updated:** Tue May 02, 2023 01:46 PM UTC
**Owner:** nobody


On latest master (91bd43134)  :

~~~
>  jtag drscan auto0.tap 32 1
Connection closed by foreign host.
*******
openocd: src/jtag/drivers/driver.c:166: interface_jtag_add_dr_scan: Assertion 
`field == out_fields + scan->num_fields' failed.
Aborted (core dumped)
~~~


---

Sent from sourceforge.net because openocd-devel@lists.sourceforge.net is 
subscribed to https://sourceforge.net/p/openocd/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/openocd/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.


Reply via email to