build/openocd: Disable polling after init

OpenOCD's event polling mechanism may interfere with
jtagstream, as we don't expect any command sent by
openocd itself.

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
This commit is contained in:
Jiaxun Yang 2024-03-05 21:34:56 +00:00
parent 044760e06c
commit 35dd87499c
1 changed files with 1 additions and 0 deletions

View File

@ -185,6 +185,7 @@ proc jtagstream_serve {tap port} {
write_to_file("stream.cfg", cfg) write_to_file("stream.cfg", cfg)
script = "; ".join([ script = "; ".join([
"init", "init",
"poll off",
"irscan $_CHIPNAME.tap {:d}".format(ir), "irscan $_CHIPNAME.tap {:d}".format(ir),
"jtagstream_serve $_CHIPNAME.tap {:d}".format(port), "jtagstream_serve $_CHIPNAME.tap {:d}".format(port),
"exit", "exit",