Skip to content

Commit 7a5da61

Browse files
committed
STM32Cube_FW_WB_V1.4.0 - STM32WB50xx part
1 parent c39a13d commit 7a5da61

File tree

7 files changed

+1450
-0
lines changed

7 files changed

+1450
-0
lines changed
Lines changed: 285 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,285 @@
1+
;******************************************************************************
2+
;* File Name : startup_stm32wb50xx_cm4.s
3+
;* Author : MCD Application Team
4+
;* Description : STM32WB50xx devices vector table for MDK-ARM toolchain.
5+
;* This module performs:
6+
;* - Set the initial SP
7+
;* - Set the initial PC == Reset_Handler
8+
;* - Set the vector table entries with the exceptions ISR address
9+
;* - Branches to __main in the C library (which eventually
10+
;* calls main()).
11+
;* After Reset the CortexM4 processor is in Thread mode,
12+
;* priority is Privileged, and the Stack is set to Main.
13+
;* <<< Use Configuration Wizard in Context Menu >>>
14+
;******************************************************************************
15+
;* @attention
16+
;*
17+
;* Copyright (c) 2019 STMicroelectronics. All rights reserved.
18+
;*
19+
;* This software component is licensed by ST under BSD 3-Clause license,
20+
;* the "License"; You may not use this file except in compliance with the
21+
;* License. You may obtain a copy of the License at:
22+
;* opensource.org/licenses/BSD-3-Clause
23+
;*
24+
;******************************************************************************
25+
26+
PRESERVE8
27+
THUMB
28+
29+
30+
; Vector Table Mapped to Address 0 at Reset
31+
AREA RESET, DATA, READONLY
32+
EXPORT __Vectors
33+
EXPORT __Vectors_End
34+
EXPORT __Vectors_Size
35+
36+
IMPORT |Image$$ARM_LIB_STACK$$ZI$$Limit|
37+
__Vectors DCD |Image$$ARM_LIB_STACK$$ZI$$Limit| ; Top of Stack
38+
DCD Reset_Handler ; Reset Handler
39+
DCD NMI_Handler ; NMI Handler
40+
DCD HardFault_Handler ; Hard Fault Handler
41+
DCD MemManage_Handler ; MPU Fault Handler
42+
DCD BusFault_Handler ; Bus Fault Handler
43+
DCD UsageFault_Handler ; Usage Fault Handler
44+
DCD 0 ; Reserved
45+
DCD 0 ; Reserved
46+
DCD 0 ; Reserved
47+
DCD 0 ; Reserved
48+
DCD SVC_Handler ; SVCall Handler
49+
DCD DebugMon_Handler ; Debug Monitor Handler
50+
DCD 0 ; Reserved
51+
DCD PendSV_Handler ; PendSV Handler
52+
DCD SysTick_Handler ; SysTick Handler
53+
54+
; External Interrupts
55+
DCD WWDG_IRQHandler ; Window WatchDog
56+
DCD PVD_PVM_IRQHandler ; PVD and PVM detector
57+
DCD TAMP_STAMP_LSECSS_IRQHandler ; RTC Tamper and TimeStamp Interrupts and LSECSS Interrupts
58+
DCD RTC_WKUP_IRQHandler ; RTC Wakeup Interrupt
59+
DCD FLASH_IRQHandler ; FLASH global Interrupt
60+
DCD RCC_IRQHandler ; RCC Interrupt
61+
DCD EXTI0_IRQHandler ; EXTI Line 0 Interrupt
62+
DCD EXTI1_IRQHandler ; EXTI Line 1 Interrupt
63+
DCD EXTI2_IRQHandler ; EXTI Line 2 Interrupt
64+
DCD EXTI3_IRQHandler ; EXTI Line 3 Interrup
65+
DCD EXTI4_IRQHandler ; EXTI Line 4 Interrupt
66+
DCD DMA1_Channel1_IRQHandler ; DMA1 Channel 1 Interrupt
67+
DCD DMA1_Channel2_IRQHandler ; DMA1 Channel 2 Interrupt
68+
DCD DMA1_Channel3_IRQHandler ; DMA1 Channel 3 Interrupt
69+
DCD DMA1_Channel4_IRQHandler ; DMA1 Channel 4 Interrupt
70+
DCD DMA1_Channel5_IRQHandler ; DMA1 Channel 5 Interrupt
71+
DCD DMA1_Channel6_IRQHandler ; DMA1 Channel 6 Interrupt
72+
DCD DMA1_Channel7_IRQHandler ; DMA1 Channel 7 Interrupt
73+
DCD ADC1_IRQHandler ; ADC1 Interrupt
74+
DCD 0 ; Reserved
75+
DCD 0 ; Reserved
76+
DCD C2SEV_PWR_C2H_IRQHandler ; CPU M0+ SEV Interrupt
77+
DCD 0 ; Reserved
78+
DCD EXTI9_5_IRQHandler ; EXTI Lines [9:5] Interrupt
79+
DCD TIM1_BRK_IRQHandler ; TIM1 Break Interrupt
80+
DCD TIM1_UP_TIM16_IRQHandler ; TIM1 Update and TIM16 global Interrupts
81+
DCD TIM1_TRG_COM_TIM17_IRQHandler ; TIM1 Trigger and Communication and TIM17 global Interrupts
82+
DCD TIM1_CC_IRQHandler ; TIM1 Capture Compare Interrupt
83+
DCD TIM2_IRQHandler ; TIM2 Global Interrupt
84+
DCD PKA_IRQHandler ; PKA Interrupt
85+
DCD I2C1_EV_IRQHandler ; I2C1 Event Interrupt
86+
DCD I2C1_ER_IRQHandler ; I2C1 Error Interrupt
87+
DCD 0 ; Reserved
88+
DCD 0 ; Reserved
89+
DCD SPI1_IRQHandler ; SPI1 Interrupt
90+
DCD 0 ; Reserved
91+
DCD USART1_IRQHandler ; USART1 Interrupt
92+
DCD 0 ; Reserved
93+
DCD 0 ; Reserved
94+
DCD TSC_IRQHandler ; TSC Interrupt
95+
DCD EXTI15_10_IRQHandler ; EXTI Lines1[15:10 ]Interrupts
96+
DCD RTC_Alarm_IRQHandler ; RTC Alarms (A and B) Interrupt
97+
DCD 0 ; Reserved
98+
DCD PWR_SOTF_BLEACT_802ACT_RFPHASE_IRQHandler ; WKUP Interrupt from PWR
99+
DCD IPCC_C1_RX_IRQHandler ; IPCC CPU1 RX occupied interrupt
100+
DCD IPCC_C1_TX_IRQHandler ; IPCC CPU1 RX free interrupt
101+
DCD HSEM_IRQHandler ; HSEM0 Interrupt
102+
DCD LPTIM1_IRQHandler ; LPTIM1 Interrupt
103+
DCD LPTIM2_IRQHandler ; LPTIM2 Interrupt
104+
DCD 0 ; Reserved
105+
DCD 0 ; Reserved
106+
DCD 0 ; Reserved
107+
DCD AES2_IRQHandler ; AES2 Interrupt
108+
DCD RNG_IRQHandler ; RNG1 Interrupt
109+
DCD FPU_IRQHandler ; FPU Interrupt
110+
DCD 0 ; Reserved
111+
DCD 0 ; Reserved
112+
DCD 0 ; Reserved
113+
DCD 0 ; Reserved
114+
DCD 0 ; Reserved
115+
DCD 0 ; Reserved
116+
DCD 0 ; Reserved
117+
DCD DMAMUX1_OVR_IRQHandler ; DMAMUX overrun Interrupt
118+
119+
__Vectors_End
120+
121+
__Vectors_Size EQU __Vectors_End - __Vectors
122+
123+
AREA |.text|, CODE, READONLY
124+
125+
; Reset handler
126+
Reset_Handler PROC
127+
EXPORT Reset_Handler [WEAK]
128+
IMPORT SystemInit
129+
IMPORT __main
130+
131+
LDR R0, =SystemInit
132+
BLX R0
133+
LDR R0, =__main
134+
BX R0
135+
ENDP
136+
137+
; Dummy Exception Handlers (infinite loops which can be modified)
138+
139+
NMI_Handler PROC
140+
EXPORT NMI_Handler [WEAK]
141+
B .
142+
ENDP
143+
HardFault_Handler\
144+
PROC
145+
EXPORT HardFault_Handler [WEAK]
146+
B .
147+
ENDP
148+
MemManage_Handler\
149+
PROC
150+
EXPORT MemManage_Handler [WEAK]
151+
B .
152+
ENDP
153+
BusFault_Handler\
154+
PROC
155+
EXPORT BusFault_Handler [WEAK]
156+
B .
157+
ENDP
158+
UsageFault_Handler\
159+
PROC
160+
EXPORT UsageFault_Handler [WEAK]
161+
B .
162+
ENDP
163+
SVC_Handler PROC
164+
EXPORT SVC_Handler [WEAK]
165+
B .
166+
ENDP
167+
DebugMon_Handler\
168+
PROC
169+
EXPORT DebugMon_Handler [WEAK]
170+
B .
171+
ENDP
172+
PendSV_Handler PROC
173+
EXPORT PendSV_Handler [WEAK]
174+
B .
175+
ENDP
176+
SysTick_Handler PROC
177+
EXPORT SysTick_Handler [WEAK]
178+
B .
179+
ENDP
180+
181+
Default_Handler PROC
182+
183+
EXPORT WWDG_IRQHandler [WEAK]
184+
EXPORT PVD_PVM_IRQHandler [WEAK]
185+
EXPORT TAMP_STAMP_LSECSS_IRQHandler [WEAK]
186+
EXPORT RTC_WKUP_IRQHandler [WEAK]
187+
EXPORT FLASH_IRQHandler [WEAK]
188+
EXPORT RCC_IRQHandler [WEAK]
189+
EXPORT EXTI0_IRQHandler [WEAK]
190+
EXPORT EXTI1_IRQHandler [WEAK]
191+
EXPORT EXTI2_IRQHandler [WEAK]
192+
EXPORT EXTI3_IRQHandler [WEAK]
193+
EXPORT EXTI4_IRQHandler [WEAK]
194+
EXPORT DMA1_Channel1_IRQHandler [WEAK]
195+
EXPORT DMA1_Channel2_IRQHandler [WEAK]
196+
EXPORT DMA1_Channel3_IRQHandler [WEAK]
197+
EXPORT DMA1_Channel4_IRQHandler [WEAK]
198+
EXPORT DMA1_Channel5_IRQHandler [WEAK]
199+
EXPORT DMA1_Channel6_IRQHandler [WEAK]
200+
EXPORT DMA1_Channel7_IRQHandler [WEAK]
201+
EXPORT ADC1_IRQHandler [WEAK]
202+
EXPORT C2SEV_PWR_C2H_IRQHandler [WEAK]
203+
EXPORT EXTI9_5_IRQHandler [WEAK]
204+
EXPORT TIM1_BRK_IRQHandler [WEAK]
205+
EXPORT TIM1_UP_TIM16_IRQHandler [WEAK]
206+
EXPORT TIM1_TRG_COM_TIM17_IRQHandler [WEAK]
207+
EXPORT TIM1_CC_IRQHandler [WEAK]
208+
EXPORT TIM2_IRQHandler [WEAK]
209+
EXPORT PKA_IRQHandler [WEAK]
210+
EXPORT I2C1_EV_IRQHandler [WEAK]
211+
EXPORT I2C1_ER_IRQHandler [WEAK]
212+
EXPORT SPI1_IRQHandler [WEAK]
213+
EXPORT USART1_IRQHandler [WEAK]
214+
EXPORT TSC_IRQHandler [WEAK]
215+
EXPORT EXTI15_10_IRQHandler [WEAK]
216+
EXPORT RTC_Alarm_IRQHandler [WEAK]
217+
EXPORT PWR_SOTF_BLEACT_802ACT_RFPHASE_IRQHandler [WEAK]
218+
EXPORT IPCC_C1_RX_IRQHandler [WEAK]
219+
EXPORT IPCC_C1_TX_IRQHandler [WEAK]
220+
EXPORT HSEM_IRQHandler [WEAK]
221+
EXPORT LPTIM1_IRQHandler [WEAK]
222+
EXPORT LPTIM2_IRQHandler [WEAK]
223+
EXPORT AES2_IRQHandler [WEAK]
224+
EXPORT RNG_IRQHandler [WEAK]
225+
EXPORT FPU_IRQHandler [WEAK]
226+
EXPORT DMAMUX1_OVR_IRQHandler [WEAK]
227+
228+
WWDG_IRQHandler
229+
PVD_PVM_IRQHandler
230+
TAMP_STAMP_LSECSS_IRQHandler
231+
RTC_WKUP_IRQHandler
232+
FLASH_IRQHandler
233+
RCC_IRQHandler
234+
EXTI0_IRQHandler
235+
EXTI1_IRQHandler
236+
EXTI2_IRQHandler
237+
EXTI3_IRQHandler
238+
EXTI4_IRQHandler
239+
DMA1_Channel1_IRQHandler
240+
DMA1_Channel2_IRQHandler
241+
DMA1_Channel3_IRQHandler
242+
DMA1_Channel4_IRQHandler
243+
DMA1_Channel5_IRQHandler
244+
DMA1_Channel6_IRQHandler
245+
DMA1_Channel7_IRQHandler
246+
ADC1_IRQHandler
247+
C2SEV_PWR_C2H_IRQHandler
248+
EXTI9_5_IRQHandler
249+
TIM1_BRK_IRQHandler
250+
TIM1_UP_TIM16_IRQHandler
251+
TIM1_TRG_COM_TIM17_IRQHandler
252+
TIM1_CC_IRQHandler
253+
TIM2_IRQHandler
254+
PKA_IRQHandler
255+
I2C1_EV_IRQHandler
256+
I2C1_ER_IRQHandler
257+
SPI1_IRQHandler
258+
USART1_IRQHandler
259+
TSC_IRQHandler
260+
EXTI15_10_IRQHandler
261+
RTC_Alarm_IRQHandler
262+
PWR_SOTF_BLEACT_802ACT_RFPHASE_IRQHandler
263+
IPCC_C1_RX_IRQHandler
264+
IPCC_C1_TX_IRQHandler
265+
HSEM_IRQHandler
266+
LPTIM1_IRQHandler
267+
LPTIM2_IRQHandler
268+
AES2_IRQHandler
269+
RNG_IRQHandler
270+
FPU_IRQHandler
271+
DMAMUX1_OVR_IRQHandler
272+
273+
B .
274+
275+
ENDP
276+
277+
ALIGN
278+
279+
;*******************************************************************************
280+
; User Stack and Heap initialization
281+
;*******************************************************************************
282+
283+
END
284+
285+
;************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE*****
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
#! armcc -E
2+
; Scatter-Loading Description File
3+
;
4+
; SPDX-License-Identifier: BSD-3-Clause
5+
;******************************************************************************
6+
;* @attention
7+
;*
8+
;* Copyright (c) 2016-2020 STMicroelectronics.
9+
;* All rights reserved.
10+
;*
11+
;* This software component is licensed by ST under BSD 3-Clause license,
12+
;* the "License"; You may not use this file except in compliance with the
13+
;* License. You may obtain a copy of the License at:
14+
;* opensource.org/licenses/BSD-3-Clause
15+
;*
16+
;******************************************************************************
17+
18+
#include "../cmsis_nvic.h"
19+
20+
#if !defined(MBED_APP_START)
21+
#define MBED_APP_START MBED_ROM_START
22+
#endif
23+
24+
#if !defined(MBED_APP_SIZE)
25+
#define MBED_APP_SIZE MBED_ROM_SIZE
26+
#endif
27+
28+
#if !defined(MBED_BOOT_STACK_SIZE)
29+
/* This value is normally defined by the tools to 0x1000 for bare metal and 0x400 for RTOS */
30+
#define MBED_BOOT_STACK_SIZE 0x400
31+
#endif
32+
33+
/* Round up VECTORS_SIZE to 8 bytes */
34+
#define VECTORS_SIZE (((NVIC_NUM_VECTORS * 4) + 7) AND ~7)
35+
36+
LR_IROM1 MBED_APP_START MBED_APP_SIZE {
37+
38+
ER_IROM1 MBED_APP_START MBED_APP_SIZE {
39+
*.o (RESET, +First)
40+
*(InRoot$$Sections)
41+
.ANY (+RO)
42+
}
43+
44+
RW_IRAM1 (MBED_RAM_START + VECTORS_SIZE) { ; RW data
45+
.ANY (+RW +ZI)
46+
}
47+
48+
ARM_LIB_HEAP AlignExpr(+0, 16) EMPTY (MBED_RAM_START + MBED_RAM_SIZE - MBED_BOOT_STACK_SIZE - AlignExpr(ImageLimit(RW_IRAM1), 16)) { ; Heap growing up
49+
}
50+
51+
ARM_LIB_STACK (MBED_RAM_START + MBED_RAM_SIZE) EMPTY -MBED_BOOT_STACK_SIZE { ; Stack region growing down
52+
}
53+
}

0 commit comments

Comments
 (0)