歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux編程 >> Linux編程 >> JLink V8初始化Exynos 4412腳本

JLink V8初始化Exynos 4412腳本

日期:2017/3/1 9:17:39   编辑:Linux編程

JLink V8初始化Exynos 4412腳本

/**
******************************************************************************

* @author Maoxiao Hu

* @version V1.0.1

* @date Dec-2014

******************************************************************************

* < COPYRIGHT 2014 ISE of SHANDONG UNIVERSITY >

*******************************************************************************

**/

上接博客《jLink V8調試exynos 4412 u-boot的幾點補充》http://www.linuxidc.com/Linux/2016-03/129585.htm,補充JLink初始化4412時鐘管理單元CMU的腳本,防止在調試過程中初始化時鐘造成JLink斷開與CPU的連接。

使用此腳本前,需要將uboot中時鐘初始化代碼注釋掉。


target remote localhost:2331

monitor sleep 100

monitor halt

monitor sleep 500

######################################

#SET PLL LOCKTIME

monitor memU32 0x10044000 = 0x00000960

monitor memU32 0x10040008 = 0x00000190

monitor memU32 0x1003C010 = 0x00000BB8

monitor memU32 0x1003C020 = 0x00000190

######################################

#SET APLL

monitor memU32 0x10044104 = 0x00803800

monitor memU32 0x10044100 = 0x807D0300

monitor sleep 100

#SET MPLL

monitor memU32 0x1004010C = 0x00803800

monitor memU32 0x10040108 = 0x80640300

monitor sleep 100

#SET EPLL

monitor memU32 0x1003C118 = 0x00000080

monitor memU32 0x1003C114 = 0x66010000

monitor memU32 0x1003C110 = 0x80400203

monitor sleep 100

#SET VPLL

monitor memU32 0x1003C128 = 0x00000080

monitor memU32 0x1003C124 = 0x66010000

monitor memU32 0x1003C120 = 0x80480203

monitor sleep 100

######################################


#SET CMU_CPU MUX

monitor memU32 0x10044200 = 0x01000001

monitor sleep 100

#SET CMU_DMC MUX

monitor memU32 0x10040200 = 0x00011000

monitor sleep 100

#SET CMU_TOP MUX

monitor memU32 0x1003C210 = 0x00000110

monitor sleep 100

monitor memU32 0x1003C214 = 0x00011000

monitor sleep 100

#SET CMU_LEFTBUS MUX

monitor memU32 0x10034200 = 0x00000010

monitor sleep 100

#SET CMU_RIGHTBUS MUX

monitor memU32 0x10038200 = 0x00000010

monitor sleep 100

######################################

#SET LEFTBUS DIV

monitor memU32 0x10034500 = 0x00000013

#SET RIGHTBUS DIV

monitor memU32 0x10038500 = 0x00000013

#SET CLK_DIV_DMC0/1

monitor memU32 0x10040500 = 0x00111113

monitor memU32 0x10040504 = 0x01011113

#SET CLK_DIV_CPU0/1

monitor memU32 0x10044500 = 0x01143730

monitor memU32 0x10044504 = 0x00000004

#SET CMU_TOP DIV

monitor memU32 0x1003C510 = 0x01205473

######################################

load

break _start

感謝:迅為cym

Copyright © Linux教程網 All Rights Reserved