Because of the Thanksgiving holiday in the U.S., TI E2E™ design support forum responses may be delayed the week of November 23.

AM2612: OSPI configuration in Tap DDR Mode

Part Number: AM2612
Other Parts Discussed in Thread: SYSCONFIG

Could you tell me how to configure OSPI in Tap DDR mode?

OSPI_RD_DATA_CAPTURE_REG[DELAY_FLD] is used to delay the timing of data capture during a read operation from OSPI_CLK output by DELAY_FLD × ref_clk cycles,is that correct?

OSPI_RD_DATA_CAPTURE_REG[DDR_READ_DELAY_FLD] is used to delay the timing of data output during a write operation from OSPI_CLK output by DDR_READ_DELAY_FLD × ref_clk cycles,is that correct?

OSPI_RD_DATA_CAPTURE_REG[DDR_READ_DELAY_FLD] is described in the Register Addendum as follows.

"DDR read delay: Delay the transmitted data by the programmed number of ref_clk cycles.This field is only relevant when DDR Read Command is executed. Otherwise can be ignored."

Is OSPI_RD_DATA_CAPTURE_REG[DDR_READ_DELAY_FLD] used only when a DDR read command is issued, rather than during a write operation?

If so, how is the delay of the timing of data output during a write operation configured?

What is OSPI_RD_DATA_CAPTURE_REG[SAMPLE_EDGE_SEL_FLD] used for?
Does it configure the active edge in Tap SDR mode? Is it used for Tap DDR mode?

Best regards,

Daisuke

 

  • Hi,

    The expert is currently out of office, please expect a response once they return later this week.

    Kind regards,
    AJ Favela 

  • Hi AJ Favela-san,

    Thank you for your support. Our customer is waiting for an answer.

    Please give me an answer as soon as possible. Your prompt reply would be appreciated.

    Best regards,

    Daisuke

  • Hi Daisuke-san,

    Could you tell me how to configure OSPI in Tap DDR mode?
    To use Tap DDR mode in the MCU+ SDK, set the Flash protocol to 8D-8D-8D and leave "Enable PHY Mode" unchecked in the OSPI configuration.
    OSPI_CLK in Tap mode is the input clock divided by "Input Clock Divider" (default 8)



    OSPI_RD_DATA_CAPTURE_REG[DELAY_FLD] is used to delay the timing of data capture during a read operation from OSPI_CLK output by DELAY_FLD × ref_clk cycles,is that correct?
    Yes, that's correct. DELAY_FLD delays the internal read data capture logic by the programmed number of REFCLK cycles (0–15), so data from the flash is sampled later relative to the OSPI_CLK edge that launched it.
    You normally don't need to calculate this value. In the MCU+ SDK, the flash driver calibrates it during Flash_open().


    OSPI_RD_DATA_CAPTURE_REG[DDR_READ_DELAY_FLD] is used to delay the timing of data output during a write operation from OSPI_CLK output by DDR_READ_DELAY_FLD × ref_clk cycles,is that correct?
    Despite the name, DDR_READ_DELAY_FLD does not affect read data capture; that is controlled by DELAY_FLD. It delays the data the AM261x transmits on OSPI_D, relative to OSPI_CLK, by the programmed number of REFCLK cycles in DDR mode. By default the controller already shifts transmitted data by 1 cycle to keep hold time > 0, and this field adds further cycles on top.
    In the MCU+ SDK, this field isn't exposed in SysConfig and the driver doesn't write it, so it stays at its reset value of 0.

    delay_value = 1 x ref_clk + [DDR_READ_DELAY_FLD] x ref_clk

    Is OSPI_RD_DATA_CAPTURE_REG[DDR_READ_DELAY_FLD] used only when a DDR read command is issued, rather than during a write operation?
    If so, how is the delay of the timing of data output during a write operation configured?

    As documented, DDR_READ_DELAY_FLD applies when a DDR read command is executed. It delays the data the controller transmits to the flash during DDR reads.
    Currently there is not documented separate setting for write command, I will check internally with experts and will let you know.

    What is OSPI_RD_DATA_CAPTURE_REG[SAMPLE_EDGE_SEL_FLD] used for?
    Does it configure the active edge in Tap SDR mode? Is it used for Tap DDR mode?

    This field selects whether incoming flash data is sampled on the rising or falling edge of the internal reference clock, not OSPI_CLK:

    0 = falling edge (default)
    1 = rising edge
    It applies to both Tap SDR and Tap DDR.
    In Tap mode, the MCU+ SDK does not set this bit (default 0) and calibrates DELAY_FLD automatically to find the read capture point. It sets the bit to 1 only during PHY mode tuning. We recommend keeping the default of 0 in Tap mode.
    The OSPI_CLK active edge is not set by this field. It is set by the SPI mode (SEL_CLK_POL_FLD / SEL_CLK_PHASE_FLD).




  • Hi Lakshya-san,

    Thank you for your reply.

    As documented, DDR_READ_DELAY_FLD applies when a DDR read command is executed. It delays the data the controller transmits to the flash during DDR reads.

    OSPI_RD_DATA_CAPTURE_REG[DDR_READ_DELAY_FLD] is NOT used to delay the timing of command and data output during a write operation,is that correct?

    Best regards,

    Daisuke

  • Hi Daisuke-san,
    Information about this field is not well documented, I will check internally with the Hardware experts of OSPI and will let you know