eblot / pyspiflash

SPI data flash device drivers (pure Python)
MIT License
39 stars 30 forks source link

added support for Spansion S25FL1-K 64Mb #4

Open 0xd3d0 opened 8 years ago

eblot commented 8 years ago

We do not have a S25FL1-K 64Mb available, but I found a 16Mb version to perform some tests.

eblot commented 8 years ago

Unfortunately, it is a SL25FL016K, which does not seem compliant with S25FL1-K. Spansion SPI data flash series are notoriously ugly as they may identify with same IDs but expose incompatible instruction set, not mentioning their non-linear erase page size...

eblot commented 8 years ago

Beware that the proposed patch is invalid: 0x40<<20 means 64MB. 64Mb = 8MB, 128Mb = 16MB; I'm not sure what you meant here.

0xd3d0 commented 8 years ago

You are right, it should be 0x40<<17 - for 64Mb (8MB)