Download and install
en.stsw-link004.zip
Download and extract
openocd-v0.12.0-i686-w64-mingw32.zip
Download
firmware and place inside openocd\bin folder
Back-up:
openocd.exe -f interface/stlink-v2.cfg -f target/gd32e23x.cfg -c init -c "reset halt" -c "flash read_bank 0 ZY-M100_L.bin" -c "reset" -c shutdown
Flash:
openocd -f interface/stlink-v2.cfg -f target/gd32e23x.cfg -c init -c "reset halt" -c "flash erase_sector 0 0 last" -c "flash write_bank 0 ZY-M100-24GV3_TZE204_ya4ft0w4_increased_report_interval_TD_0_disable.bin" -c "flash verify_bank 0 ZY-M100-24GV3_TZE204_ya4ft0w4_increased_report_interval_TD_0_disable.bin" -c "reset" -c shutdown