cancel
Showing results for 
Search instead for 
Did you mean: 

How to write M95256 flash memory

yangma
Associate

Hello,

       I'm using M95256 IC as the external EEPROM for the controller.  When I test the write flash memory operation, I found that the memory could not write yet, my instrcution order shows below:

       step 1: read status register

       step 2: check WEL bit and excute WREN if it  WEL bit equal to 0 

       step 3: execute write four bytes from address 0

       step 4: read status register and check WIP bit

       step 5: execute read memory when WIP bit equal to 0

the SPI order decoded as belows:

yangma_0-1726627029076.png

       So did I execute right write order, and do you have some advices to check the write operation?

Thanks!

yang.ma

 

 

2 REPLIES 2

Which trace is the chip select? Or Q ?

Show code

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

yangma_0-1726628578853.png

Figure 1: D data decode

yangma_1-1726628876245.png

Figure 2: Q data decode

Yellow: clock

Green: D

Blue:Q

I have check the chip select PIN before, it's keep low level during send the instruction, it  not shows in the scopes.