Skip to content

Commit

Permalink
[util] Fix sonata-openocd-cfg.tcl for use with OpenOCD 0.12.0
Browse files Browse the repository at this point in the history
The set_prefer_sba command has been deprecated, set_mem_access should be
used instead.
  • Loading branch information
GregAC authored and marnovandermaas committed Aug 29, 2024
1 parent e921f3c commit 940a2fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/sonata-openocd-cfg.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ target create $_TARGETNAME riscv -chain-position $_TARGETNAME

adapter speed 10000

riscv set_prefer_sba on
riscv set_mem_access sysbus

This comment has been minimized.

Copy link
@marnovandermaas

marnovandermaas Aug 30, 2024

Contributor

What version of OpenOCD are you using? This doesn't work on version 0.11.0

This comment has been minimized.

Copy link
@nbdd0121

nbdd0121 Aug 30, 2024

Contributor

The commit message says 0.12.0

This comment has been minimized.

Copy link
@GregAC

GregAC Aug 30, 2024

Author Contributor

Yes v0.12.0 which is the version I have installed. I Don't think we specify an OpenOCD version in sonata-system? Doesn't look like we provide install instructions in the doc for example.

We use v0.12.0 in OpenTitan: https://github.com/lowRISC/opentitan/blob/master/third_party/openocd/repos.bzl

reset_config none

init
Expand Down

0 comments on commit 940a2fa

Please sign in to comment.