Skip to content

Commit 02d82ee

Browse files
asm5878erwango
authored andcommitted
lib/stm32: add STM32WBA6 BLE support
Add STM32WBA6 BLE support. Select correct link layer lib according the soc, STM32WBA5 or STM32WBA6. Signed-off-by: Alessandro Manganaro <alessandro.manganaro@st.com>
1 parent 561fca5 commit 02d82ee

File tree

4 files changed

+36
-17
lines changed

4 files changed

+36
-17
lines changed

lib/stm32wba/CMakeLists.txt

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,22 @@ add_dependencies(
5959
set_target_properties(
6060
stm32wba_ble_lib PROPERTIES IMPORTED_LOCATION ${STM32WBA_BLE_LIB_DIR}/stm32wba_ble_stack_llo.a
6161
)
62-
set_target_properties(
63-
stm32wba_ll_lib PROPERTIES IMPORTED_LOCATION ${STM32WBA_BLE_LIB_DIR}/LinkLayer_BLE_Full_lib.a
64-
)
6562

63+
# Selecting the proper version of link layer lib according the soc
64+
# Checking all the soc variants and not simply relying on board name
65+
66+
if(CONFIG_SOC_STM32WBA65XX)
67+
message(STATUS "STM32WBA6 link layer lib selected")
68+
set(LL_LIB "WBA6_LinkLayer_BLE_Full_lib.a")
69+
endif()
70+
71+
if(CONFIG_SOC_STM32WBA55XX OR SOC_STM32WBA52XX)
72+
message(STATUS "STM32WBA5 link layer lib selected")
73+
set(LL_LIB "LinkLayer_BLE_Full_lib.a")
74+
endif()
75+
76+
# Using the selected version of link layer lib
77+
set_target_properties(stm32wba_ll_lib PROPERTIES IMPORTED_LOCATION ${STM32WBA_BLE_LIB_DIR}/${LL_LIB})
6678
set_target_properties(stm32wba_ble_lib PROPERTIES INTERFACE_INCLUDE_DIRECTORIES ${STM32WBA_BLE_LIB_INCLUDE_DIR})
6779
set_target_properties(stm32wba_ll_lib PROPERTIES INTERFACE_INCLUDE_DIRECTORIES ${STM32WBA_LL_LIB_INCLUDE_DIR})
6880

lib/stm32wba/README.rst

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ Description:
4343
Middlewares/ST/STM32_WPAN/link_layer/ll_sys/src/ll_sys_startup.c
4444
Middlewares/ST/STM32_WPAN/link_layer/ll_sys/inc/ll_sys_startup.h
4545
Middlewares/ST/STM32_WPAN/stm32_wpan_common.h
46-
Projects/NUCLEO-WBA55CG/Applications/BLE/BLE_TransparentMode/Core/Inc/app_common.h
47-
Projects/NUCLEO-WBA55CG/Applications/BLE/BLE_TransparentMode/Core/Inc/app_conf.h
48-
Projects/NUCLEO-WBA55CG/Applications/BLE/BLE_TransparentMode/Core/Inc/app_entry.h
49-
Projects/NUCLEO-WBA55CG/Applications/BLE/BLE_TransparentMode/Core/Inc/utilities_conf.h
50-
Projects/NUCLEO-WBA55CG/Applications/BLE/BLE_TransparentMode/Core/Inc/main.h
46+
Projects/NUCLEO-WBA65RI/Applications/BLE/BLE_TransparentMode/Core/Inc/app_common.h
47+
Projects/NUCLEO-WBA65RI/Applications/BLE/BLE_TransparentMode/Core/Inc/app_conf.h
48+
Projects/NUCLEO-WBA65RI/Applications/BLE/BLE_TransparentMode/Core/Inc/app_entry.h
49+
Projects/NUCLEO-WBA65RI/Applications/BLE/BLE_TransparentMode/Core/Inc/utilities_conf.h
50+
Projects/NUCLEO-WBA65RI/Applications/BLE/BLE_TransparentMode/Core/Inc/main.h
5151
Projects/Common/WPAN/Modules/Flash/rf_timing_synchro.c
5252
Projects/Common/WPAN/Modules/Flash/rf_timing_synchro.h
5353
Projects/Common/WPAN/Modules/Flash/flash_driver.c
@@ -70,14 +70,14 @@ Description:
7070
Projects/Common/WPAN/Interfaces/hw_pka_p256.c
7171
Projects/Common/WPAN/Modules/Log/log_module.c
7272
Projects/Common/WPAN/Modules/Log/log_module.h
73-
Projects/NUCLEO-WBA55CG/Applications/BLE/BLE_TransparentMode/System/Config/Debug_GPIO/app_debug.h
74-
Projects/NUCLEO-WBA55CG/Applications/BLE/BLE_TransparentMode/System/Config/Debug_GPIO/debug_config.h
75-
Projects/NUCLEO-WBA55CG/Applications/BLE/BLE_TransparentMode/STM32_WPAN/Target/power_table.c
76-
Projects/NUCLEO-WBA55CG/Applications/BLE/BLE_TransparentMode/STM32_WPAN/Target/bpka.c
77-
Projects/NUCLEO-WBA55CG/Applications/BLE/BLE_TransparentMode/STM32_WPAN/Target/bpka.h
78-
Projects/NUCLEO-WBA55CG/Applications/BLE/BLE_TransparentMode/STM32_WPAN/Target/linklayer_plat.c
79-
Projects/NUCLEO-WBA55CG/Applications/BLE/BLE_TransparentMode/STM32_WPAN/Target/ll_sys_if.c
80-
Projects/NUCLEO-WBA55CG/Applications/BLE/BLE_TransparentMode/STM32_WPAN/Target/ll_sys_if.h
73+
Projects/NUCLEO-WBA65RI/Applications/BLE/BLE_TransparentMode/System/Config/Debug_GPIO/app_debug.h
74+
Projects/NUCLEO-WBA65RI/Applications/BLE/BLE_TransparentMode/System/Config/Debug_GPIO/debug_config.h
75+
Projects/NUCLEO-WBA65RI/Applications/BLE/BLE_TransparentMode/STM32_WPAN/Target/power_table.c
76+
Projects/NUCLEO-WBA65RI/Applications/BLE/BLE_TransparentMode/STM32_WPAN/Target/bpka.c
77+
Projects/NUCLEO-WBA65RI/Applications/BLE/BLE_TransparentMode/STM32_WPAN/Target/bpka.h
78+
Projects/NUCLEO-WBA65RI/Applications/BLE/BLE_TransparentMode/STM32_WPAN/Target/linklayer_plat.c
79+
Projects/NUCLEO-WBA65RI/Applications/BLE/BLE_TransparentMode/STM32_WPAN/Target/ll_sys_if.c
80+
Projects/NUCLEO-WBA65RI/Applications/BLE/BLE_TransparentMode/STM32_WPAN/Target/ll_sys_if.h
8181
Utilities/trace/adv_trace/stm32_adv_trace.h
8282
Utilities/misc/stm32_mem.h
8383
Utilities/tim_serv/stm32_timer.h

scripts/ble_library.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
+ "tl_dbg_conf.h",
4040
]
4141

42-
ble_transparent_mode_app_path = "Projects/NUCLEO-WBA55CG/Applications/BLE/" \
42+
ble_transparent_mode_app_path = "Projects/NUCLEO-WBA65RI/Applications/BLE/" \
4343
+ "BLE_TransparentMode"
4444
file_list_wba = {
4545
"STM32_WPAN": [

zephyr/module.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ build:
44
settings:
55
dts_root: .
66
blobs:
7+
- path: stm32wba/lib/WBA6_LinkLayer_BLE_Full_lib.a
8+
sha256: fda0c5a80d65e859c249f270b297117f8cff1f38c0ee4fbe0ad9d5b3bfc2813e
9+
type: lib
10+
version: '1.6.0'
11+
license-path: zephyr/blobs/stm32wba/lib/license.md
12+
url: https://github.com/STMicroelectronics/STM32CubeWBA/raw/v1.6.0/Middlewares/ST/STM32_WPAN/link_layer/ll_cmd_lib/lib/WBA6_LinkLayer_BLE_Full_lib.a
13+
description: "Binary Link Layer library for the STM32WBA6 Bluetooth subsystem"
714
- path: stm32wba/lib/LinkLayer_BLE_Full_lib.a
815
sha256: c935072ee0d98ddaec3b7f4a1e502ade9768c3fe8056101823a3f19327a1b148
916
type: lib

0 commit comments

Comments
 (0)