Skip to content

Commit 573e29e

Browse files
committed
boards: Run the combined an547 hex in qemu
Zephyr will try to run the `zephyr.elf` file by default. This is problematic for any `..._ns` target, as they all need to boot through [mcuboot and] TF-M. They simply hardfault without the rest of their system image. This corrects the `west build -t run ...` for the `mps3_an547_ns` board, as it now has special treatment. Signed-off-by: Jimmy Brisson <[email protected]>
1 parent c00c901 commit 573e29e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

boards/arm/mps3_an547/board.cmake

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ set(QEMU_FLAGS_${ARCH}
2121
)
2222
board_set_debugger_ifnset(qemu)
2323

24+
if (CONFIG_BUILD_WITH_TFM)
25+
# Override the binary used by qemu, to use the combined
26+
# TF-M (Secure) & Zephyr (Non Secure) image (when running
27+
# in-tree tests).
28+
set(QEMU_KERNEL_OPTION "-device;loader,file=${CMAKE_BINARY_DIR}/tfm_merged.hex")
29+
endif()
30+
2431
# FVP settings
2532
set(ARMFVP_BIN_NAME FVP_Corstone_SSE-300_Ethos-U55)
2633

0 commit comments

Comments
 (0)