RTL00_WEB/flasher/gdb_rdflash.jlink

17 lines
490 B
Text
Raw Normal View History

2017-04-22 13:54:00 +00:00
# GDB Jlink read fullflash
# Init
source -v flasher/gdb_flasher.jlink
InitJlink
SystemInit
SPI_Init
#FlashInfo
# 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
2017-06-28 04:09:45 +00:00
dump binary memory ./build/bin/fullflash.bin $dumpstartaddr $dumpendaddr
2017-04-22 13:54:00 +00:00
printf "FullFlash saved in ./build/bin/fullflash.bin - OK.\n"
quit