-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Add support for Nucleo U5A5ZJ-Q #63144
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
Merged
carlescufi
merged 6 commits into
zephyrproject-rtos:main
from
gautierg-st:add_nucleo_u5a5
Sep 29, 2023
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
94231a7
dts: arm: st: u5: add missing compatibles for stm32u595 and u599
gautierg-st 83c2401
dts: arm: st: u5: add stm32u5a5 dtsi
gautierg-st 0607bdc
soc: arm: st_stm32: stm32u5: add stm32u5a5 soc
gautierg-st 2f7228f
boards: arm: nucleo_u5a5zj_q: add nucleo u5a5zj q board
gautierg-st 0798fc7
tests: drivers: dac: dac_api: add nucleo u5a5zj-q board
gautierg-st 7fe6fea
tests: drivers: adc: adc_api: add nucleo u5a5zj-q board
gautierg-st 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 hidden or 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
if(${ZEPHYR_TOOLCHAIN_VARIANT} STREQUAL "zephyr") | ||
set(COMPILER_FULL_PATH ${ZEPHYR_SDK_INSTALL_DIR}/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc) | ||
elseif(${ZEPHYR_TOOLCHAIN_VARIANT} STREQUAL "gnuarmemb") | ||
set(COMPILER_FULL_PATH ${GNUARMEMB_TOOLCHAIN_PATH}/bin/arm-none-eabi-gcc) | ||
endif() | ||
|
||
if(CONFIG_BUILD_WITH_TFM) | ||
set_property(GLOBAL APPEND PROPERTY extra_post_build_commands | ||
#Execute post build script postbuild.sh | ||
COMMAND $<TARGET_PROPERTY:tfm,TFM_BINARY_DIR>/postbuild.sh ${COMPILER_FULL_PATH} | ||
) | ||
endif() |
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# STM32U5A5ZJ Q Nucleo board configuration | ||
|
||
# Copyright (c) 2023 STMicroelectronics | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
config BOARD_NUCLEO_U5A5ZJ_Q | ||
bool "Nucleo U5A5ZJ Q Development Board" | ||
depends on SOC_STM32U5A5XX |
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# STM32U5A5ZJ Q Nucleo board configuration | ||
|
||
# Copyright (c) 2023 STMicroelectronics | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
if BOARD_NUCLEO_U5A5ZJ_Q | ||
|
||
config BOARD | ||
default "nucleo_u5a5zj_q" | ||
|
||
endif # BOARD_NUCLEO_U5A5ZJ_Q |
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
* Copyright (c) 2023 STMicroelectronics | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/ { | ||
arduino_header: connector { | ||
compatible = "arduino-header-r3"; | ||
#gpio-cells = <2>; | ||
gpio-map-mask = <0xffffffff 0xffffffc0>; | ||
gpio-map-pass-thru = <0 0x3f>; | ||
gpio-map = <0 0 &gpioa 3 0>, /* A0 */ | ||
<1 0 &gpioa 2 0>, /* A1 */ | ||
<2 0 &gpioc 3 0>, /* A2 */ | ||
<3 0 &gpiob 0 0>, /* A3 */ | ||
<4 0 &gpioc 1 0>, /* A4 */ | ||
<5 0 &gpioc 0 0>, /* A5 */ | ||
<6 0 &gpiog 8 0>, /* D0 */ | ||
<7 0 &gpiog 7 0>, /* D1 */ | ||
<8 0 &gpiof 15 0>, /* D2 */ | ||
<9 0 &gpioe 13 0>, /* D3 */ | ||
<10 0 &gpiof 14 0>, /* D4 */ | ||
<11 0 &gpioe 11 0>, /* D5 */ | ||
<12 0 &gpioe 9 0>, /* D6 */ | ||
<13 0 &gpiof 13 0>, /* D7 */ | ||
<14 0 &gpiof 12 0>, /* D8 */ | ||
<15 0 &gpiod 15 0>, /* D9 */ | ||
<16 0 &gpiod 14 0>, /* D10 */ | ||
<17 0 &gpioa 7 0>, /* D11 */ | ||
<18 0 &gpioa 6 0>, /* D12 */ | ||
<19 0 &gpioa 5 0>, /* D13 */ | ||
<20 0 &gpiob 9 0>, /* D14 */ | ||
<21 0 &gpiob 8 0>; /* D15 */ | ||
}; | ||
}; | ||
|
||
arduino_i2c: &i2c1 {}; | ||
arduino_spi: &spi1 {}; | ||
arduino_serial: &lpuart1 {}; |
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw") | ||
|
||
board_runner_args(openocd "--tcl-port=6666") | ||
board_runner_args(openocd --cmd-pre-init "gdb_report_data_abort enable") | ||
board_runner_args(openocd "--no-halt") | ||
|
||
board_runner_args(pyocd "--target=stm32u5a5zjtx") | ||
|
||
board_runner_args(jlink "--device=STM32U5A5ZJ" "--reset-after-load") | ||
|
||
include(${ZEPHYR_BASE}/boards/common/stm32cubeprogrammer.board.cmake) | ||
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake) | ||
include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake) | ||
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake) |
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.
Uh oh!
There was an error while loading. Please reload this page.