Browse Source
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 <appana.durga.kedareswara.rao@amd.com>pull/80293/head
3 changed files with 31 additions and 0 deletions
@ -1,3 +1,4 @@
@@ -1,3 +1,4 @@
|
||||
# Copyright (c) 2022 Linaro. |
||||
# |
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
include(${ZEPHYR_BASE}/boards/common/xsdb.board.cmake) |
||||
|
@ -0,0 +1,24 @@
@@ -0,0 +1,24 @@
|
||||
# Copyright (c) 2024 Advanced Micro Devices, Inc. |
||||
# |
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
|
||||
proc load_image args { |
||||
set elf_file [lindex $args 0] |
||||
set fsblelf_file [lindex $args 1] |
||||
connect -url 127.0.0.1:3121 |
||||
after 2000 |
||||
targets -set -nocase -filter {name =~ "*R5*#0"} |
||||
rst -proc |
||||
dow $fsblelf_file |
||||
after 1000 |
||||
con |
||||
after 1000 |
||||
stop |
||||
targets -set -nocase -filter {name =~ "*R5*#0"} |
||||
after 2000 |
||||
dow $elf_file |
||||
con |
||||
exit |
||||
} |
||||
|
||||
load_image {*}$argv |
Loading…
Reference in new issue