Add debug line to copying loop.
@@ -186,6 +186,7 @@ void lpc_write(struct lpc_device *dev, const struct sprog_data *d) {
for(j=j; j>=0; j--)
if(chunk_sizes[j]<=i)
break;
+ sprog_info("Copy from 0x%08x to %d (%d bytes)\n", 0x10000400+(chunk_size-i), offset+(chunk_size-i), chunk_sizes[j]);
if(lpc_command(dev, "C %d %u %d\r\n", offset+(chunk_size-i), 0x10000400+(chunk_size-i), chunk_sizes[j]))
status = 0;
}