This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] TM4C123GH6PM:复位矢量和内部闪存存储器

Guru**** 2341440 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/604463/tm4c123gh6pm-reset-vector-and-internal-flash-memory

器件型号:TM4C123GH6PM

您好!

从 tm4c123g Launchpad 数据表中、ARM 处理器的矢量表位于存储器位置0x00000000、如下所示。

现在、从同一数据表中、内部闪存存储器映射在位置0x00000000。

现在、如果我们转到第#540页、

在存储器位置0x00000000处有闪存控制寄存器...

我的问题是:

1) 1)如何在矢量表假定存在的位置设置寄存器?

2) 2)从数据表中、位置0x00000000处的内容被复制到 SP。 但进入虚拟工程的汇编(使用 Keil-5)、复位后立即调用 Reset_Handler、序列如下:

RESET_Handler -> SystemInit ->__main ->__RT_Entry ->__user_setup_stackheap ()->__RT_stackheap_init () MAIN () 

那么、将存储器位置0x00000000的内容复制到栈指针的指令在哪里呢?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    1) 1)表8-3中给出的地址是基地址0x400FD000的偏移量
    2) 2)位置0x00000000的地址副本由 Cortex M4自动完成(在执行任何指令之前)