Mods:
- Target distance (DP: 9/109) reporting disabled.
- Settings report interval (DPs: 1, 4, 2, 3, 6, 101, 102, 103, 104) increased to 60s, stock FW 10s.
- Illuminance Lux report interval (DP 104) increased to 10s, stock FW 500ms
Suppoted models:
- ZY-M100_L (_TZE204_ztc6ggyl)
- ZY-M100-S_1 (_TZE204_sxm7l9xa) (_TZE204_e5m9c5hl)
- ZY-M100-S_2 (_TZE204_qasjif9e)
- ZY-M100-24G (_TZE204_ijxvkhd0)
- ZY-M100-24GV2 (_TZE204_7gclukjs)
Models with secured chip (not supported):
- WZ-M100 _TZE204_laokfqwu
Connect to JLink
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
Connect to ST-Link V2 clone
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.
Backup original firmware using OpenOCD
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
- ST-LINK, ST-LINK/V2, ST-LINK/V2-1, STLINK-V3 USB driver signed for Windows7, Windows8, Windows10
- OpenOCD
- Microwave motion sensor module JYSJ_5807_A01
- TuyaMCU GD32E230F8P6TR
- Zigbee module ZS3L
- Адаптеры JTAG с поддержкой SWD
- SWJ adapters