From be92e35742a5ead80d2867ed044198d85b88c2eb Mon Sep 17 00:00:00 2001 From: zcsahok Date: Fri, 16 Oct 2015 21:45:43 +0200 Subject: [PATCH] goodfet.c: fix flash start address --- drivers/goodfet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/goodfet.c b/drivers/goodfet.c index 4f5bae0..ea6652d 100644 --- a/drivers/goodfet.c +++ b/drivers/goodfet.c @@ -289,7 +289,7 @@ static int write_byte(sport_t fd, address_t addr, uint8_t value) data[addr & 1] = value; - if (addr < 0x8000) + if (addr < 0x1000) r = write_ram_word(fd, aligned, ((uint16_t)data[0]) | (((uint16_t)data[1]) << 8)); @@ -446,7 +446,7 @@ static int goodfet_writemem(device_t dev_base, address_t addr, } while (len >= 2) { - if (addr < 0x8000) { + if (addr < 0x1000) { if (write_ram_word(gc->serial_fd, addr, ((uint16_t)mem[0]) | (((uint16_t)mem[1]) << 8)) < 0)