RTL00ConsoleROM/flasher/gdb_rdflash.jlink

17 lines
473 B
Text
Raw Normal View History

2016-09-26 14:55:41 +00:00
# GDB Jlink read fullflash
# Init
source -v flasher/gdb_flasher.jlink
InitJlink
SystemInit
SPI_Init
FlashImagesInfo
# Read FullFlash
printf "Read FullFlash:\n"
set $dumpstartaddr = $SPI_FLASH_BASE
set $dumpendaddr = $SPI_FLASH_BASE + 0x100000
printf "Start addr of dumping = 0x%08x\n", $dumpstartaddr
printf "End addr of dumping = 0x%08x\n", $dumpendaddr
dump binary memory fullflash.bin $dumpstartaddr $dumpendaddr
printf "FullFlash saved in 'fullflash.bin' - OK.\n"
quit