blob: 4ebb4a0505b5340261502789e73620dd15a68515 [file] [log] [blame]
# Copyright (c) 2021 Tokita, Hiroshi <tokita.hiroshi@gmail.com>
# SPDX-License-Identifier: Apache-2.0
interface ftdi
ftdi_device_desc "Dual RS232"
#ftdi_device_desc "Sipeed-Debug"
#ftdi_device_desc "JTAG Debugger"
ftdi_vid_pid 0x0403 0x6010
#ftdi_channel 0
ftdi_layout_init 0x0008 0x001b
ftdi_layout_signal nSRST -oe 0x0020 -data 0x0020
adapter_khz 2000
transport select jtag
proc gd32vf103-pre-load {} {
halt
}
proc gd32vf103-load {file} {
flash protect 0 0 last off
flash write_image erase $file
}
proc gd32vf103-post-verify {} {
mww 0xe004200c 0x4b5a6978
mww 0xe0042008 0x01
resume
}