From 5a2c48a5be076f5d40c52d9053f113fff8639a72 Mon Sep 17 00:00:00 2001 From: notaz Date: Mon, 21 Dec 2020 18:52:28 +0200 Subject: [PATCH] don't try to reset flash unconditionally because we can read/write SRAM now --- flashkit.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/flashkit.c b/flashkit.c index 023d2d2..a2ebdb8 100644 --- a/flashkit.c +++ b/flashkit.c @@ -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); -- 2.39.5