bl_iot_sdk/tools/flash_tool/openocd/image-loader.cfg
2020-10-26 20:35:25 +08:00

23 lines
422 B
INI

# image loader
proc install_bin {} {
# mww 0x21000000 0x55aaaa55
# sleep 1000
init
reset init
#reg pc 0x22010000
#eflash_loader_openocd.bin no bootheader
load_image bl602/eflash_loader/eflash_loader_openocd.bin 0x22010000 bin
sleep 500
reg pc 0x22010000
reg mstatus 0x80000000
sleep 500
resume
shutdown
}
echo "Ready for Remote Connections"
#init
install_bin