readme.txt

来自「arm7的源代码」· 文本 代码 · 共 39 行

TXT
39
字号
Semihosted version of dhrystone for the ARM946E-S - debug tools must be attached.

Scatter file is used to locate the stack, heap and D-TCM.
At reset, TCM base addresses are set by HDL to 0x0, I-TCM base address cannot be changed.

This code will run unmodified on ARMulator or an Integrator ARM946E-S Core module.

Note the scatter file assumes a TCM size of 32 KB

InitTCM.s   - entry point for this image
            - locates configures and enables the TCMs
            - calls InitMPU

InitMPU.s   - creates MPU regions and enables the MPU (prior to scatter loading)
            - caches and regions are invalidated here
            - cache global enables are set to 0x0 before MPU is enabled
            - calls __main

InitCache.s - enables the caches

retarget.c  - provides a re-implementation of __user_initial_stackheap
            - patches main to enable the caches and Integrator core clock
            - default core clock frequency can be changed from here

The example may be built from the supplied makefile - this has been used to generate
the four batch file build options.

Four build options are provided:

buildTCM.bat - enables the TCMs and relocates all code and data into the TCMs
             - This option gives maximum performance and demonstrates the use
             - of TCMs and the placing of objects into TCMs by scatterloading

build.bat    - TCMs not enabled - instruction and data caches are enabled

build_clock.bat and buildTCM_clock.bat duplicate the above builds but also incorporate 
code to set an Integrator Core Module core clock frequency (-DSET_CLCK).

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?