debugflashedsdram.cmm
来自「QUALCOMM JNAND DRIVER」· CMM 代码 · 共 56 行
CMM
56 行
;****************************************************************************
;** debugFlashedSDRAM.CMM **
;** This script is used to debug a target that has the SDRAM **
;** image programmed into NAND flash. **
;** **
;** 1) load image into NAND flash (NANDPROG or JNAND) **
;** 2) load image into T32: d.load.elf Image.elf /nocode **
;** 3) make sure sys.jtagclock is set to RTCK **
;** Then, each time you want to rerun the code, **
;** 4) do debugFlashedSDRAM **
;** 5) wait until completion of the script **
;** 6) set your favorite breakpoints (each time you run) **
;** Put them in "mybreakpoints.cmm" to have them automatically
;** setup every run through this script.
;** 7) go **
;** **
;** When T32 is restarted, you need to repeat step 2) **
;** **
;** Changes: **
;** 06-07-02 First version **
;** 09-25-02 Various changes **
;****************************************************************************
sys.u
do didwdogreset
r.s pc 0xffff0000
BREAK.RESET
b.s 0x0 /ONCHIP
go
PRINT "Waiting for boot loader to complete"
WAIT !run()
PRINT "Boot loader completed..."
do breakpoints
if OS.FILE("mybreakpoints.cmm")
(
do mybreakpoints
)
ENDDO
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?