Fix split command compatibility in OpenOCD for updated Tcl interpreter behavior #2150
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Error Output
Solution
The behavior of the jimtcl (Tcl interpreter) has changed in the latest OpenOCD.
It is necessary to find an alternative way to use the spilt command.
Test the openocd version from latest to 2022/4/14
Because the openocd.py previous is edited at 0a73800
set rxi [split [drscan $tap {{*}}$txi {endstate}] " "]
set rxi [split [drscan $tap {{*}}$txi {endstate}]]
set rxi [split [drscan $tap {{*}}$txi {endstate}] " "]
set rxi [split [drscan $tap {{*}}$txi {endstate}]]
set rxi [split [drscan $tap {{*}}$txi {endstate}] " "]
set rxi [split [drscan $tap {{*}}$txi {endstate}]]
set rxi [split [drscan $tap {{*}}$txi {endstate}] " "]
set rxi [split [drscan $tap {{*}}$txi {endstate}]]
Mon Sep 16 18:01:17 2024 +0300
set rxi [split [drscan $tap {{*}}$txi {endstate}] " "]
set rxi [split [drscan $tap {{*}}$txi {endstate}]]
Find the openocd commit that changed the jimtcl submodule, the latest one between v0.12.0.
Fri Sep 27 22:40:06 2024 +0200
jimtcl: update to version 0.83
is not supported
set rxi [split [drscan $tap {{*}}$txi {endstate}] " "]
Sat Mar 4 12:08:58 2023 +0100
jimtcl: update to version 0.82
is supported
set rxi [split [drscan $tap {{*}}$txi {endstate}] " "]
Final
Finally, I can follow these steps to create a bridge to SoC