Skip to content

Commit 4d1b3cb

Browse files
zapb-0borneoa
authored andcommitted
tcl/target: Add support for Nordic nRF54L series
The RISC-V coprocessor is currently not supported. It is attached to the DAP via AP#2 but the AP implementation is unknown. The nRFL54L series uses resistive RAM (RRAM) as non-volatile memory which can be programmed directly. Since it does not fit in the current flash memory infrastructure of OpenOCD there is no NVM support so far. Change-Id: I9934af4fd3bb8b7272954fc4b17638c7dabbbee0 Signed-off-by: Marc Schink <[email protected]> Reviewed-on: https://review.openocd.org/c/openocd/+/8609 Tested-by: jenkins Reviewed-by: Antonio Borneo <[email protected]>
1 parent 1f2db5d commit 4d1b3cb

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

tcl/target/nordic/nrf54l.cfg

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# SPDX-License-Identifier: GPL-2.0-or-later
2+
3+
#
4+
# Nordic nRF54L series
5+
#
6+
# Arm Cortex-M33 processor with RISC-V coprocessor
7+
#
8+
# The device uses resistive RAM (RRAM) as non-volatile memory.
9+
#
10+
11+
if { [info exists CHIPNAME] } {
12+
set _CHIPNAME $CHIPNAME
13+
} else {
14+
set _CHIPNAME nrf54l
15+
}
16+
17+
# Work-area is a space in RAM used for flash programming, by default use 16 KiB.
18+
if { [info exists WORKAREASIZE] } {
19+
set _WORKAREASIZE $WORKAREASIZE
20+
} else {
21+
set _WORKAREASIZE 0x4000
22+
}
23+
24+
if { [info exists CPUTAPID] } {
25+
set _CPUTAPID $CPUTAPID
26+
} else {
27+
set _CPUTAPID 0x6ba02477
28+
}
29+
30+
transport select swd
31+
32+
swd newdap $_CHIPNAME cpu -expected-id $_CPUTAPID
33+
dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu
34+
35+
set _TARGETNAME $_CHIPNAME.cpu
36+
target create $_TARGETNAME cortex_m -dap $_CHIPNAME.dap -ap-num 0
37+
38+
$_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE -work-area-backup 0
39+
40+
# Create target for the control access port (CTRL-AP).
41+
target create $_CHIPNAME.ctrl mem_ap -dap $_CHIPNAME.dap -ap-num 1
42+
43+
adapter speed 1000
44+
45+
# Use main processor as default target.
46+
targets $_TARGETNAME
47+
48+
if {![using_hla]} {
49+
$_TARGETNAME cortex_m reset_config sysresetreq
50+
}

0 commit comments

Comments
 (0)