Question, i.MX6Q ECSPI

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

Question, i.MX6Q ECSPI

跳至解决方案
994 次查看
Aemj
Contributor IV

Dear team,

My customer is facing the issue that ECSPI module of i.MX6Q cannot communicate with a external SPI device on their proto-board.

They use i.MX6Q ECSPI as slave and the external device is the master.

Because the external device is the only SPI device, they do not use SS.

The SS pin of i.MX6 is open.

The customer’s configuration is as below.

ECSPI5_CONREG = 0x0170_D101

ECSPI5_CONFREG = 0x0000_0001

ECSPI5_INTREG = 0x0000_0028

ECSPI5_DMAREG = 0x0000_0000

ECSPI5_STATREG = 0x0000_0003

Could you give me advice on the cause of this issue?

Thanks,

Miyamoto

标签 (2)
0 项奖励
1 解答
642 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Miyamoto

yes SS pin of i.MX6 should be connected to external device

even if the SPI is used for peer-to-peer communication.

Best regards

igor

在原帖中查看解决方案

0 项奖励
3 回复数
642 次查看
igorpadykov
NXP Employee
NXP Employee

Hi AVNET JAPAN FAE

SS should be used in slave mode as describes

sect.21.4.2 Slave Mode  IMX6DQRM :

In this configuration, Chip Select (SS) becomes an input signal, and is used to control

data transfers through the Shift register, as well as to load/store the data FIFO.

Also below one can find slave mode usage examples

i.MX6 ESPI slave mode support patch based on rel_imx_3.0.35_4.1.0

i.MX6 SPI Slave mode

Best regards

igor

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

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

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

0 项奖励
642 次查看
Aemj
Contributor IV

Dear Igor,

Thanks for your prompt reply.

Can I understand that SS pin of i.MX6 should be connected to external device even if the SPI is used for peer-to-peer communication?

BR,

Miyamoto

0 项奖励
643 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Miyamoto

yes SS pin of i.MX6 should be connected to external device

even if the SPI is used for peer-to-peer communication.

Best regards

igor

0 项奖励