iMx6 SPI speed issue

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

iMx6 SPI speed issue

1,319件の閲覧回数
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 返信

712件の閲覧回数
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 件の賞賛
返信