From d2470e5c78bbc638d92ddfe7ff03010e39ce6d47 Mon Sep 17 00:00:00 2001 From: Skip Hansen Date: Tue, 10 May 2022 17:15:11 -0700 Subject: [PATCH] Fix sector_size for M25P64, ID 0x2017. Should be 512Kbits/64Kbytes not 128Kbytes. --- progalgspiflash.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/progalgspiflash.cpp b/progalgspiflash.cpp index 32a746f..fbe49e6 100644 --- a/progalgspiflash.cpp +++ b/progalgspiflash.cpp @@ -413,7 +413,7 @@ int ProgAlgSPIFlash::spi_flashinfo_m25p_mx25l(unsigned char *buf, int is_mx25l) break; case 0x17: pages = 32768; - sector_size = 131072; /* Bytes = 1 Mi Bit*/ + sector_size = 65536; /* Bytes = 512k Bits*/ break; case 0x18: pages = 65536;