Skip to content

Commit

Permalink
Fix sector_size for M25P64, ID 0x2017.
Browse files Browse the repository at this point in the history
Should be 512Kbits/64Kbytes not 128Kbytes.
  • Loading branch information
skiphansen committed May 11, 2022
1 parent f4bebd0 commit d2470e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion progalgspiflash.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d2470e5

Please sign in to comment.