-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
boards: mps3: Add support for corstone300/an552 and corstone310/an555 #79127
Open
wearyzen
wants to merge
2
commits into
zephyrproject-rtos:main
Choose a base branch
from
wearyzen:add_mps3_board_an552_an555
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,362
−246
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# Copyright (c) 2021 Linaro Limited | ||
# Copyright 2024 Arm Limited and/or its affiliates <[email protected]> | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
config BOARD_MPS3 | ||
select QEMU_TARGET | ||
select QEMU_TARGET if BOARD_MPS3_CORSTONE300_AN547 || BOARD_MPS3_CORSTONE300_AN547_NS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
# Copyright (c) 2018-2021 Linaro Limited | ||
# Copyright 2024 Arm Limited and/or its affiliates <[email protected]> | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
if BOARD_MPS3_AN547 | ||
if BOARD_MPS3_CORSTONE300_AN547 || BOARD_MPS3_CORSTONE300_AN552 || BOARD_MPS3_CORSTONE310_AN555 | ||
|
||
# MPU-based null-pointer dereferencing detection cannot | ||
# be applied as the (0x0 - 0x400) is unmapped but QEMU | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
# Copyright (c) 2023 Nordic Semiconductor | ||
# Copyright 2024 Arm Limited and/or its affiliates <[email protected]> | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
config BOARD_MPS3 | ||
select SOC_SERIES_MPS3 | ||
select SOC_MPS3_AN547 | ||
select SOC_MPS3_CORSTONE300 if BOARD_MPS3_CORSTONE300_AN547 || BOARD_MPS3_CORSTONE300_AN547_NS || BOARD_MPS3_CORSTONE300_AN552 || BOARD_MPS3_CORSTONE300_AN552_NS | ||
select SOC_MPS3_CORSTONE310 if BOARD_MPS3_CORSTONE310_AN555 || BOARD_MPS3_CORSTONE310_AN555_NS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,49 @@ | ||
# Copyright (c) 2021 Linaro | ||
# Copyright 2024 Arm Limited and/or its affiliates <[email protected]> | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# The AN547 FVP must be used to enable Ethos-U55 NPU support, but QEMU also | ||
# The AN552/AN547 FVP must be used to enable Ethos-U55 NPU support, but QEMU also | ||
# supports the AN547 without the NPU. | ||
# | ||
# For emulation, QEMU is used by default. To use AN547 FVP as an emulation | ||
# use the 'run_armfvp' target, for example: | ||
# Default emulation: | ||
# QEMU is used by default for AN547 and | ||
# FVP is used by default for AN552. | ||
# | ||
# $ west build -b mps3_an547 samples/hello_world -t run_armfvp | ||
# To explicitly use FVP for emulation: | ||
# AN552 and AN547 can also use FVP as an emulation with | ||
# the 'run_armfvp' target, for example: | ||
# | ||
# $ west build -b mps3//an547 samples/hello_world -t run_armfvp | ||
|
||
|
||
set(SUPPORTED_EMU_PLATFORMS qemu armfvp) | ||
if(CONFIG_BOARD_MPS3_CORSTONE300_AN547 OR CONFIG_BOARD_MPS3_CORSTONE300_AN547_NS) | ||
set(SUPPORTED_EMU_PLATFORMS qemu armfvp) | ||
set(ARMFVP_BIN_NAME FVP_Corstone_SSE-300_Ethos-U55) | ||
|
||
# QEMU settings | ||
set(QEMU_CPU_TYPE_${ARCH} cortex-m55) | ||
set(QEMU_FLAGS_${ARCH} | ||
-cpu ${QEMU_CPU_TYPE_${ARCH}} | ||
-machine mps3-an547 | ||
-nographic | ||
-vga none | ||
# QEMU settings | ||
set(QEMU_CPU_TYPE_${ARCH} cortex-m55) | ||
set(QEMU_FLAGS_${ARCH} | ||
-cpu ${QEMU_CPU_TYPE_${ARCH}} | ||
-machine mps3-an547 | ||
-nographic | ||
-vga none | ||
) | ||
elseif(CONFIG_BOARD_MPS3_CORSTONE300_AN552 OR CONFIG_BOARD_MPS3_CORSTONE300_AN552_NS) | ||
set(SUPPORTED_EMU_PLATFORMS armfvp) | ||
set(ARMFVP_BIN_NAME FVP_Corstone_SSE-300_Ethos-U55) | ||
elseif(CONFIG_BOARD_MPS3_CORSTONE300) | ||
string(REPLACE "mps3/corstone300;" "" board_targets "${board_targets}") | ||
string(REPLACE ";" "\n" board_targets "${board_targets}") | ||
message(FATAL_ERROR "Please use a target from the list below: \n${board_targets}\n") | ||
elseif(CONFIG_BOARD_MPS3_CORSTONE310_AN555 OR CONFIG_BOARD_MPS3_CORSTONE310_AN555_NS) | ||
set(SUPPORTED_EMU_PLATFORMS armfvp) | ||
set(ARMFVP_BIN_NAME FVP_Corstone_SSE-310) | ||
set(ARMFVP_FLAGS | ||
# default is '0x11000000' but should match cpu<i>.INITSVTOR which is 0. | ||
-C mps3_board.sse300.iotss3_systemcontrol.INITSVTOR_RST=0 | ||
) | ||
endif() | ||
|
||
board_set_debugger_ifnset(qemu) | ||
|
||
if (CONFIG_BUILD_WITH_TFM) | ||
|
@@ -28,19 +53,19 @@ if (CONFIG_BUILD_WITH_TFM) | |
set(QEMU_KERNEL_OPTION "-device;loader,file=${CMAKE_BINARY_DIR}/zephyr/tfm_merged.hex") | ||
endif() | ||
|
||
# FVP settings | ||
set(ARMFVP_BIN_NAME FVP_Corstone_SSE-300_Ethos-U55) | ||
|
||
# FVP Parameters | ||
# -C indicate a config option in the form of: | ||
# instance.parameter=value | ||
# Run the FVP with --list-params to list all options | ||
set(ARMFVP_FLAGS | ||
set(ARMFVP_FLAGS ${ARMFVP_FLAGS} | ||
-C mps3_board.uart0.out_file=- | ||
-C mps3_board.uart0.unbuffered_output=1 | ||
-C mps3_board.uart1.out_file=- | ||
-C mps3_board.uart1.unbuffered_output=1 | ||
-C mps3_board.uart2.out_file=- | ||
-C mps3_board.uart2.unbuffered_output=1 | ||
-C mps3_board.visualisation.disable-visualisation=1 | ||
-C mps3_board.telnetterminal0.start_telnet=0 | ||
-C mps3_board.telnetterminal1.start_telnet=0 | ||
-C mps3_board.telnetterminal2.start_telnet=0 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please keep the original index.rst file and rework all the variants into the same document rather than vastly duplicating content in the two new pages you introduced. You can probably use a mix of Sphinx "tabs" for the sections that differ per variant, and simply reword paragraphs to refer to "MPS3" when their content applies to all variants.