📄 ram_code_save.cmm
字号:
;=================================================================
;
; RAM_CODE_SAVE.CMM
;
; This saves the entire RAM space and the initialized code space
; from sdram for Saber.
; Note code space end address will change from build to build
; It will also save registers for all the modes.
;
; Only for NAND builds
;
;=================================================================
; Save Data RAM. It starts at 0x01000000
; Could change in future
; End address is chosen as 16MB from start 0x02000000
printer.filetype ascii
printer.file c:\temp\data_dump.lst
wp.data.save.binary c:\temp\data_dump.lst (0x01000000)--(0x02000000)
;
; Saving code is commented out. Use it when you suspect there's
; code corruption
;
; Save the code also - need exact end address
; changes from build to build
; this is only used for comparing with actual code
; to make sure code is not corrupted
;
; To see what is the last code address look for APP_RAM in map file
; and see address before the first APP_RAM.
;
;printer.file c:\temp\code_dump.lst
;wp.data.save.binary c:\temp\code_dump.lst (0x0)--(0x00C44814)
;
;
; To load this into T32 simulator do the following -
; data.load.binary data_dump.lst (0x01000000)--(0x02000000)
; d.load.elf <build_path>\buid\ms\*.elf
; Also copy and paste current registers to get stack/local var
;
; Save registers
; boot_trap_frame saves registers at the time of boot abort
; rex_core is a superset of that, registers are saved for err_fatal
; as well as other exceptions
setup.var %Hex.on
setup.var %m.5
printer.file c:\temp\boot_trap_frame.lst
wp.v.v boot_trap_frame
printer.file c:\temp\rex_core.lst
wp.v.v rex_core
;Save Register window
printer.file c:\temp\register.lst
winprint.register
;Dump the register values from various modes
printer.file c:\temp\register_usr.lst
r.s cpsr 0xd0
winprint.register
printer.file c:\temp\register_fiq.lst
r.s cpsr 0xd1
winprint.register
printer.file c:\temp\register_irq.lst
r.s cpsr 0xd2
winprint.register
printer.file c:\temp\register_svc.lst
r.s cpsr 0xd3
winprint.register
printer.file c:\temp\register_abt.lst
r.s cpsr 0xd7
winprint.register
printer.file c:\temp\register_und.lst
r.s cpsr 0xdb
winprint.register
printer.file c:\temp\register_sys.lst
r.s cpsr 0xdf
winprint.register
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -