game-and-watch-backup/openocd/flash.cfg

24 lines
429 B
INI

init
halt
echo ""
echo "Dump ITCM area: backups/itcm_backup_${TARGET}.bin ${ITCM_OFFSET} ${ITCM_LENGTH}"
echo ""
dump_image backups/itcm_backup_${TARGET}.bin ${ITCM_OFFSET} ${ITCM_LENGTH}
echo ""
echo "Reset and halt"
echo ""
reset halt
echo ""
echo "Starting to dump the external flash..."
echo ""
dump_image backups/flash_backup_${TARGET}.bin 0x90000000 ${SPIFLASH_SIZE}
echo ""
echo "External flash dumped!"
echo ""
exit