I read SPI_FlashReadback sample and Power On Self Test sample ,
I want to use Quad I/O or Dual I/O to read SPI flash data, From SPI sample of Power On Self Test sample ,
they use quad I/O and dual I/O cmd is 0x3B and 0x6B.
I've change CMD_DUAL_MODE_READ to 0xBB, from W25Q128 document , 0xBB is like 0x3B but use DUAL I/O. But I can't read normal data.
Could you give me a example to use Dual I/O and Quad I/O command to speed up read flash data?
//PrologueBuffer[0] = CMD_DUAL_MODE_READ; PrologueBuffer[0] = 0xBB; PrologueBuffer[1] = (uint8_t)(Address >> 16); PrologueBuffer[2] = (uint8_t)(Address >> 8); PrologueBuffer[3] = (uint8_t)Address; PrologueBuffer[4] = 0XF0; /* one "dummy" slot required */ xfr.pPrologue = PrologueBuffer; xfr.PrologueBytes = 5; xfr.pTransmitter = NULL; xfr.TransmitterBytes = 0; xfr.pReceiver = NULL; xfr.ReceiverBytes = 0;
Hi,Please find the attached simple C bare-metal code for SPI Flash read in Quad mode that can be directly run on ADSP-SC589 EZ-Kit. You can understand the working of the code from the comments embedded…
Hi,Please find the attached simple C bare-metal code for SPI Flash read in Quad mode that can be directly run on ADSP-SC589 EZ-Kit. You can understand the working of the code from the comments embedded within.Hope this helps.Regards,Nishanthi.V
0755.SPI_Quad_flash.zip
I am putting my question here since it is the closest title to my question.
I have written a set of drivers for the traditional mode of SPI and have been trying to adapt them to work in the quad mode on SPI2. I get all the data and clocks going out right, but I can't figure out how to turn the buffers around to receive the data while still driving the clock. The device is getting the command correctly and it is trying to assert the response, but both sides are driving as I can confirm from scope.
The example above seems to use it in the memory-mapped mode; I guess the question is, is it possible to use quad-SPI mode without the complexity of the memory-mapped mode? If so, how do I coax it into being able to drive the clock yet put the half-duplex bus into receive mode?
I want to know this as well.Thanks.
Hi,
Please find the attached Quad SPI code which can do read and write communication with flash for ADSP-SC589 EZKIT.In the attached code by default, memory mapped is disable using the following USE_MEMMODE_TO_READ macro.
Regards,Santha kumari.K
Quad_readwrite.zip
Thanks. Where can I get the SPI Driver for SHARC v1.0.1? This is not in the list of my Available Add-ins. CCES version 2.8.1.
Thanks.
Hello,
To use SPI Driver for SHARC v1.0.1, you need to install latest CCES version 2.9.3 from the below linkdownload.analog.com/.../ADI_CrossCoreEmbeddedStudio-Rel2.9.3.exeThe previously attached example project was created in CCES 2.9.3.
If not possible to use 2.9.3, you may create new project in CCES 2.8.1 , copy the code from attached project and use available add in SPI Driver for SHARC v1.0.0 to run the application.Please do pinmux for SPI 2 in your created project by referring the attached project and let us know if you need any further assistance.