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.

McSPI transmission sequence

Other Parts Discussed in Thread: SYSCONFIG, DM385

Hi, I am designing a SPI Driver with DM8168 SoC mcSPI Hardware. 


Seems that I have been able to reset and configure the SPI HW successfully:

MCSPI_SYSCONFIG Register
0x00000015

MCSPI_SYSSTATUS Register
0x00000001

MCSPI_IRQSTATUS Register
0x00000000

MCSPI_IRQENABLE Register
0x00000000

MCSPI_SYST Register
0x00000000

MCSPI_MODULCTRL Register
0x00000000

MCSPI_CH0CONF Register
0x000603C8

MCSPI_CH0STAT Register
0x00000000

MCSPI_CH0CTRL Register
0x00000000
MCSPI_RX0 Register
0x00000000

Now, on TRM sprugx8 the sequence seems to be basically, 

write 1 to MCSPI_CH0CTRL

write 0xData to MCSPI_TX0 Register

write 0 to MCSPI_CH0CTRL

After done that the SPI D0 line behaves weird. The line seems not change at all the beginning, after some time the Signal Analyzer I am using detects some data. 

This data seems not to be exactly the one I sent over TX Register, but seems to be incomplete data or part of it.

If some TI expert can kindly point me out in the right direction, my questions are the following,

Does this Transmission sequence is correct for this SPI HW?

Does this SPI transmission sequence needs some time between Register write/read access? so needed data is actually present on the SPI chip?

I am just testing MOSI, does SPICLK should be connected or CS should
be talking to a valid slave to have activity over MOSI?

Some hints?

Thanks, BR

-Jose L.
  • Hi.

    I am facing the same problem. Have you solved the issue?

    If so, please let me know. I have been stuck here for more than a month..

    Regards,

    Hangil Kang

  • Hello Hangil Kang,

    The correct forum for DM385 (also known as DM813x/TI813x) is the below e2e forum:

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/716.aspx

    Have you checked the McSPI driver user guide?

    http://processors.wiki.ti.com/index.php/TI81XX_PSP_McSPI_Driver_User_Guide

    See also if the below pointers will be in help:

    http://processors.wiki.ti.com/index.php/StarterWare_SPI

    http://processors.wiki.ti.com/index.php/Linux_Core_SPI_User%27s_Guide

    http://www.mistralsolutions.com/product-engineering-services/support-downloads/ -> Diagnostic Software -> CCS_Test_code -> Base_Board -> SPI_Flash

    BR
    Pavel

  • Hi. I am so glad that you made a comment on my reply.

    I did not know the e2e forum was wrong one.

    I asked more specifically in the DM385 forum again.

    Would you like to have a look on that issue please?

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/716/t/386961.aspx

    I am stuck here for more than 5 weeks so far...

    I appreciate for your help.

    Best regards,

    HanGil