Other Parts Discussed in Thread: DLPC2607
Hi Team,
I am trying to read the SPI flash data using the DLPC2607 flash controller and following the steps as discribed in DLP2607 software developer guide.
2.3.2.3.3
Flash Read Command Sequence • I 2C write to configuration registers: “flash start address (address 0x79)”, flash ADDR BYTES (address: 0x74), “flash opcode (address 0x78)”, “flash dummy bytes (address 0x75)”, “flash read data byte quantity (address 0x77)”, “flash write data byte quantity (address 0x76)” • I 2C write to “flash mode control (address 0x08)” to select to select flash read mode (data = 3) and give control of configuration space to the flash interface • I 2C read of the flash read data register (address 0x07) (I2C read returns contents of 32 bits flash data per address) • Repeat I 2C reads until the pre-defined byte count is reached. If more I 2C reads were performed than defined in the DMA length, then the last data is repeated • I 2C poll of main status register (address 0x03) to check if the flash transactions is complete – No other configuration access shall be performed via I 2C until the DMA completes, or it aborts • I 2C write to “flash mode control (address 0x08)” to place the flash controller back in idle mode (data = 0)
below is the python code i have written for this