don't try to reset flash unconditionally
authornotaz <notasas@gmail.com>
Mon, 21 Dec 2020 16:52:28 +0000 (18:52 +0200)
committernotaz <notasas@gmail.com>
Mon, 21 Dec 2020 16:52:28 +0000 (18:52 +0200)
because we can read/write SRAM now

flashkit.c

index 023d2d2..a2ebdb8 100644 (file)
@@ -819,7 +819,9 @@ int main(int argc, char *argv[])
        printf("flashkit id: %02x\n", id[0]);
 
        set_delay(fd, 1);
-       io->write_bus(fd, 0, 0xf0); // flash reset
+
+       if (do_info || size_e || f_w)
+               io->write_bus(fd, 0, 0xf0); // flash reset
 
        if (do_info || size_e)
                read_info(fd);