Skip to content

Commit dd4bd3e

Browse files
Appana Durga Kedareswara raomichalsimek
authored andcommitted
boards: amd: mbv32: 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 bitstream via --bitstream option when using west flash or twister commands. Usage: 1) west flash --runner xsdb --elf-file mbv32/zephyr/zephyr.elf --bitstream <path>/system.bit 2) ./scripts/twister -p mbv32 --west-runner xsdb --device-testing --device-serial /dev/ttyUSB0 --west-flash="--bitstream=<path>/system.bit" Signed-off-by: Appana Durga Kedareswara rao <[email protected]> Signed-off-by: Michal Simek <[email protected]> Link: zephyrproject-rtos/zephyr#80379 State: waiting
1 parent 93794b7 commit dd4bd3e

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

boards/amd/mbv32/board.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# SPDX-License-Identifier: Apache-2.0
55
#
66

7+
include(${ZEPHYR_BASE}/boards/common/xsdb.board.cmake)
78
set(SUPPORTED_EMU_PLATFORMS qemu)
89
set(QEMU_ARCH riscv32)
910
set(QEMU_CPU_TYPE_${ARCH} riscv32)

boards/amd/mbv32/support/xsdb.cfg

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Copyright (c) 2024 Advanced Micro Devices, Inc.
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
proc load_image args {
6+
set elffile [lindex $args 0]
7+
set bitfile [lindex $args 1]
8+
connect
9+
after 2000
10+
fpga -f $bitfile -no-revision-check
11+
after 2000
12+
targets -set -nocase -filter {name =~ "*Hart*#0"}
13+
after 2000
14+
rst -proc
15+
dow $elffile
16+
con
17+
exit
18+
}
19+
20+
load_image {*}$argv

0 commit comments

Comments
 (0)