iMx6 SPI speed issue

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iMx6 SPI speed issue

1,318 Views
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 Kudos
Reply
1 Reply

711 Views
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 Kudos
Reply