https://github.com/blackmagic-debug/blackmagic/pull/1323 introduce a bug, it will division by zero when f->writesize is zero I observe this bug when trying to debug LPC MCU