文件功能:
;* This module performs:
;* - Set the initial SP
;* - Configure the clock system
;* - Set the initial PC == __iar_program_start,
;* - Set the vector table entries with the exceptions ISR address.
;* After Reset the Cortex-M3 processor is in Thread mode, priority is Privileged, and the Stack is set to Main.
很大一个篇幅是为各个中断服务函数分配一片连续字存储单元,并用指定的表达式(中断服务函数)初始化。
DCD:数据定义( Data Definition )伪指令
一般用于为特定的数据分配存储单元,同时可完成已分配存储单元的初始化。
标号 DCD(或 DCDU) 表达式
DCD(或 DCDU)伪指令用于分配一片连续的字存储单元并用指定的表达式初始化。其中表达式可以为程序标号或数字表达式。 DCD 也可用 “ &” 代替。
用 DCD 分配的字存储单元是字对齐的,而用 DCDU 分配的字存储单元并不严格字对齐。
STM32 CM3 ------ startup.s 文件分析
原文:https://www.cnblogs.com/god-of-death/p/14856780.html