📄 jnreset_auto.cmm
字号:
;============================================================================
; Name:
; JNRESET_AUTO.CMM
;
; Description:
; Script used to reset a surf withe the nand flash/sdram config
; to be used while running automation. also loads symbols.
; Usage:
; do jnreset
; Note:
; if the debugger complains "invalid break point configuration" then
; manually delete all onchip hardware break points and rerun this
; script.
;
; Copyright (c) 2003 by QUALCOMM, Incorporated. All Rights Reserved.
;----------------------------------------------------------------------------
global &ELFname
global &ELFdir
&ELFdir= "."
ENTRY &ELFname
system.reset
sys.d
system.cpu ARM926EJ
;slow down the clock before we attach to the target.
system.jtagclock 1000000.
sys.u
; Workaround to enable searcher RAM after power up of SURF
do constants.cmm
do setupgpll.cmm
system.jtagclock rtck
;Never do map.reset. It clears all break points
;map.reset
; The following turns flash on camera off
d.out &GPIO_OE_0 %long 0x2000
r.s pc 0xffff0000
b.s 0 /onchip
break.delete 0x0--0xFFFFFF /Write /Onchip
g
wait !run()
IF "&ELFname"==""
(
print "select file to program in browser: "
d.load.elf *.elf /nocode
)
ELSE
(
print "Loading &ELFname.elf target image "
data.load.elf &ELFdir\&ELFname.elf
)
b.d 0 /onchip
b.s 0 /onchip /CMD "g"
b.s 4
b.s 8
b.s 0c
b.s 0x10
b.s 0x14
b.s err_fatal_put_log
TRONCHIP.SET.RESET OFF
d.l
print "System Reset"
do setupETM
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -