-
Notifications
You must be signed in to change notification settings - Fork 8k
st: wba65: add stm32wba65i_dk1 board, 'ns' variant for dk1 and nucleo boards #95722
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
Open
etienne-lms
wants to merge
10
commits into
zephyrproject-rtos:main
Choose a base branch
from
etienne-lms:wba65i-tfm
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.
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
8202d5f
boards: st: Add stm32wba65i-dk1
etienne-lms e3ac172
modules: trusted-firmware-m: Declare stm32wba65i support
etienne-lms 1205f1d
modules: trusted-firmware-m: Add STM32_FLASH_LAYOUT_BEGIN_OFFSET
etienne-lms a04c05d
soc: st: stm32wba: TF-M does not support BL2 for WBA65x
etienne-lms b83ecce
boards: st: stm32wba65i_dk1: Add 'ns' variant for TF-M support
etienne-lms 4c1e1be
boards: st: nucleo_wba65ri: rename documentation file
etienne-lms 42d5294
boards: st: nucleo_wba65ri: fix special characters in board doc
etienne-lms 5ea55e6
boards: st: nucleo_wba65ri: add low power numbers in board doc
etienne-lms 62e3671
boards: st: nucleo_wba65ri: Add 'ns' variant for TF-M support
etienne-lms 3dc0e5d
samples: boards: st: power_mgmt: wkup_pins: add WBA65 boards
etienne-lms 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 |
---|---|---|
@@ -1,6 +1,29 @@ | ||
# Copyright (c) 2025 STMicroelectronics | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw") | ||
if(CONFIG_BUILD_WITH_TFM) | ||
set(FLASH_BASE_ADDRESS_S 0x0C000000) | ||
|
||
# Flash merged TF-M + Zephyr binary | ||
set_property(TARGET runners_yaml_props_target PROPERTY hex_file tfm_merged.hex) | ||
|
||
if(CONFIG_HAS_FLASH_LOAD_OFFSET) | ||
MATH(EXPR TFM_HEX_BASE_ADDRESS_NS "${FLASH_BASE_ADDRESS_S}+${CONFIG_FLASH_LOAD_OFFSET}") | ||
else() | ||
set(TFM_HEX_BASE_ADDRESS_NS ${TFM_FLASH_BASE_ADDRESS_S}) | ||
endif() | ||
|
||
# System entry point is TF-M vector, located 1kByte after tfm_fmw_partition in DTS | ||
dt_nodelabel(tfm_partition_path NODELABEL slot0_secure_partition REQUIRED) | ||
dt_reg_addr(tfm_partition_offset PATH ${tfm_partition_path} REQUIRED) | ||
math(EXPR tfm_fwm_boot_address "${tfm_partition_offset}+${FLASH_BASE_ADDRESS_S}+0x400") | ||
|
||
board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw" | ||
"--erase" "--start-address=${tfm_fwm_boot_address}" | ||
) | ||
else() | ||
board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw") | ||
endif() | ||
|
||
include(${ZEPHYR_BASE}/boards/common/stm32cubeprogrammer.board.cmake) | ||
include(${ZEPHYR_BASE}/boards/common/openocd-stm32.board.cmake) |
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 |
---|---|---|
|
@@ -4,3 +4,5 @@ board: | |
vendor: st | ||
socs: | ||
- name: stm32wba65xx | ||
variants: | ||
- name: ns |
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
53 changes: 53 additions & 0 deletions
53
boards/st/nucleo_wba65ri/nucleo_wba65ri_stm32wba65xx_ns.dts
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,53 @@ | ||
/* | ||
* Copyright (c) 2025 STMicroelectronics | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/dts-v1/; | ||
#include "nucleo_wba65ri.dts" | ||
|
||
/ { | ||
chosen { | ||
zephyr,code-partition = &slot0_ns_partition; | ||
}; | ||
|
||
/* SRAM1 (node label sram0) last 64kByte are owned by TF-M */ | ||
memory@20000000 { | ||
reg = <0x20000000 DT_SIZE_K(448 - 64)>; | ||
}; | ||
|
||
/* SRAM2 (node label sram1) is owned by TF-M */ | ||
/delete-node/ memory@20070000; | ||
}; | ||
|
||
|
||
&flash0 { | ||
/delete-node/ partitions; | ||
|
||
partitions { | ||
compatible = "fixed-partitions"; | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
|
||
boot_partition: partition@0 { | ||
label = "bootstage"; | ||
reg = <0 DT_SIZE_K(48)>; | ||
}; | ||
|
||
slot0_secure_partition: partition@c000 { | ||
label = "image-secure"; | ||
reg = <0xc000 DT_SIZE_K(256)>; | ||
}; | ||
|
||
slot0_ns_partition: partition@4c000 { | ||
label = "image-non-secure"; | ||
reg = <0x4c000 DT_SIZE_K(512)>; | ||
}; | ||
|
||
storage_partition: partition@cc000 { | ||
label = "storage"; | ||
reg = <0xcc000 (DT_SIZE_M(2) - DT_SIZE_K(48 + 256 + 512))>; | ||
}; | ||
}; | ||
}; |
10 changes: 10 additions & 0 deletions
10
boards/st/nucleo_wba65ri/nucleo_wba65ri_stm32wba65xx_ns.yaml
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,10 @@ | ||
identifier: nucleo_wba65ri/stm32wba65xx/ns | ||
name: ST Nucleo WBA65RI with TF-M and non-secure firmware | ||
type: mcu | ||
arch: arm | ||
toolchain: | ||
- zephyr | ||
- gnuarmemb | ||
ram: 384 | ||
flash: 512 | ||
vendor: st |
28 changes: 28 additions & 0 deletions
28
boards/st/nucleo_wba65ri/nucleo_wba65ri_stm32wba65xx_ns_defconfig
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,28 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# Copyright (c) 2025 STMicroelectronics | ||
|
||
# Enable UART driver | ||
CONFIG_SERIAL=y | ||
|
||
# Enable GPIO | ||
CONFIG_GPIO=y | ||
|
||
# Console | ||
CONFIG_CONSOLE=y | ||
CONFIG_UART_CONSOLE=y | ||
|
||
# Enable MPU | ||
CONFIG_ARM_MPU=y | ||
|
||
# Enable HW stack protection | ||
CONFIG_HW_STACK_PROTECTION=y | ||
|
||
# Enable the internal SMPS regulator | ||
CONFIG_POWER_SUPPLY_DIRECT_SMPS=y | ||
|
||
# Header offset since TF-M has no BL2 hence Zephyr is not signed | ||
CONFIG_ROM_START_OFFSET=0x400 | ||
|
||
# Enable TZ non-secure configuration | ||
CONFIG_TRUSTED_EXECUTION_NONSECURE=y | ||
CONFIG_RUNTIME_NMI=y |
mathieuchopstm marked this conversation as resolved.
Show resolved
Hide resolved
|
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,13 @@ | ||
# STM32WBA65I Discovery kit board configuration | ||
|
||
# Copyright (c) 2025 STMicroelectronics | ||
|
||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
if BOARD_STM32WBA65I_DK1 | ||
|
||
config SPI_STM32_INTERRUPT | ||
default y | ||
depends on SPI | ||
|
||
endif # BOARD_STM32WBA65I_DK1 |
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,5 @@ | ||
# Copyright (c) 2025 STMicroelectronics | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
config BOARD_STM32WBA65I_DK1 | ||
select SOC_STM32WBA65XX |
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,41 @@ | ||
/* | ||
* Copyright (c) 2025 STMicroelectronics | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#include <zephyr/dt-bindings/gpio/arduino-header-r3.h> | ||
|
||
/ { | ||
arduino_header: connector { | ||
compatible = "arduino-header-r3"; | ||
#gpio-cells = <2>; | ||
gpio-map-mask = <0xffffffff 0xffffffc0>; | ||
gpio-map-pass-thru = <0 0x3f>; | ||
gpio-map = <ARDUINO_HEADER_R3_A0 0 &gpioa 4 0>, | ||
<ARDUINO_HEADER_R3_A1 0 &gpioa 6 0>, | ||
etienne-lms marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<ARDUINO_HEADER_R3_A2 0 &gpioa 2 0>, | ||
<ARDUINO_HEADER_R3_A3 0 &gpioa 1 0>, | ||
<ARDUINO_HEADER_R3_A4 0 &gpioa 5 0>, | ||
<ARDUINO_HEADER_R3_A5 0 &gpioa 0 0>, | ||
<ARDUINO_HEADER_R3_D0 0 &gpioa 11 0>, | ||
<ARDUINO_HEADER_R3_D1 0 &gpioa 12 0>, | ||
<ARDUINO_HEADER_R3_D2 0 &gpioe 0 0>, | ||
<ARDUINO_HEADER_R3_D3 0 &gpiob 13 0>, | ||
<ARDUINO_HEADER_R3_D4 0 &gpioa 3 0>, | ||
<ARDUINO_HEADER_R3_D5 0 &gpiob 14 0>, | ||
<ARDUINO_HEADER_R3_D6 0 &gpiob 0 0>, | ||
<ARDUINO_HEADER_R3_D7 0 &gpiod 14 0>, | ||
<ARDUINO_HEADER_R3_D8 0 &gpioa 10 0>, | ||
<ARDUINO_HEADER_R3_D9 0 &gpiob 11 0>, | ||
<ARDUINO_HEADER_R3_D10 0 &gpiob 9 0>, | ||
<ARDUINO_HEADER_R3_D11 0 &gpioc 3 0>, | ||
<ARDUINO_HEADER_R3_D12 0 &gpioa 9 0>, | ||
<ARDUINO_HEADER_R3_D13 0 &gpiob 10 0>, | ||
<ARDUINO_HEADER_R3_D14 0 &gpiob 1 0>, | ||
<ARDUINO_HEADER_R3_D15 0 &gpiob 2 0>; | ||
}; | ||
}; | ||
|
||
arduino_i2c: &i2c1 {}; | ||
arduino_spi: &spi1 {}; |
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.
Uh oh!
There was an error while loading. Please reload this page.