AnsweredAssumed Answered

QSPI sample pgm

Question asked by Letha Jacob on Aug 6, 2009
Latest reply on Aug 6, 2009 by Juraj Vanco

Hi,
     I need to read/write data to external flash using SPI.
For this, I was referring to the sample program given in "\Freescale MQX 3.2\mqx\examples\qspi".
 I find the following definitions there:
-----------------------------------------------
/* The 25LC640 QSPI Serial EEPROM instructions */
#define TEST_ROM_WRITE_STATUS             0x01
#define TEST_ROM_WRITE_DATA               0x02
#define TEST_ROM_READ_DATA                0x03
#define TEST_ROM_RESET_WRITE_ENABLE_LATCH 0x04
#define TEST_ROM_READ_STATUS              0x05
#define TEST_ROM_SET_WRITE_ENABLE_LATCH   0x06
-----------------------------------------------

- Where are these definitions derived from?
- Will these definitions remain the same if I connect a SDRAM card instead of EEPROM?

 

The ctl in use is M52259.

 

Thanks,
Chen

Outcomes