rtl00TstMinAmebaV35a/flasher/gdb_rdflash.jlink

17 lines
489 B
Text
Raw Permalink Normal View History

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