From 2b1ba7957f21e977c4aaa40e9e3ffc00d3687e94 Mon Sep 17 00:00:00 2001 From: mdpunch Date: Wed, 27 Nov 2019 18:50:25 +0100 Subject: [PATCH] Update progalgspiflash.cpp We are using the new flash memory Macronix MX25L32, and found that the above change allows it to be recognized. Would be nice to have this in the package, thanks. --- progalgspiflash.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/progalgspiflash.cpp b/progalgspiflash.cpp index 32a746f..1f827d2 100644 --- a/progalgspiflash.cpp +++ b/progalgspiflash.cpp @@ -370,6 +370,9 @@ int ProgAlgSPIFlash::spi_flashinfo_m25p_mx25l(unsigned char *buf, int is_mx25l) fbuf[1], fbuf[2]); switch (fbuf[2]) { + case 0x16: // Adding support for new flash Macronix MX25L32 + pages = 16384; + break; case 0x17: pages = 262144; sector_size = 65536;