TI论坛
直播中

杨逊咏

8年用户 245经验值
私信 关注
[问答]

请问TMS570的初始化的报告第一个步骤如何执行?

Hello all,
我最近在看TMS570的初始化的报告如下:
http://www.ti.com/lit/an/spna106d/spna106d.pdf
根据文件中,共有57个步骤。
1. Enable the floating-point unit (FPU) inside the Cortex-R4F CPU (Section 2.1).
2. Initialize the CPU registers and FPU registers, including stack pointers (Section 2.2).
3. Enable the flash interface module's response to an ECC error indicated by the CPU on accesses to
flash (Section 2.3).
4. Enable the CPU's Event Bus export mechanism (Section 2.4).
5. Enable the CPU's Single-Error-Correction Double-Error-Detection (SECDED) logic for accesses to
Flash memory (CPU's ATCM interface) (Section 2.5).
6. Handle the cause of reset to determine whether or not to continue with the start-up sequence
(Section 2.6)
7. Check if any ESM group3 error was indicated during power-up. If any ESM group3 error occurred
during the power-up, it is not safe to continue code execution and the microcontroller initialization
process can be stopped at this point. The subsequent steps in this sequence assume that there was
no ESM group3 error during power-up.
8. Configure PLL control registers with the largest value for the last-stage of the dividers (R-dividers)
(Section 2.7).
...........

我的问题如下,譬如第一个步骤,要开启FPU、或是第二个步骤,要初始化CPU的register。但我在执行范例程式时,都并未有执行此步骤。
观看CCS,也找不到这个过程。这是因为他是CPU内部会自己执行,而不用工程师去写code执行的吗?

回帖(2)

刘馨

2018-8-13 09:30:30
部分是默认的状态,比如有的端口寄存器默认的是输出。你可以看看这些相关的寄存器默认的状态是什么
举报

李平

2018-8-13 09:49:53
Shunfan,
   这些代码你应该可以在工程文件的sys_core.asm文件里面找得到。这些初始化函数都是在void C_int00()函数里面的,这个可以在sys_startup.c里面找到。
确实这些都是系统自动进行的操作,它们都在main函数之前进行的操作,对用户是透明的。所以你很有可能会注意不到。


谢谢
                                                                         



BR,
KEN
举报

更多回帖

发帖
×
20
完善资料,
赚取积分