mirror of
https://github.com/ADElectronics/RTL00_WEB_WS2812.git
synced 2024-12-05 02:40:29 +00:00
17 lines
505 B
Text
17 lines
505 B
Text
# GDB Jlink read fullflash
|
|
# Init
|
|
source -v tools/flash/gdb_flasher.jlink
|
|
InitJlink
|
|
SystemInit
|
|
SPI_Init
|
|
monitor speed 12000
|
|
#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
|
|
dump binary memory ../fullflash.bin $dumpstartaddr $dumpendaddr
|
|
printf "FullFlash saved in ./build/bin/fullflash.bin - OK.\n"
|
|
quit
|