iMx6 SPI speed issue

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

iMx6 SPI speed issue

1,256 次查看
vijeshreddy
Contributor I

Hi,

I am using iMX6 Phycore module, I have an SPI interface between imx6 and FPGA. I am able to communicate with FPGA and read the data.

I have written SPI driver in user space, spi is operated at 10Mhz.

I read 50,000 bits from FPGA, as per 10Mhz SPI speed it should take around 5msec time to read 50000 bits, but it is taking around 80msec. This delay is not acceptable for my application.

Is this delay because of the spi driver written in user space and not in kernel space? I don't have expertise in writing code in kernel space, what are the best methods to improve the SPI speed with driver in user space.

Thanks in advance,

Vijesh.

0 项奖励
回复
1 回复

649 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Vijesh

for increasing spi speed one can try to increase ccm spi clocks,

please check datasheet what max. spi frequency is allowed for used procesor.

Also one can try to use bursts, check register ECSPIx_CONREG field BURST_LENGTH

deescription in reference manual.

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

0 项奖励
回复