Skip to content

feat: add STM32WB0x support #2756

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

Draft
wants to merge 36 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
774d431
ci(stm32cube): ignore .git/
fpistm Jun 12, 2025
323d3da
ci(stm32cube): option to use local core repo
fpistm Jun 11, 2025
48f4404
ci: support series with only one x
fpistm Jun 13, 2025
96efad4
ci(stm32cube): create a dedicated branch
fpistm Jun 13, 2025
922ac7f
ci(stm32variant): update ADC signal match
fpistm Jun 17, 2025
912c1f7
ci(stm32variant): syswkup update
fpistm Jun 13, 2025
f690098
fix(wb0): add HAL and CMSIS patches
fpistm Jun 18, 2025
1f77c3b
system(wb0) add STM32WB0x HAL Drivers to v1.2.0
fpistm Jun 18, 2025
a0f9d8b
system(wb0): add STM32WB0x CMSIS Drivers to v1.2.0
fpistm Jun 18, 2025
d71403f
system(wb0): add STM32WB0x system source files
fpistm Jun 18, 2025
8a69a85
system(wb0): update STM32WB0x hal default config
fpistm Jun 18, 2025
1628e00
core(wb0): add top HAL include
fpistm Jun 18, 2025
c77b780
core(wb0): add wrapped files
fpistm Jun 18, 2025
8034dc2
fix(wb0): HAL and LL warnings
fpistm Jun 14, 2025
1dab9aa
fix(wb0): HAL radio module guards
fpistm Jun 14, 2025
238b102
feat(wb0): add __libc_init_array call to startup
fpistm Jun 16, 2025
b9620b4
system(wb0): update STM32WB0x hal default config
fpistm Jun 13, 2025
6b9acff
system(wb0): update STM32WB0x system
fpistm Jun 13, 2025
febe8c0
variants(wb0): add all generated STM32WB0x generic variant files
fpistm Jun 18, 2025
249f42f
chore: add HAL_RADIO*_MODULE_ENABLED
fpistm Jun 14, 2025
9a7ac10
chore(wb0): backup register support
fpistm Jun 14, 2025
2707bd2
chore(wb0): manage HSI
fpistm Jun 14, 2025
bad87d6
chore(wb0x): (lp)u(s)art support
fpistm Jun 17, 2025
acbe123
chore(wb0): ADC support
fpistm Jun 17, 2025
064a14d
chore(wb0): timer support
fpistm Jun 20, 2025
fe1ac99
chore(exti): use ll to get pull config
fpistm Jun 20, 2025
b1a162c
chore(wb0): exti support
fpistm Jun 20, 2025
4633998
chore(wb0): add I2C support
fpistm Jun 23, 2025
3bd827e
chore(wb0): add SPI support
fpistm Jun 24, 2025
1b45ba0
chore(wb0): add EEPROM support
fpistm Jun 25, 2025
d6a7fef
chore(wb0): add IWDG support
fpistm Jun 25, 2025
c4bee09
variant(wb0): add WB05KZV, WB05TZF, WB09KEV and WB09TEF generic support
fpistm Jun 13, 2025
78f02c6
variant(wb0): add Nucleo-WB09KE support
fpistm Jun 19, 2025
aa0f7dd
feat(wb0): add new STM32CubeProgrammer options
fpistm Jun 14, 2025
dbb16c7
feat(wb0): add __libc_init_array support
fpistm Jun 18, 2025
9674f47
chore(cmake): update database with WB0x
fpistm Jun 18, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion CI/update/fqbn.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def main():

for fqbn in fqbn_list:
if args.board and arg_board_pattern.search(fqbn) is None:
continue
continue
print(fqbn)


Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
From 62e01b39b8eb0f6260b55d58e85ed230986bba4e Mon Sep 17 00:00:00 2001
From: Frederic Pillon <frederic.pillon@st.com>
Date: Mon, 16 Jun 2025 14:22:51 +0200
Subject: [PATCH] feat(wb0): add __libc_init_array call to startup

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
---
.../ST/STM32WB0x/Source/Templates/gcc/startup_stm32wb05.s | 2 ++
.../ST/STM32WB0x/Source/Templates/gcc/startup_stm32wb06.s | 2 ++
.../ST/STM32WB0x/Source/Templates/gcc/startup_stm32wb07.s | 2 ++
.../ST/STM32WB0x/Source/Templates/gcc/startup_stm32wb09.s | 2 ++
4 files changed, 8 insertions(+)

diff --git a/system/Drivers/CMSIS/Device/ST/STM32WB0x/Source/Templates/gcc/startup_stm32wb05.s b/system/Drivers/CMSIS/Device/ST/STM32WB0x/Source/Templates/gcc/startup_stm32wb05.s
index a8991a7ea..1aba7b12b 100644
--- a/system/Drivers/CMSIS/Device/ST/STM32WB0x/Source/Templates/gcc/startup_stm32wb05.s
+++ b/system/Drivers/CMSIS/Device/ST/STM32WB0x/Source/Templates/gcc/startup_stm32wb05.s
@@ -107,6 +107,8 @@ LoopFillZeroBlueRam:
cmp r2, r3
bcc FillZerobssram

+/* Call static constructors */
+ bl __libc_init_array
/* Call the application's entry point.*/
bl main

diff --git a/system/Drivers/CMSIS/Device/ST/STM32WB0x/Source/Templates/gcc/startup_stm32wb06.s b/system/Drivers/CMSIS/Device/ST/STM32WB0x/Source/Templates/gcc/startup_stm32wb06.s
index 3e3334fb0..8a345492a 100644
--- a/system/Drivers/CMSIS/Device/ST/STM32WB0x/Source/Templates/gcc/startup_stm32wb06.s
+++ b/system/Drivers/CMSIS/Device/ST/STM32WB0x/Source/Templates/gcc/startup_stm32wb06.s
@@ -107,6 +107,8 @@ LoopFillZeroBlueRam:
cmp r2, r3
bcc FillZerobssram

+/* Call static constructors */
+ bl __libc_init_array
/* Call the application's entry point.*/
bl main

diff --git a/system/Drivers/CMSIS/Device/ST/STM32WB0x/Source/Templates/gcc/startup_stm32wb07.s b/system/Drivers/CMSIS/Device/ST/STM32WB0x/Source/Templates/gcc/startup_stm32wb07.s
index d9baea4b4..36664b5f2 100644
--- a/system/Drivers/CMSIS/Device/ST/STM32WB0x/Source/Templates/gcc/startup_stm32wb07.s
+++ b/system/Drivers/CMSIS/Device/ST/STM32WB0x/Source/Templates/gcc/startup_stm32wb07.s
@@ -107,6 +107,8 @@ LoopFillZeroBlueRam:
cmp r2, r3
bcc FillZerobssram

+/* Call static constructors */
+ bl __libc_init_array
/* Call the application's entry point.*/
bl main

diff --git a/system/Drivers/CMSIS/Device/ST/STM32WB0x/Source/Templates/gcc/startup_stm32wb09.s b/system/Drivers/CMSIS/Device/ST/STM32WB0x/Source/Templates/gcc/startup_stm32wb09.s
index 7c9b47279..2ee46de75 100644
--- a/system/Drivers/CMSIS/Device/ST/STM32WB0x/Source/Templates/gcc/startup_stm32wb09.s
+++ b/system/Drivers/CMSIS/Device/ST/STM32WB0x/Source/Templates/gcc/startup_stm32wb09.s
@@ -107,6 +107,8 @@ LoopFillZeroBlueRam:
cmp r2, r3
bcc FillZerobssram

+/* Call static constructors */
+ bl __libc_init_array
/* Call the application's entry point.*/
bl main

--
2.34.1

Loading