首页 > 其他 > 详细

STM32 CM3 ------ startup.s 文件分析

时间:2021-06-07 00:45:12      阅读:33      评论:0      收藏:0      [点我收藏+]

文件功能:

;* 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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!