How to test my spi interface?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to test my spi interface?

Jump to solution
8,559 Views
mingmingyuan
Contributor III

board:sambaSD

system:linux 3.0.35

I want to test my spi interface and ensure my spi interface can send and receive data. Can you tell me how to test this?

Labels (2)
0 Kudos
1 Solution
5,207 Views
igorpadykov
NXP Employee
NXP Employee

please read Chapter 21

Enhanced Configurable SPI (ECSPI)

IMX6DQRM

i.MX 6Dual/6Quad Applications Processor Reference Manual.

Yes one can connect MISO to MOSI.

~igor

View solution in original post

6 Replies
5,207 Views
mingmingyuan
Contributor III

dear sir:

whether I need to connect MISO to MOSI for test?

thanks

0 Kudos
5,207 Views
mingmingyuan
Contributor III

dear sir:

I don't know how to set loopback, can you guide me or give me some documents?

thanks

0 Kudos
5,208 Views
igorpadykov
NXP Employee
NXP Employee

please read Chapter 21

Enhanced Configurable SPI (ECSPI)

IMX6DQRM

i.MX 6Dual/6Quad Applications Processor Reference Manual.

Yes one can connect MISO to MOSI.

~igor

5,207 Views
mingmingyuan
Contributor III

​hi sir:

thanks for your help.

can you tell me how to connect hardware?

0 Kudos
5,207 Views
igorpadykov
NXP Employee
NXP Employee

Hi mingming

I think you can set loopback mode:

ECSPIx_TESTREG bit LBC

~igor

0 Kudos
5,207 Views
igorpadykov
NXP Employee
NXP Employee

Hi mingming

one can look at imx-test-x.x.x package (included in ltib), attached

android-imx6-kitkat/0076-ENGR00104947-Add-spi-test.patch at master · rabeeh/android-imx6-kitkat · Gi...

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos