openwch / ch32v003

CH32V003 is an ultra-cheap RISC-V MCU with 2KB SRAM, 16KB flash, and up to 18 GPIOs that sells for under $0.10
386 stars 56 forks source link

slow OpenOCD verification #28

Closed mrx23dot closed 1 week ago

mrx23dot commented 1 year ago

Verification takes 15seconds, programming takes <1seconds

"D:\Progs\MounRiver_Studio\toolchain\OpenOCD\bin\openocd.exe" -f "D:\Progs\MounRiver_Studio\toolchain\OpenOCD\bin\wch-riscv.cfg" -c "program proj.elf verify; reset; shutdown;"

Open On-Chip Debugger 0.11.0+dev-02415-gfad123a16-dirty (2023-07-03-15:11)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'sdi'
Warn : Transport "sdi" was already selected
Ready for Remote Connections
Info : WCH-LinkE  mode:RV version 2.10
Info : wlink_init ok
Info : clock speed 6000 kHz
Info : [wch_riscv.cpu.0] datacount=2 progbufsize=8
Info : [wch_riscv.cpu.0] Examined RISC-V core; found 1 harts
Info : [wch_riscv.cpu.0]  XLEN=32, misa=0x40800014
[wch_riscv.cpu.0] Target successfully examined.
Info : starting gdb server for wch_riscv.cpu.0 on 3333
Info : Listening on port 3333 for gdb connections
** Programming Started **
Info : device id = 0xfd62abcd
** Programming Finished **
** Verify Started **
** Verified OK **
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections

without verify;it finishes in <1seconds

why is Verification so slow? Please make it fast as programming.

version: Open On-Chip Debugger 0.11.0+dev-02415-gfad123a16-dirty (2023-07-03-15:11)

mrx23dot commented 1 week ago

Which version has the fix?