How to test my spi interface?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to test my spi interface?

跳至解决方案
10,527 次查看
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 解答
7,175 次查看
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 回复数
7,175 次查看
mingmingyuan
Contributor III

dear sir:

whether I need to connect MISO to MOSI for test?

thanks

0 项奖励
回复
7,175 次查看
mingmingyuan
Contributor III

dear sir:

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

thanks

0 项奖励
回复
7,176 次查看
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

7,175 次查看
mingmingyuan
Contributor III

​hi sir:

thanks for your help.

can you tell me how to connect hardware?

0 项奖励
回复
7,175 次查看
igorpadykov
NXP Employee
NXP Employee

Hi mingming

I think you can set loopback mode:

ECSPIx_TESTREG bit LBC

~igor

0 项奖励
回复
7,175 次查看
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 项奖励
回复