码迷,mamicode.com
首页 > 其他好文 > 详细

Cortex-M4 Core Registers

时间:2015-09-09 01:03:48      阅读:135      评论:0      收藏:0      [点我收藏+]

标签:

Cortex-M4 Core Registers

Goal: visualizing what happens to the Cortex-M4 core registers after reset


Here‘s what happens after the processor is reset:

    • General-purpose registers have unknown values in them
    • Stack pointer register is loaded with the value of the Initial SP value register located at 0x0000 (Vector Table)
    • Link register will have 0xFFFFFFFF
    • Program counter is loaded with the value of the Reset register located at 0x0004 (Vector Table)
      • In the case of STM32F4, Reset register contains the address of the Reset_Handler which is defined in startup_stm32f40xx.s
    • Reset_Handler performs microcontroller system setup, configures the system clock, eventually branches to __main (entry point of a program) in the C library. 
    • Vector Table is mapped to address 0 at reset (can be relocated in this range: 0x00000080 - 0x3FFFFF80)

 技术分享

Summary of registers and their roles in the procedure call standard (AAPCS).

技术分享

Cortex-M4 Core Registers

标签:

原文地址:http://www.cnblogs.com/shangdawei/p/4793337.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!