AnsweredAssumed Answered

21469 EZ-Board - Numonyx M29W320EB

Question asked by jhenders on Sep 12, 2011
Latest reply on Sep 14, 2011 by Mitesh

Greetings,

 

I've successfully tested the provided drivers to write and read a byte to the parallel flash on the 21469 EZ-Board. Here is the datasheet I've been using for this flash: http://media.digikey.com/pdf/Data%20Sheets/Numonyx,Intel/M29W320EB,ET.pdf

 

I've been trying to extend these drivers to implement the "Fast Program" (Quadruple byte Program) command but have been unsuccessful. Below is a rough code example of what I'm doing. When I go to read from the device for verification the result is always 0xFF.

 

ERROR_CODE m29w320_Write4Bytes(unsigned short *pusData,
                         unsigned long ulStartAddress,
                         unsigned int uiCount )
{
    ERROR_CODE Result = NO_ERR;
    unsigned int i = 0;
    unsigned short *pusCurrentData = pusData;
    unsigned long ulCurrentAddress = ulStartAddress;
    unsigned long ulFlashStartAddress;

 

    {
        /* get flash start address from absolute address */
        ulFlashStartAddress = GetFlashStartAddress(ulCurrentAddress);

 

        {
            // unlock flash
            WriteFlash( ulFlashStartAddress + 0x0aaa, 0x55 );
           
            // program our actual value now
            WriteFlash( ulCurrentAddress++, *pusCurrentData++ );
            WriteFlash( ulCurrentAddress++, *pusCurrentData++ );
            WriteFlash( ulCurrentAddress++, *pusCurrentData++ );
            WriteFlash( ulCurrentAddress++, *pusCurrentData++ );
        }
    }

 

    return(Result);
}

Outcomes