Hi,
There is an issue in the code writing a ROM.
You can't write twice at the same place on the flash. You need to erase the corresponding erase-block (the flash is divided in 128K erase-blocks) before a rewrite.
See https://github.com/mikeryan/ems-flasher/blob/master/Tech for details (or contact me).
Christophe.