- 1、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
在main()之前,iar都做了啥(What did IAR do before main ())
在main()之前,iar都做了啥(What did IAR do before main ()) [original] before main (), what did IAR do? Collection Recently, I wrote a simple operating system on Cortex-M3 and decided to use IAR. In order to write the startup code, I took some time to understand what IAR did before main (). First, when the system is reset, the Cortex-M3 obtains the stack top address from the code area offset 0to initialize the value of the MSP register. Next, move the jump address of the first instruction from the code area offset 0 These addresses are where CM3 requires the interrupt vector table to be placed. Here is the disassembly of a programs boot zone: __vector_table: 080040002600 0800400220007E1D 080040060800 This program is started by the IAP program. The IAP program gets the MSP value (0 at 0and sets the value to MSP, which is the maximum 00x200025FF of the main stack. Next, the IAP program gets the address of the Reset_Handler at 0(0x08007E1D) and jumps to Reset_Handler () to execute. IAP here is a complete imitation of the Cortex-M3 reset sequence, that is, in the absence of IAP system, CM3 can only get MSP from 0 from 0access to the address of the first instruction. And IAP exists on the 0address, IAP startup, has consumed the reset sequence, so IAP to start the UserApp program, but also completely imitate the Cortex-M3 reset sequence. Next, lets look at the first instruction after reset - whats in the Reset_Handler () function?. If were using the ST standard peripheral library, then theres already a ready Reset_Handler, but hes a weak definition - PUBWEAK, which can be overridden by the same name we rewrite. In general, we are using the ST provided by Reset_Handler, which can be found in startup_stm32f10x_xx.s in the library of the V3.4 version: PUBWEAK Reset_Handler SECTION.Text:CODE:REORDER (2) Reset_Handler LDR, R0, =SystemInit BLX R0 LDR, R0, =__iar_program_start BX R0 It seem
您可能关注的文档
- 生产管理论文(Production management papers).doc
- 生活中的急救法(First aid in life).doc
- 王安康论治肝硬化腹水经验(Wang Ankang's treatment of ascites due to cirrhosis).doc
- 生活之道(Way of life).doc
- 珍珠粉的全部用法(The full usage of pearl powder).doc
- 生活妙招(Life coup).doc
- 生活急救常识(Life emergency tips).doc
- 生物地理总复习(Biogeography review).doc
- 生物基本知识大全(Basic knowledge of Biology).doc
- 生物期末试题(Biology final examination).doc
- 在php中要知道本月的天数,用什么函数可以实现(In PHP, you know the number of days in the month, and what functions can be used to implement it).doc
- 在prorel中常用元器件的名称(The name of commonly used components in prorel).doc
- 在win32下apache与tomcat做负载均衡(Under Win32, Apache and Tomcat do load balancing).doc
- 在word中如何批量删除空格空段超链接表格和图像(How to delete spaces, empty segments, hyperlinks, tables, and images in word).doc
- 在中华老黄历中 搬家是叫安床(Move in the old history is called bed).doc
- 在丈夫弥留之际妻子自拟代书遗嘱属无效(The husband wife with the testator is deathbed).doc
- 在供电公司中层领导干部聘任大会上的讲话(Speech at the appointment meeting of middle-level cadres in power supply company).doc
- 在全区镇江精神座谈会上的讲话(Speech at the Symposium on Zhenjiang spirit in the region).doc
- 在全县新农村建设动员大会上的讲话提纲(Outline of speech at the mobilization meeting of the new rural construction in the county).doc
- 在初中物理中如何应用函数图象(How to apply function image in junior high school physics).doc
最近下载
- 新质生产力赋能云南高原特色现代农业高质量发展的路径研究.docx VIP
- 博世:以文化为基因,提升领导力 – 博世高潜人才发展与教练文化.pdf VIP
- 儿童发育性协调障碍的筛查、评估和诊断指南(2025).pptx VIP
- GBT 29611-2013 生橡胶 玻璃化转变温度的测定 差示扫描量热法(DSC).pdf
- NB_T 20160-2021 压水堆核电厂不锈钢水池覆面施工技术规程.pdf VIP
- 2025党校入党积极分子发展对象考试题库(含答案).docx VIP
- (电厂)三级安全教育考试题(附含答案).docx VIP
- 施工现场平面布置及施工道路平面图.pdf VIP
- 2015办公用品采购表申请表做办公用品采购流程.doc VIP
- 例谈基于语篇分析的中学英语阅读教学设计.pdf VIP
有哪些信誉好的足球投注网站
文档评论(0)