【ARM】Tiny4412裸板编程之Chip ID
生活随笔
收集整理的這篇文章主要介紹了
【ARM】Tiny4412裸板编程之Chip ID
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
00. 目錄
文章目錄
- 00. 目錄
- 01. Chip ID概述
- 02. 寄存器介紹
- 03. 程序示例
- 04. 編譯執(zhí)行
- 05. 附錄
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包含一個用于發(fā)送和接收高級外設(shè)總線接口信號到總線系統(tǒng)的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_IDldr r0, =.LC0 ldr r1, =0x10000000ldr r1, [r1]mov lr, pcldr pc, =0x43e11a2c@PACKAGE_IDldr r0, =.LC1 ldr r1, =0x10000004ldr r1, [r1]mov lr, pcldr pc, =0x43e11a2cldmfd sp!, {pc}04. 編譯執(zhí)行
Makefile
all:arm-linux-gcc -c test.s -o test.oarm-linux-ld -Ttext=0x40008000 test.o -o testarm-linux-objcopy -O binary test test.bin.PHONY:clean clean:rm -rf test.o test test.bin執(zhí)行結(jié)果
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
總結(jié)
以上是生活随笔為你收集整理的【ARM】Tiny4412裸板编程之Chip ID的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【ARM】在Uboot中运行第一个汇编程
- 下一篇: 【ARM】Tiny4412裸机编程之GP