bigbigmdm / IMSProg

IMSProg - software for CH341A-based programmers to work with I2C, SPI and MicroWire EEPROM/Flash chips
https://antenna-dvb-t2.ru/IMSProg.php
GNU General Public License v3.0
215 stars 38 forks source link

Differences with AT25F512 and M95F128 #52

Closed bigbigmdm closed 6 months ago

bigbigmdm commented 6 months ago

Description

If you have a desire to help the project, please compare the two pdf documents. I have done this more than ten times. I can't see any difference, but the M95M128 works correctly with my programmer and the 25F512 does not write or erase.

First document - https://www.st.com/resource/en/datasheet/m95128-r.pdf Second document - https://pdf1.alldatasheet.com/datasheet-pdf/download/175067/ATMEL/AT25F512.html

The fact that these chips are of different volumes is understandable. It's just that I have both of them in stock.

bigbigmdm commented 6 months ago

If this problem is solved - I will add a new class of chips 25XX SPI but not NOR FLASH. These chips are often found on video cards.

bigbigmdm commented 6 months ago

I think I found it:

"SECTOR ERASE (SECTOR ERASE): Before a byte can be reprogrammed, the sector which contains the byte must be erased. In order to erase the AT25F512/1024, two sep- arate instructions must be executed. First, the device must be write enabled via the WREN instruction. Then the SECTOR ERASE instruction can be executed."