writing to flash

Discussion in 'Embedded Systems and Microcontrollers' started by Afeesh, Dec 26, 2010.

  1. Afeesh

    Thread Starter New Member

    Jun 12, 2009
    Hai all,
    I have been trying to program a flash memory from spansion
    for quite sometime,but i am not able to succeed. The timing cycles and
    unlock cycles has been rightly followed. I had followed write buffer
    programming . But i am not able to get the RY/BY# pins and also status
    pins(DQ1-DQ7) right.Can any one help me in this regard

  2. nickagian

    Active Member

    Mar 12, 2010
    Hi Afeesh!

    Do you have an oscilloscope to see if the signals going to the memory are correct? That would be very helpful. If you have one, try to see if the sequence that you follow and the timings of the signals are correct. Many of such problems usually can be found with an oscilloscope. And I'm afraid that nobody can help you unless you give us something, images from the oscilloscope for example. Or perhaps the code that you use would be helpful, too.

  3. TheSilverRing

    New Member

    Dec 27, 2010
    Start simpler than that - Can you read the chip ID correctly?

    Issue a CFI Query command (0x98 to address 0x55 of the flash), start reading the CFI Query Space - are the 3 bytes starting at 0x20 "QRY"?

    Is it 8 or 16 bits wide? You need to use the correct addresses according to the width, I assume byte wide above.

    More information about your setup would of course be helpful.