How to test my spi interface?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to test my spi interface?

ソリューションへジャンプ
8,648件の閲覧回数
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?

ラベル(2)
0 件の賞賛
1 解決策
5,296件の閲覧回数
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

元の投稿で解決策を見る

6 返答(返信)
5,296件の閲覧回数
mingmingyuan
Contributor III

dear sir:

whether I need to connect MISO to MOSI for test?

thanks

0 件の賞賛
5,296件の閲覧回数
mingmingyuan
Contributor III

dear sir:

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

thanks

0 件の賞賛
5,297件の閲覧回数
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,296件の閲覧回数
mingmingyuan
Contributor III

​hi sir:

thanks for your help.

can you tell me how to connect hardware?

0 件の賞賛
5,296件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi mingming

I think you can set loopback mode:

ECSPIx_TESTREG bit LBC

~igor

0 件の賞賛
5,296件の閲覧回数
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 件の賞賛