stm32f3_startup.lst 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  1. 1 # 0 "deps//hal/stm32f3/stm32f3_startup.S"
  2. 2 # 0 "<built-in>"
  3. 3 # 0 "<command-line>"
  4. 4 # 1 "deps//hal/stm32f3/stm32f3_startup.S"
  5. 1 /**
  6. 2 ******************************************************************************
  7. 3 * @file startup_stm32.s
  8. 4 * @author Ac6
  9. 5 * @version V1.0.0
  10. 6 * @date 12-June-2014
  11. 7 ******************************************************************************
  12. 8 */
  13. 9
  14. 10 .syntax unified
  15. 11 .cpu cortex-m4
  16. 12 .thumb
  17. 13
  18. 14 .global g_pfnVectors
  19. 15 .global Default_Handler
  20. 16
  21. 17 /* start address for the initialization values of the .data section.
  22. 18 defined in linker script */
  23. 19 0000 00000000 .word _sidata
  24. 20 /* start address for the .data section. defined in linker script */
  25. 21 0004 00000000 .word _sdata
  26. 22 /* end address for the .data section. defined in linker script */
  27. 23 0008 00000000 .word _edata
  28. 24 /* start address for the .bss section. defined in linker script */
  29. 25 000c 00000000 .word _sbss
  30. 26 /* end address for the .bss section. defined in linker script */
  31. 27 0010 00000000 .word _ebss
  32. 28
  33. 29 .equ BootRAM, 0xF1E0F85F
  34. 30 /**
  35. 31 * @brief This is the code that gets called when the processor first
  36. 32 * starts execution following a reset event. Only the absolutely
  37. 33 * necessary set is performed, after which the application
  38. 34 * supplied main() routine is called.
  39. 35 * @param None
  40. 36 * @retval : None
  41. 37 */
  42. 38
  43. 39 .section .text.Reset_Handler
  44. 40 .weak Reset_Handler
  45. 42 Reset_Handler:
  46. 43
  47. 44 /* Copy the data segment initializers from flash to SRAM */
  48. 45:deps//hal/stm32f3/stm32f3_startup.S **** movs r1, #0
  49. 46:deps//hal/stm32f3/stm32f3_startup.S **** b LoopCopyDataInit
  50. 47
  51. 48 CopyDataInit:
  52. 49:deps//hal/stm32f3/stm32f3_startup.S **** ldr r3, =_sidata
  53. 50:deps//hal/stm32f3/stm32f3_startup.S **** ldr r3, [r3, r1]
  54. 51:deps//hal/stm32f3/stm32f3_startup.S **** str r3, [r0, r1]
  55. 52:deps//hal/stm32f3/stm32f3_startup.S **** adds r1, r1, #4
  56. 53
  57. 54 LoopCopyDataInit:
  58. 55:deps//hal/stm32f3/stm32f3_startup.S **** ldr r0, =_sdata
  59. 56:deps//hal/stm32f3/stm32f3_startup.S **** ldr r3, =_edata
  60. 57:deps//hal/stm32f3/stm32f3_startup.S **** adds r2, r0, r1
  61. 58:deps//hal/stm32f3/stm32f3_startup.S **** cmp r2, r3
  62. 59:deps//hal/stm32f3/stm32f3_startup.S **** bcc CopyDataInit
  63. 60:deps//hal/stm32f3/stm32f3_startup.S **** ldr r2, =_sbss
  64. 61:deps//hal/stm32f3/stm32f3_startup.S **** b LoopFillZerobss
  65. 62 /* Zero fill the bss segment. */
  66. 63 FillZerobss:
  67. 64:deps//hal/stm32f3/stm32f3_startup.S **** movs r3, #0
  68. 65:deps//hal/stm32f3/stm32f3_startup.S **** str r3, [r2]
  69. 66:deps//hal/stm32f3/stm32f3_startup.S **** adds r2, r2, #4
  70. 67
  71. 68 LoopFillZerobss:
  72. 69:deps//hal/stm32f3/stm32f3_startup.S **** ldr r3, = _ebss
  73. 70:deps//hal/stm32f3/stm32f3_startup.S **** cmp r2, r3
  74. 71:deps//hal/stm32f3/stm32f3_startup.S **** bcc FillZerobss
  75. 72
  76. 73 /* Call the clock system intitialization function.*/
  77. 74:deps//hal/stm32f3/stm32f3_startup.S **** bl SystemInit
  78. 75 /* Call static constructors */
  79. 76:deps//hal/stm32f3/stm32f3_startup.S **** bl __libc_init_array
  80. 77 /* Call the application's entry point.*/
  81. 78:deps//hal/stm32f3/stm32f3_startup.S **** bl main
  82. 79
  83. 80
  84. 81
  85. 82 LoopForever:
  86. 83:deps//hal/stm32f3/stm32f3_startup.S **** b LoopForever
  87. 84
  88. 86
  89. 87 /**
  90. 88 * @brief This is the code that gets called when the processor receives an
  91. 89 * unexpected interrupt. This simply enters an infinite loop, preserving
  92. 90 * the system state for examination by a debugger.
  93. 91 *
  94. 92 * @param None
  95. 93 * @retval : None
  96. 94 */
  97. 95 .section .text.Default_Handler,"ax",%progbits
  98. 96 Default_Handler:
  99. 97 Infinite_Loop:
  100. 98:deps//hal/stm32f3/stm32f3_startup.S **** b Infinite_Loop
  101. 100 /******************************************************************************
  102. 101 *
  103. 102 * The minimal vector table for a Cortex-M. Note that the proper constructs
  104. 103 * must be placed on this to ensure that it ends up at physical address
  105. 104 * 0x0000.0000.
  106. 105 *
  107. 106 ******************************************************************************/
  108. 107 .section .isr_vector,"a",%progbits
  109. 110
  110. 111 g_pfnVectors:
  111. 112 0000 00000000 .word _estack
  112. 113 0004 00000000 .word Reset_Handler
  113. 114 0008 00000000 .word NMI_Handler
  114. 115 000c 00000000 .word HardFault_Handler
  115. 116 0010 00000000 .word MemManage_Handler
  116. 117 0014 00000000 .word BusFault_Handler
  117. 118 0018 00000000 .word UsageFault_Handler
  118. 119 001c 00000000 .word 0
  119. 120 0020 00000000 .word 0
  120. 121 0024 00000000 .word 0
  121. 122 0028 00000000 .word 0
  122. 123 002c 00000000 .word SVC_Handler
  123. 124 0030 00000000 .word DebugMon_Handler
  124. 125 0034 00000000 .word 0
  125. 126 0038 00000000 .word PendSV_Handler
  126. 127 003c 00000000 .word SysTick_Handler
  127. 128 0040 00000000 .word 0
  128. 129 0044 00000000 .word 0
  129. 130 0048 00000000 .word 0
  130. 131 004c 00000000 .word 0
  131. 132 0050 00000000 .word 0
  132. 133 0054 00000000 .word 0
  133. 134 0058 00000000 .word 0
  134. 135 005c 00000000 .word 0
  135. 136 0060 00000000 .word 0
  136. 137 0064 00000000 .word 0
  137. 138 0068 00000000 .word 0
  138. 139 006c 00000000 .word 0
  139. 140 0070 00000000 .word 0
  140. 141 0074 00000000 .word 0
  141. 142 0078 00000000 .word 0
  142. 143 007c 00000000 .word 0
  143. 144 0080 00000000 .word 0
  144. 145 0084 00000000 .word 0
  145. 146 0088 00000000 .word 0
  146. 147 008c 00000000 .word 0
  147. 148 0090 00000000 .word 0
  148. 149 0094 00000000 .word 0
  149. 150 0098 00000000 .word 0
  150. 151 009c 00000000 .word 0
  151. 152 00a0 00000000 .word 0
  152. 153 00a4 00000000 .word 0
  153. 154 00a8 00000000 .word 0
  154. 155 00ac 00000000 .word 0
  155. 156 00b0 00000000 .word 0
  156. 157 00b4 00000000 .word 0
  157. 158 00b8 00000000 .word 0
  158. 159 00bc 00000000 .word 0
  159. 160 00c0 00000000 .word 0
  160. 161 00c4 00000000 .word 0
  161. 162 00c8 00000000 .word 0
  162. 163 00cc 00000000 .word 0
  163. 164 00d0 00000000 .word 0
  164. 165 00d4 00000000 .word 0
  165. 166 00d8 00000000 .word 0
  166. 167 00dc 00000000 .word 0
  167. 168 00e0 00000000 .word 0
  168. 169 00e4 00000000 .word 0
  169. 170 00e8 00000000 .word 0
  170. 171 00ec 00000000 .word 0
  171. 172 00f0 00000000 .word 0
  172. 173 00f4 00000000 .word 0
  173. 174 00f8 00000000 .word 0
  174. 175 00fc 00000000 .word 0
  175. 176 0100 00000000 .word 0
  176. 177 0104 00000000 .word 0
  177. 178 0108 00000000 .word 0
  178. 179 010c 00000000 .word 0
  179. 180 0110 00000000 .word 0
  180. 181 0114 00000000 .word 0
  181. 182 0118 00000000 .word 0
  182. 183 011c 00000000 .word 0
  183. 184 0120 00000000 .word 0
  184. 185 0124 00000000 .word 0
  185. 186 0128 00000000 .word 0
  186. 187 012c 00000000 .word 0
  187. 188 0130 00000000 .word 0
  188. 189 0134 00000000 .word 0
  189. 190 0138 00000000 .word 0
  190. 191 013c 00000000 .word 0
  191. 192 0140 00000000 .word 0
  192. 193 0144 00000000 .word 0
  193. 194 0148 00000000 .word 0
  194. 195 014c 00000000 .word 0
  195. 196 0150 00000000 .word 0
  196. 197 0154 00000000 .word 0
  197. 198 0158 00000000 .word 0
  198. 199 015c 00000000 .word 0
  199. 200 0160 00000000 .word 0
  200. 201 0164 00000000 .word 0
  201. 202 0168 00000000 .word 0
  202. 203 016c 00000000 .word 0
  203. 204 0170 00000000 .word 0
  204. 205 0174 00000000 .word 0
  205. 206 0178 00000000 .word 0
  206. 207 017c 00000000 .word 0
  207. 208 0180 00000000 .word 0
  208. 209 0184 00000000 .word 0
  209. 210
  210. 211 /*******************************************************************************
  211. 212 *
  212. 213 * Provide weak aliases for each Exception handler to the Default_Handler.
  213. 214 * As they are weak aliases, any function with the same name will override
  214. 215 * this definition.
  215. 216 *
  216. 217 *******************************************************************************/
  217. 218
  218. 219 .weak NMI_Handler
  219. 220 .thumb_set NMI_Handler,Default_Handler
  220. 221
  221. 222 .weak HardFault_Handler
  222. 223 .thumb_set HardFault_Handler,Default_Handler
  223. 224
  224. 225 .weak MemManage_Handler
  225. 226 .thumb_set MemManage_Handler,Default_Handler
  226. 227
  227. 228 .weak BusFault_Handler
  228. 229 .thumb_set BusFault_Handler,Default_Handler
  229. 230
  230. 231 .weak UsageFault_Handler
  231. 232 .thumb_set UsageFault_Handler,Default_Handler
  232. 233
  233. 234 .weak SVC_Handler
  234. 235 .thumb_set SVC_Handler,Default_Handler
  235. 236
  236. 237 .weak DebugMon_Handler
  237. 238 .thumb_set DebugMon_Handler,Default_Handler
  238. 239
  239. 240 .weak PendSV_Handler
  240. 241 .thumb_set PendSV_Handler,Default_Handler
  241. 242
  242. 243 .weak SysTick_Handler
  243. 244 .thumb_set SysTick_Handler,Default_Handler
  244. 245
  245. 246 .weak SystemInit
  246. DEFINED SYMBOLS
  247. deps//hal/stm32f3/stm32f3_startup.S:111 .isr_vector:0000000000000000 g_pfnVectors
  248. deps//hal/stm32f3/stm32f3_startup.S:96 .text.Default_Handler:0000000000000000 Default_Handler
  249. deps//hal/stm32f3/stm32f3_startup.S:29 *ABS*:00000000f1e0f85f BootRAM
  250. deps//hal/stm32f3/stm32f3_startup.S:42 .text.Reset_Handler:0000000000000000 Reset_Handler
  251. deps//hal/stm32f3/stm32f3_startup.S:45 .text.Reset_Handler:0000000000000000 $t
  252. deps//hal/stm32f3/stm32f3_startup.S:54 .text.Reset_Handler:000000000000000c LoopCopyDataInit
  253. deps//hal/stm32f3/stm32f3_startup.S:48 .text.Reset_Handler:0000000000000004 CopyDataInit
  254. deps//hal/stm32f3/stm32f3_startup.S:68 .text.Reset_Handler:0000000000000020 LoopFillZerobss
  255. deps//hal/stm32f3/stm32f3_startup.S:63 .text.Reset_Handler:000000000000001a FillZerobss
  256. deps//hal/stm32f3/stm32f3_startup.S:82 .text.Reset_Handler:0000000000000032 LoopForever
  257. deps//hal/stm32f3/stm32f3_startup.S:97 .text.Default_Handler:0000000000000000 Infinite_Loop
  258. deps//hal/stm32f3/stm32f3_startup.S:98 .text.Default_Handler:0000000000000000 $t
  259. deps//hal/stm32f3/stm32f3_startup.S:96 .text.Default_Handler:0000000000000000 NMI_Handler
  260. deps//hal/stm32f3/stm32f3_startup.S:96 .text.Default_Handler:0000000000000000 HardFault_Handler
  261. deps//hal/stm32f3/stm32f3_startup.S:96 .text.Default_Handler:0000000000000000 MemManage_Handler
  262. deps//hal/stm32f3/stm32f3_startup.S:96 .text.Default_Handler:0000000000000000 BusFault_Handler
  263. deps//hal/stm32f3/stm32f3_startup.S:96 .text.Default_Handler:0000000000000000 UsageFault_Handler
  264. deps//hal/stm32f3/stm32f3_startup.S:96 .text.Default_Handler:0000000000000000 SVC_Handler
  265. deps//hal/stm32f3/stm32f3_startup.S:96 .text.Default_Handler:0000000000000000 DebugMon_Handler
  266. deps//hal/stm32f3/stm32f3_startup.S:96 .text.Default_Handler:0000000000000000 PendSV_Handler
  267. deps//hal/stm32f3/stm32f3_startup.S:96 .text.Default_Handler:0000000000000000 SysTick_Handler
  268. deps//hal/stm32f3/stm32f3_startup.S:246 .text.Reset_Handler:0000000000000034 $d
  269. .text:0000000000000000 $d
  270. UNDEFINED SYMBOLS
  271. _sidata
  272. _sdata
  273. _edata
  274. _sbss
  275. _ebss
  276. SystemInit
  277. __libc_init_array
  278. main
  279. _estack