Mods:
Suppoted models:
Signal | ZY-M100-L | J-Link | GD32 |
---|---|---|---|
VCC | (square pad) 1 | (Vref) 1 | |
GND | 2 | 4 | |
SWDIO | 3 | 7 | 19 |
SWCLK | 4 | 9 | 20 |
JLink.exe -device GD32E230F8 -if SWD -speed 4000 -autoconnect 1
savebin ZY-M100_bkup.bin 0x08000000 0x10000
exit
JLink.exe -device GD32E230F8 -if SWD -speed 4000 -autoconnect 1
loadfile ZY-M100-{your_model_here}-TargetDistance_disable.bin 0x08000000 reset
VerifyBin ZY-M100-{your_model_here}-TargetDistance_disable.bin 0x08000000
exit
JLink.exe -device GD32E230F8 -if SWD -speed 4000 -autoconnect 1
loadfile ZY-M100_bkup.bin 0x08000000 reset
VerifyBin ZY-M100_bkup.bin 0x08000000
exit
Signal | ZY-M100-L | ST-Link V2 | GD32 |
---|---|---|---|
VCC | (square pad) 1 | 2 | |
GND | 2 | 7 | |
SWDIO | 3 | 6 | 19 |
SWCLK | 4 | 4 | 20 |
Be careful check adapter pinout! Some clones have different one.
openocd -f interface/stlink.cfg -f target/gd32e23x.cfg -c init -c "reset halt" -c "flash read_bank 0 ZY-M100_bkup.bin" -c "reset" -c shutdown
openocd -f interface/stlink.cfg -f target/gd32e23x.cfg -c init -c "reset halt" -c "flash erase_sector 0 0 last" -c "flash write_bank 0 ZY-M100-{your_model_here}-TargetDistance_disable.bin" -c "flash verify_bank 0 ZY-M100-{your_model_here}-TargetDistance_disable.bin" -c "reset" -c shutdown
openocd -f interface/stlink.cfg -f target/gd32e23x.cfg -c init -c "reset halt" -c "flash erase_sector 0 0 last" -c "flash write_bank 0 ZY-M100_bkup.bin" -c "flash verify_bank 0 ZY-M100_bkup.bin" -c "reset" -c shutdown