Open dcolens opened 5 years ago
Same problem here:
python3 zigate-flasher.py -p /dev/ttyUSBRPI3 -e -w /tmp/ZiGate_v3.1b.bin
Found MAC-address: 00:15:8d:00:01:c6:1b:bb
writing new flash from /tmp/ZiGate_v3.1b.bin
Traceback (most recent call last):
File "zigate-flasher.py", line 349, in
Looks like it is related to the use of Erase option
@tjikkun do you have any idea on how to fix this issue ? Basically I'm not able to Erase EEPROM nor PDM
@doudz wrote this part (erase option). I haven't played with Zigate for a while now so have not really tested that part myself. From what I remember this was not a documented feature of the bootloader. If I recall correctly JennicModuleProgrammer uses a boot image that it boots from, which then erases the EEPROM from within that boot.
Hello. I am struggleling with my ZiGate update witch lead me to zigate-flasher. As far as I understand, both JennicModuleProgrammer and zigate-flasher erase the FLASH memory with command 0x07 before writing the new firmware. zigate-flasher implements an undocumented (and apparently not functional) command 0x36 to erase EEPROM. Dont know what we are supposed to achieve with that.
My understand is that the command 0x07 is an Erase in preparation of the flash ( this is done by JeenicModuleProgrammer as well as the zigate-flasher), the 0x37 is done after the flash to Erase the EEPROM
Yes, I think this is the idea. Unfortunately, erasing the EEPROM doesn't work. I needed it and I managed to run the windows utility under wine to achieve that. I have no access to the sources nor to debuging tools so I don't know how it's done.
2 years ago I started to port NXP programmer to Python3, it's not working but it can help https://github.com/doudz/nxp_flashprogrammer
Thanks for creating and publishing this project, I tried using it to flash multiple FW to a zigate and am getting the following error:
I don't get this error when using
JennicModuleProgrammer
.