cancel
Showing results for 
Search instead for 
Did you mean: 

M95020 not writing some bytes

paellas-reruns
Associate

I am trying to use the M95020 (M95020-WMN6TP to be exact) to replace older 2K SPI EEPROMs. Comparing everything in the data sheets seems to imply it should be a good replacement, with most tolerances higher than the old EEPROM.

Yet for some reason, some addresses fail to write. It seems like the issue is consistent, like address 0x04 and 0x06 do not write. When reading those addresses back they are still in whatever state they were before, whether they're read by the SPI device or even with an external programmer.

Everything is 5V in circuit and I believe the clock is only 100kHz. I've looked at signals closely with a scope, tweaked capacitor values, and compared timings to the data sheet, but I can't find anything to cause this. All the signals look clean, good rise and fall times, and no noticeable noise. I even tried multiple chips from two different suppliers to rule out bad parts. Someone else tried with the same setup and encountered the issue as well. Hold and Write Protect are pulled up with a 10k resistor to VCC.

Here is address 0x04, which fails to write:

tek00000.png

Here is address 0x06, which also fails to write;

tek00001.png

Here is address 0x05 which writes just fine.

tek00003.png

Here is the full event table:

TimeMOSI
1.000000e-0706
2.349700e-0302 00 1F
5.059400e-0306
7.409000e-0302 01 FF
1.011500e-0206
1.246470e-0202 02 FF
1.529390e-0206
1.763990e-0202 04 51
2.033090e-0206
2.267690e-0202 05 00
2.536780e-0206
2.782890e-0202 06 00
3.051620e-0206
3.286220e-0202 07 32
3.561050e-0206
3.796010e-0202 08 FF
4.076830e-0206
4.311420e-0202 03 26
1 REPLY 1
TDK
Guru

Your write signals look fine. Show the corresponding read function immediately following a write and/or corresponding code.

Note that a write will fail if one is already in progress. Given your every-other failure scheme, I bet this is what is occurring. I don't see any checking for the WIP bit.

TDK_0-1696288162103.png

 

If you feel a post has answered your question, please click "Accept as Solution".