|
1 |
| -;/***************************************************************************** |
2 |
| -; * @file: startup_STM32F40x.s |
3 |
| -; * @purpose: CMSIS Cortex-M4 Core Device Startup File |
4 |
| -; * for the ST STM32F40x Device Series |
5 |
| -; * @version: V1.20 |
6 |
| -; * @date: 16. January 2012 |
7 |
| -; *------- <<< Use Configuration Wizard in Context Menu >>> ------------------ |
8 |
| -; * |
9 |
| -; * Copyright (C) 2012 ARM Limited. All rights reserved. |
10 |
| -; * ARM Limited (ARM) is supplying this software for use with Cortex-M4 |
11 |
| -; * processor based microcontrollers. This file can be freely distributed |
12 |
| -; * within development tools that are supporting such ARM based processors. |
13 |
| -; * |
14 |
| -; * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED |
15 |
| -; * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF |
16 |
| -; * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. |
17 |
| -; * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR |
18 |
| -; * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. |
19 |
| -; * |
20 |
| -; *****************************************************************************/ |
| 1 | +;******************** (C) COPYRIGHT 2017 STMicroelectronics ******************** |
| 2 | +;* File Name : startup_stm32f407xx.s |
| 3 | +;* Author : MCD Application Team |
| 4 | +;* Description : STM32F407xx devices vector table for MDK-ARM_MICRO 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 | +; |
| 16 | +;* Redistribution and use in source and binary forms, with or without modification, |
| 17 | +;* are permitted provided that the following conditions are met: |
| 18 | +;* 1. Redistributions of source code must retain the above copyright notice, |
| 19 | +;* this list of conditions and the following disclaimer. |
| 20 | +;* 2. Redistributions in binary form must reproduce the above copyright notice, |
| 21 | +;* this list of conditions and the following disclaimer in the documentation |
| 22 | +;* and/or other materials provided with the distribution. |
| 23 | +;* 3. Neither the name of STMicroelectronics nor the names of its contributors |
| 24 | +;* may be used to endorse or promote products derived from this software |
| 25 | +;* without specific prior written permission. |
| 26 | +;* |
| 27 | +;* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| 28 | +;* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 29 | +;* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| 30 | +;* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
| 31 | +;* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| 32 | +;* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
| 33 | +;* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
| 34 | +;* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
| 35 | +;* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 36 | +;* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 37 | +; |
| 38 | +;******************************************************************************* |
21 | 39 |
|
22 | 40 | ; Amount of memory (in bytes) allocated for Stack
|
23 | 41 | ; Tailor this value to your application needs
|
@@ -56,6 +74,8 @@ __heap_limit EQU (__initial_sp - Stack_Size)
|
56 | 74 |
|
57 | 75 | AREA RESET, DATA, READONLY
|
58 | 76 | EXPORT __Vectors
|
| 77 | + EXPORT __Vectors_End |
| 78 | + EXPORT __Vectors_Size |
59 | 79 |
|
60 | 80 | __Vectors DCD __initial_sp ; Top of Stack
|
61 | 81 | DCD Reset_Handler ; Reset Handler
|
@@ -122,7 +142,7 @@ __Vectors DCD __initial_sp ; Top of Stack
|
122 | 142 | DCD TIM8_TRG_COM_TIM14_IRQHandler ; TIM8 Trigger and Commutation and TIM14
|
123 | 143 | DCD TIM8_CC_IRQHandler ; TIM8 Capture Compare
|
124 | 144 | DCD DMA1_Stream7_IRQHandler ; DMA1 Stream7
|
125 |
| - DCD FSMC_IRQHandler ; FSMC |
| 145 | + DCD FMC_IRQHandler ; FMC |
126 | 146 | DCD SDIO_IRQHandler ; SDIO
|
127 | 147 | DCD TIM5_IRQHandler ; TIM5
|
128 | 148 | DCD SPI3_IRQHandler ; SPI3
|
@@ -153,10 +173,12 @@ __Vectors DCD __initial_sp ; Top of Stack
|
153 | 173 | DCD OTG_HS_WKUP_IRQHandler ; USB OTG HS Wakeup through EXTI
|
154 | 174 | DCD OTG_HS_IRQHandler ; USB OTG HS
|
155 | 175 | DCD DCMI_IRQHandler ; DCMI
|
156 |
| - DCD CRYP_IRQHandler ; CRYP crypto |
| 176 | + DCD 0 ; Reserved |
157 | 177 | DCD HASH_RNG_IRQHandler ; Hash and Rng
|
158 | 178 | DCD FPU_IRQHandler ; FPU
|
| 179 | +__Vectors_End |
159 | 180 |
|
| 181 | +__Vectors_Size EQU __Vectors_End - __Vectors |
160 | 182 |
|
161 | 183 | AREA |.text|, CODE, READONLY
|
162 | 184 |
|
@@ -268,7 +290,7 @@ Default_Handler PROC
|
268 | 290 | EXPORT TIM8_TRG_COM_TIM14_IRQHandler [WEAK]
|
269 | 291 | EXPORT TIM8_CC_IRQHandler [WEAK]
|
270 | 292 | EXPORT DMA1_Stream7_IRQHandler [WEAK]
|
271 |
| - EXPORT FSMC_IRQHandler [WEAK] |
| 293 | + EXPORT FMC_IRQHandler [WEAK] |
272 | 294 | EXPORT SDIO_IRQHandler [WEAK]
|
273 | 295 | EXPORT TIM5_IRQHandler [WEAK]
|
274 | 296 | EXPORT SPI3_IRQHandler [WEAK]
|
@@ -299,7 +321,6 @@ Default_Handler PROC
|
299 | 321 | EXPORT OTG_HS_WKUP_IRQHandler [WEAK]
|
300 | 322 | EXPORT OTG_HS_IRQHandler [WEAK]
|
301 | 323 | EXPORT DCMI_IRQHandler [WEAK]
|
302 |
| - EXPORT CRYP_IRQHandler [WEAK] |
303 | 324 | EXPORT HASH_RNG_IRQHandler [WEAK]
|
304 | 325 | EXPORT FPU_IRQHandler [WEAK]
|
305 | 326 |
|
@@ -351,7 +372,7 @@ TIM8_UP_TIM13_IRQHandler
|
351 | 372 | TIM8_TRG_COM_TIM14_IRQHandler
|
352 | 373 | TIM8_CC_IRQHandler
|
353 | 374 | DMA1_Stream7_IRQHandler
|
354 |
| -FSMC_IRQHandler |
| 375 | +FMC_IRQHandler |
355 | 376 | SDIO_IRQHandler
|
356 | 377 | TIM5_IRQHandler
|
357 | 378 | SPI3_IRQHandler
|
@@ -382,7 +403,6 @@ OTG_HS_EP1_IN_IRQHandler
|
382 | 403 | OTG_HS_WKUP_IRQHandler
|
383 | 404 | OTG_HS_IRQHandler
|
384 | 405 | DCMI_IRQHandler
|
385 |
| -CRYP_IRQHandler |
386 | 406 | HASH_RNG_IRQHandler
|
387 | 407 | FPU_IRQHandler
|
388 | 408 |
|
|
0 commit comments