00. 目录
01. Chip ID概述
The Exynos 4412 SCP includes a Chip ID block for the Software (SW) that sends and receives Advanced
Peripheral Bus (APB) interface signals to the bus system.
Exynos 4412 SCP包含一个用于发送和接收高级外设总线接口信号到总线系统的Chip ID模块,
02. 寄存器介绍
PRO_ID介绍
PACKAGE_ID介绍
03. 程序示例
test.s汇编程序
.section .rodata
.align 2
.LC0:
.string "PRO_ID = %p\n"
.LC1:
.string "PACKAGE_ID = %p\n"
.section .text
.align 2
.global _start
_start:
stmfd sp!, {lr}
@PRO_ID
ldr r0, =.LC0
ldr r1, =0x10000000
ldr r1, [r1]
mov lr, pc
ldr pc, =0x43e11a2c
@PACKAGE_ID
ldr r0, =.LC1
ldr r1, =0x10000004
ldr r1, [r1]
mov lr, pc
ldr pc, =0x43e11a2c
ldmfd sp!, {pc}
04. 编译执行
Makefile
all:
arm-linux-gcc -c test.s -o test.o
arm-linux-ld -Ttext=0x40008000 test.o -o test
arm-linux-objcopy -O binary test test.bin
.PHONY:clean
clean:
rm -rf test.o test test.bin
执行结果
DengJin # go 40008000
## Starting application at 0x40008000 ...
PRO_ID = e4412011
PACKAGE_ID = 0b073008
## Application terminated, rc = 0x16
DengJin #
05. 附录
Exynos 4412 SCP_Users Manual_Ver.0.10.00_Preliminary.pdf
扫描二维码关注公众号,回复:
11521313 查看本文章