Issue with multiple SPI_BURST when i.mx6 configured in SPI SLAVE mode

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

Issue with multiple SPI_BURST when i.mx6 configured in SPI SLAVE mode

533 次查看
694076505
Contributor I

Hi,

 

I am using imx6 as a SPI SLAVE to communicate with external peripheral which is acting as SPI MASTER.

Size of data to be shifted out is 4KB. I am setting burst_length value is 0x1F(32 bits in a word).

My data is being shifted out in multiple SPI Burst, but I am getting a strange result.

My 128*0 + 2, 128*2 + 2, 128*6 + 2..... words are getting replaced with zeros. Rest of the data before and after these words are fine.

eCSPI settings

Burst Len = 0x1F

bpw = 32

CPOL = 0

CPHA = 1

 

When I am setting burst_length value is 0xFFF(A SPI burst contains 2^7 words),  My 128*1 + 1, 128*3 + 1, 128*5 + 1..... words are getting replaced with zeros.

 

Am I missing something here?

Any pointers will be appreciated.

标签 (6)
0 项奖励
1 回复

409 次查看
igorpadykov
NXP Employee
NXP Employee

Hi liu

issue may be caused by ecspi errata described in errata document

Chip Errata for the i.MX 6Dual/6Quad and i.MX 6DualPlus/6QuadPlus - IMX6DQCE

https://www.nxp.com/docs/en/errata/IMX6DQCE.pdf 

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

0 项奖励