openocd/src/jtag
Andreas Fritiofson 17fddb4289 stlink: Use callback to increase frequency of trace data sampling
The ST-LINK/V2 has limited internal buffering, such that trace data
can be missed if the target is generating data at a rate quicker than
the OpenOCD trace sampling. The issue of lost data is compounded since
individual TPIU packets may be split across individual STLINK_TRACE_EP
reads, and misleading results can occur if mid-packet loss occurs.

This patch increases the frequency of checking for pending trace data
with the aim of minimising such losses. Note: With the limited (I/O
and memory) bandwidth of the ST-LINK/V2 there cannot, however, be a
guarantee against trace data loss.

The timer callback is only added when enabling tracing, and is removed
when tracing is disabled.

Change-Id: Ibde9794b77793d3068f88cb5c1a26f9ceadcbd8a
Signed-off-by: James G. Smith <jsmith@ecoscentric.com>
Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Reviewed-on: http://openocd.zylin.com/1661
Tested-by: jenkins
2014-03-07 21:19:12 +00:00
..
aice Conform to C99 integer types format specifiers 2014-01-15 12:40:42 +00:00
drivers stlink: Use callback to increase frequency of trace data sampling 2014-03-07 21:19:12 +00:00
hla Conform to C99 integer types format specifiers 2014-01-15 12:40:42 +00:00
minidriver Retire jtag_add_dr_out 2014-01-20 13:28:26 +00:00
minidummy Retire jtag_add_dr_out 2014-01-20 13:28:26 +00:00
zy1000 Retire jtag_add_dr_out 2014-01-20 13:28:26 +00:00
adapter.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
commands.c jtag: fix support for really long scans 2013-11-06 13:08:38 +00:00
commands.h update files to correct FSF address 2013-06-05 19:52:42 +00:00
core.c cmsis-dap: add initial cmsis-dap support 2014-01-09 15:20:51 +00:00
driver.h update files to correct FSF address 2013-06-05 19:52:42 +00:00
interface.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
interface.h cmsis-dap: add initial cmsis-dap support 2014-01-09 15:20:51 +00:00
interfaces.c jtag/drivers: add USB-Blaster II 2014-01-20 13:28:02 +00:00
interfaces.h update files to correct FSF address 2013-06-05 19:52:42 +00:00
jtag.h Retire jtag_add_dr_out 2014-01-20 13:28:26 +00:00
Makefile.am aice: add Andes AICE support 2013-06-05 19:27:23 +00:00
minidriver.h Retire jtag_add_dr_out 2014-01-20 13:28:26 +00:00
startup.tcl stlink: rename stlink cmd names 2012-12-23 21:45:42 +00:00
swd.h cmsis-dap: add initial cmsis-dap support 2014-01-09 15:20:51 +00:00
tcl.c tcl/drscan: handle invalid syntax with a conditional, not assert 2014-02-24 12:01:52 +00:00
tcl.h update files to correct FSF address 2013-06-05 19:52:42 +00:00