Browse Source

Write complete hex file when deivce is erased

master
Olaf Rempel 8 months ago
parent
commit
1d39889818
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      filedata.c

+ 6
- 0
filedata.c View File

@@ -457,6 +457,12 @@ static int hexfile_write(const char *filename, struct databuf *dbuf)
}
}

if (addr_min >= addr_max)
{
addr_min = 0;
addr_max = dbuf->length;
}

addr_min = addr_min & ~0x0F;
addr_max = (addr_max + 0x0F) & ~0x0F;



Loading…
Cancel
Save