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
474a8f7
ci(stm32cube): ignore .git/
fpistm Jun 12, 2025
2e96541
ci(stm32cube): option to use local core repo
fpistm Jun 11, 2025
6135e51
ci: support series with only one x
fpistm Jun 13, 2025
dc770e5
ci(stm32cube): create a dedicated branch
fpistm Jun 13, 2025
dab1bed
ci(stm32variant): update ADC signal match
fpistm Jun 17, 2025
740dfb9
ci(stm32variant): syswkup update
fpistm Jun 13, 2025
2f04114
fix(wb0): add HAL and CMSIS patches
fpistm Jun 18, 2025
37bb464
system(wb0) add STM32WB0x HAL Drivers to v1.2.0
fpistm Jun 18, 2025
b0cc1bf
system(wb0): add STM32WB0x CMSIS Drivers to v1.2.0
fpistm Jun 18, 2025
93bf32a
system(wb0): add STM32WB0x system source files
fpistm Jun 18, 2025
98f5851
system(wb0): update STM32WB0x hal default config
fpistm Jun 18, 2025
9793253
core(wb0): add top HAL include
fpistm Jun 18, 2025
c27c12c
core(wb0): add wrapped files
fpistm Jun 18, 2025
a0fe1b3
fix(wb0): HAL and LL warnings
fpistm Jun 14, 2025
535adc5
fix(wb0): HAL radio module guards
fpistm Jun 14, 2025
b30e510
feat(wb0): add __libc_init_array call to startup
fpistm Jun 16, 2025
b1a7ffd
system(wb0): update STM32WB0x hal default config
fpistm Jun 13, 2025
455d6c6
system(wb0): update STM32WB0x system
fpistm Jun 13, 2025
8cfd4b0
variants(wb0): add all generated STM32WB0x generic variant files
fpistm Jun 18, 2025
dc9119f
chore: add HAL_RADIO*_MODULE_ENABLED
fpistm Jun 14, 2025
828a53a
chore(wb0): backup register support
fpistm Jun 14, 2025
c47c0fa
chore(wb0): manage HSI
fpistm Jun 14, 2025
a4b96f3
chore(wb0x): (lp)u(s)art support
fpistm Jun 17, 2025
ad6d2c3
chore(wb0): ADC support
fpistm Jun 17, 2025
32c5e3d
chore(wb0): timer support
fpistm Jun 20, 2025
9955c07
chore(exti): use ll to get pull config
fpistm Jun 20, 2025
caed0f0
chore(wb0): exti support
fpistm Jun 20, 2025
674ab8e
chore(wb0): add I2C support
fpistm Jun 23, 2025
aa941e9
chore(wb0): add SPI support
fpistm Jun 24, 2025
ca14b91
chore(wb0): add EEPROM support
fpistm Jun 25, 2025
57680ca
chore(wb0): add IWDG support
fpistm Jun 25, 2025
7f3d31b
variant(wb0): add WB05KZV, WB05TZF, WB09KEV and WB09TEF generic support
fpistm Jun 13, 2025
678eb91
variant(wb0): add Nucleo-WB09KE support
fpistm Jun 19, 2025
c4eaf59
feat(wb0): add new STM32CubeProgrammer options
fpistm Jun 14, 2025
2be2456
feat(wb0): add __libc_init_array support
fpistm Jun 18, 2025
eb3335d
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 <[email protected]>
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 <[email protected]>
---
.../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
Loading