⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 setupetm.cmm

📁 QUALCOMM JNAND DRIVER
💻 CMM
字号:
;============================================================================
;
; ETM9 8-BIT DEMUX MODE SETUP SCRIPT
;
; DESCRIPTION
;
;   This file enables the clock to the ETM9 hardware core and configures the
;   ETM9 core for 8-bit demuxed mode.
;
; Copyright (c) 2003 by QUALCOMM, Incorporated.  All Rights reserved
;============================================================================

;----------------------------------------------------------------------------
; Enable clock to ETM core.
;----------------------------------------------------------------------------

; Read the current value of the MSM_CLK_ENA0 register.

local &MSM_CLK_ENA0_ADDR
&MSM_CLK_ENA0_ADDR=0x84001400

local &MSM_CLK_ENA0_VAL
&MSM_CLK_ENA0_VAL=data.word(RD:&MSM_CLK_ENA0_ADDR)

; Now set bit 0 so that the ETM clock is enabled.

&MSM_CLK_ENA0_VAL=&MSM_CLK_ENA0_VAL|0x00000001
d.out &MSM_CLK_ENA0_ADDR %LONG &MSM_CLK_ENA0_VAL

;----------------------------------------------------------------------------
; Set Trace32 ETM demux mode endianness convention.
;
; NOTE: This needs to be done *before* configuring the ETM core, or the
;       Trace32 software will not correctly decompress a trace. [07 May 2003]
;----------------------------------------------------------------------------

system.option.etmswap ON

;----------------------------------------------------------------------------
; Configure ETM core.
;----------------------------------------------------------------------------

ETM.RESET
ETM.PortSize   8             
ETM.PortMode   Demuxed
ETM.Fifolevel  16.
ETM.Stall      OFF
ETM.ON                      

;----------------------------------------------------------------------------
; Terminate script.
;----------------------------------------------------------------------------

print "Status: ETM is setup"
enddo




⌨️ 快捷键说明

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