-
Notifications
You must be signed in to change notification settings - Fork 337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix esp RISC-V configs #1204
base: riscv
Are you sure you want to change the base?
Fix esp RISC-V configs #1204
Conversation
actually... Maybe this line is to blame:
@en-sc , given that you are the author of this specific code - could you take a look please? |
Fixes tcl configs to enable esp RISC-V boards Signed-off-by: Samuel Obuch <[email protected]>
16f6f1e
to
fb16cb5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checked visually only and looks good. (I don't have the hardware to test it.)
@en-sc, any update on this? Why is the procedure named |
@TommyMurphyTM1234 startup.tcl can be probably discussed separately from this PR (though I didnt observe any issues when I tried removing this procedure), I believe its better in any case to decouple the target type from its name in our configs. The targets were only named "riscv" here to use the riscv target instead of custom per-chip targets (that we have in our repo). |
Hi @MarekVCodasip, if you would like some esp hardware for testing OpenOCD, it probably can be arranged |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sobuch, sorry for taking so long to reply.
IMHO this is a valuable patch regardless of startup.tcl
.
The reason is -- by convention target name includes a dot.
https://openocd.org/doc-release/html/CPU-Configuration.html#Target-Configuration
Moreover, naming the target riscv
results in commands like riscv riscv ...
, which seem strange.
@TommyMurphyTM1234, @aap-sc, as for the issue with startup.tcl
:
proc riscv
was added to support deprecation of RISC-V-specific command in TCL.
Please see https://sourceforge.net/p/openocd/tickets/434/
However, there is an issue with applying this approach to riscv ...
commands: many such commands can be used like <target_name> riscv ...
. This use case is not covered by proc riscv
.
See also #1213 |
Seems to be broken since 6a27d9f, with the following error: