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

24 lines
429 B
INI
Raw Normal View History

2020-11-29 10:58:55 +00:00
init
2021-11-14 14:06:48 +00:00
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 ""
2020-11-29 10:58:55 +00:00
echo "Reset and halt"
2021-11-14 14:06:48 +00:00
echo ""
2020-11-29 10:58:55 +00:00
reset halt
2021-11-14 14:06:48 +00:00
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