Skip to content

Commit 4afcf34

Browse files
committed
fix(wl3): add HAL and CMSIS patch
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 82d7bb0 commit 4afcf34

File tree

2 files changed

+903
-0
lines changed

2 files changed

+903
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
From d4316ffbdd8fb8eb5863d9198422b832aafd44c6 Mon Sep 17 00:00:00 2001
2+
From: Frederic Pillon <frederic.pillon@st.com>
3+
Date: Tue, 23 Sep 2025 09:50:23 +0200
4+
Subject: [PATCH 1/1] feat(wl3): add __libc_init_array call to startup
5+
6+
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
7+
---
8+
.../ST/STM32WL3x/Source/Templates/gcc/startup_stm32wl3xx.s | 2 ++
9+
1 file changed, 2 insertions(+)
10+
11+
diff --git a/system/Drivers/CMSIS/Device/ST/STM32WL3x/Source/Templates/gcc/startup_stm32wl3xx.s b/system/Drivers/CMSIS/Device/ST/STM32WL3x/Source/Templates/gcc/startup_stm32wl3xx.s
12+
index 68b8c7ab4..28bf2e6da 100644
13+
--- a/system/Drivers/CMSIS/Device/ST/STM32WL3x/Source/Templates/gcc/startup_stm32wl3xx.s
14+
+++ b/system/Drivers/CMSIS/Device/ST/STM32WL3x/Source/Templates/gcc/startup_stm32wl3xx.s
15+
@@ -83,6 +83,8 @@ LoopFillZerobss:
16+
cmp r2, r3
17+
bcc FillZerobss
18+
19+
+/* Call static constructors */
20+
+ bl __libc_init_array
21+
/* Call the application's entry point.*/
22+
bl main
23+
24+
--
25+
2.34.1
26+

0 commit comments

Comments
 (0)