Skip to content

Commit f087f52

Browse files
Appana Durga Kedareswara raoaescolar
authored andcommitted
boards: amd: kv260_r5: update the board cmake to use xsdb runner
Update the board cmake to use xsdb runner, If users would like to use default xsdb.cfg then need to pass the fsbl.elf binary via --fsbl option when using west flash or twister commands. Usage: 1) west flash --runner xsdb --elf-file kv260_r5/zephyr/zephyr.elf --fsbl <path>/fsbl.elf 2) ./scripts/twister -p kv260_r5 --west-runner xsdb --device-testing --device-serial /dev/ttyUSB0 --west-flash="--fsbl=<path>/fsbl.elf" Signed-off-by: Appana Durga Kedareswara rao <[email protected]>
1 parent 99a998a commit f087f52

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

boards/amd/kv260_r5/board.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# Copyright (c) 2022 Linaro.
22
#
33
# SPDX-License-Identifier: Apache-2.0
4+
include(${ZEPHYR_BASE}/boards/common/xsdb.board.cmake)
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Copyright (c) 2024 Advanced Micro Devices, Inc.
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
proc load_image args {
6+
set elf_file [lindex $args 0]
7+
set fsblelf_file [lindex $args 1]
8+
connect -url 127.0.0.1:3121
9+
after 2000
10+
targets -set -nocase -filter {name =~ "*R5*#0"}
11+
rst -proc
12+
dow $fsblelf_file
13+
after 1000
14+
con
15+
after 1000
16+
stop
17+
targets -set -nocase -filter {name =~ "*R5*#0"}
18+
after 2000
19+
dow $elf_file
20+
con
21+
exit
22+
}
23+
24+
load_image {*}$argv

boards/common/xsdb.board.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Copyright (c) 2024 Advanced Micro Devices, Inc.
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
board_set_debugger_ifnset(xsdb)
5+
board_set_flasher_ifnset(xsdb)
6+
board_finalize_runner_args(xsdb)

0 commit comments

Comments
 (0)