aboutsummaryrefslogtreecommitdiff
path: root/tcl
diff options
context:
space:
mode:
authorTomas Vanek <vanekt@fbl.cz>2024-01-21 16:01:00 +0100
committerAntonio Borneo <borneo.antonio@gmail.com>2024-03-09 11:00:50 +0000
commit19ef6634f021f545c2154cdd6d011608f1249308 (patch)
treef9da862a7b43f5e1b0ede3c683b321b4b8d3c3e2 /tcl
parent1354ff7adfeff5d0c1024c2f2e9a9cd714a753d8 (diff)
downloadriscv-openocd-19ef6634f021f545c2154cdd6d011608f1249308.zip
riscv-openocd-19ef6634f021f545c2154cdd6d011608f1249308.tar.gz
riscv-openocd-19ef6634f021f545c2154cdd6d011608f1249308.tar.bz2
target/nrf51: use PAN #16 workaround in reset-init only
After 'reset run' or 'reset halt' the loaded application is expected to manipulate RAMON register to workaround the known silicon errata. Moreover, writing to RAMON register from 'reset-end' event after 'reset run' may collide with application intentions. Use the workaround in 'reset-init' event only to ensure correct function of target algorithms. Change-Id: I7d2d92e6805a05a83676edb46b3163ef39b9a7e4 Signed-off-by: Tomas Vanek <vanekt@fbl.cz> Reviewed-on: https://review.openocd.org/c/openocd/+/8104 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'tcl')
-rw-r--r--tcl/target/nrf51.cfg2
1 files changed, 1 insertions, 1 deletions
diff --git a/tcl/target/nrf51.cfg b/tcl/target/nrf51.cfg
index 53ac306..3781ecc 100644
--- a/tcl/target/nrf51.cfg
+++ b/tcl/target/nrf51.cfg
@@ -58,4 +58,4 @@ proc enable_all_ram {} {
# resetting we enable all banks via the RAMON register
mww 0x40000524 0xF
}
-$_TARGETNAME configure -event reset-end { enable_all_ram }
+$_TARGETNAME configure -event reset-init { enable_all_ram }