This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTOS/AM5728: QSPI flash read

Part Number: AM5728

Tool/software: TI-RTOS

Hi,

I am using IDK-Am5728 board and referring to qspi_diag.c under diag folder in context of no-os environment.

Have some question regarding qspi read in different modes like sing,double and quad.
if(QSPI_RX_LINES_QUAD == hwAttrs->rxLines)
    {
        S25FLFlash_QuadModeEnable(flashHandle);
    }
SF25FL_bufferRead(flashHandle, &flashTransaction);

Using above code to read the flash.Now before calling SF25FL_bufferRead() api we are changing the mode to quad for faster read.
Now my question is if my read block is not a multiple of 4 then how the read is performed.


For eg. we have to read 39 bytes then 36 bytes can be read in 9 read commands but how it will read the remaining 3 bytes.


Whether it will again read the 4 bytes 3 actual and 1 junk byte ? or


Will it perform a byte by byte operation for the remaining 3 bytes ?



BR,Abhinav

  • The RTOS team have been notified. They will respond here.
  • Abhinav,

    I think that you are misunderstanding the QSPI IP specification. You need to look at the QSPI electrical signalling information in the AM57xx datasheet and more so the S25FLxx flash datasheet and look at the signalling for Dual and quad mode read and write.

    The SOC just sends the command and address and then the data bits will be read using 1 pin, 2 pin or 4 pins. Since the data is always 8 bit, the data is packed into the register by the QSPI IP to provide the 8 bit data to the CPU. So it doesn`t matter if you are reading a single byte or multiple bytes (even non-multiple of 2 or 4 bytes). There is no padding or junk bits from the data provided from the QSPI LLD driver.

    Link to S25FL datasheet: www.cypress.com/.../download (Refer to 9.4.1 and later for dual and quad mode signalling)

    Regards,
    Rahul

  • Thanks Rahul for your reply. This is the first time working on qspi that's this why type of queries.
    I will go through the required document and comeback in case of any doubts.

    BR,Abhnav
  • No issues Abhinav. Let me know if the flash and the datasheet spec doesn`t clarify your initial questions and I can provide further clarification.

    Please mark the post resolved if you find the information in the spec documents that I have shared.

    Regards,
    Rahul