Line | |
---|
1 | # 0 "D:\\projekte\\ecs_smartSwitch\\trunk\\firmware\\STM32G0xx_Startup.s" |
---|
2 | # 0 "<built-in>" |
---|
3 | # 0 "<command-line>" |
---|
4 | # 1 "D:\\projekte\\ecs_smartSwitch\\trunk\\firmware\\STM32G0xx_Startup.s" |
---|
5 | # 78 "D:\\projekte\\ecs_smartSwitch\\trunk\\firmware\\STM32G0xx_Startup.s" |
---|
6 | .syntax unified |
---|
7 | |
---|
8 | .global Reset_Handler |
---|
9 | .extern _vectors |
---|
10 | |
---|
11 | .section .init, "ax" |
---|
12 | .thumb_func |
---|
13 | |
---|
14 | .equ VTOR_REG, 0xE000ED08 |
---|
15 | |
---|
16 | |
---|
17 | |
---|
18 | |
---|
19 | |
---|
20 | Reset_Handler: |
---|
21 | |
---|
22 | |
---|
23 | ldr r0, =__RAM_segment_end__ |
---|
24 | ldr r1, =0x7 |
---|
25 | bics r0, r1 |
---|
26 | mov sp, r0 |
---|
27 | |
---|
28 | |
---|
29 | |
---|
30 | |
---|
31 | ldr r0, =SystemInit |
---|
32 | blx r0 |
---|
33 | .pushsection .init_array, "aw", %init_array |
---|
34 | .align 2 |
---|
35 | .word SystemCoreClockUpdate |
---|
36 | .popsection |
---|
37 | # 134 "D:\\projekte\\ecs_smartSwitch\\trunk\\firmware\\STM32G0xx_Startup.s" |
---|
38 | ldr r0, =VTOR_REG |
---|
39 | |
---|
40 | |
---|
41 | |
---|
42 | ldr r1, =_vectors |
---|
43 | |
---|
44 | str r1, [r0] |
---|
45 | |
---|
46 | |
---|
47 | |
---|
48 | b _start |
---|
Note: See
TracBrowser
for help on using the repository browser.