求j-flash ARM的序列号 J-link arm

来源:百度知道 编辑:UC知道 时间:2024/06/22 15:49:50
RT

就是CP15

CP15 —系统控制协处理器 (the system control coprocessor)他通过协处理器指令MCR和MRC提供具体的寄存器来配置和控制caches、MMU、保护系统、配置时钟模式(在bootloader时钟初始化用到)……

CP15的寄存器只能被MRC和MC指令访问

他包括15个具体的寄存器如下:
-R0:ID号寄存器 这是一个只读寄存器,返回一个32位的设备ID号,32具体功能参考2410 datesheet的 table 2-5

You can determin the CPU information by reading register zero of the system
control co-processor CP15. Here is a simple bit of BASIC to read it:-

REM > CPUInfo

ON ERROR PRINTREPORT$; " at line ";ERL:END

DIM code% 256
FORpass%=16 TO 18 STEP2
P%=code%
[ OPTpass%
.code
SWI "OS_EnterOS "
MRC CP15,0,R0,C0,C0,0
STR R0,cputype
TEQP PC,#0
MOV R0,R0
MOV PC,R14
:
.cputype
EQUD