i.MX8MM ECSPI maximum transfer size

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

i.MX8MM ECSPI maximum transfer size

跳至解决方案
1,051 次查看
sreedhar_appala
Contributor IV

Hi,

I am working with i.MX8MM EVK and 4.19-warrior yocto distribution.

We have interfaced a slave through ECSPI2 pins of i.MX8MM EVK.

From the Reference Manual, the FIFO size of Tx and Rx are 64 words each.

Could you please let me know.

What is the maximum SPI transfer size possible without DMA in ECSPI2 of iMX8MM?

What is the maximum SPI transfer size possible with DMA in ECSPI2 of iMX8MM?

Do you have any test code for validating the transfer size?

Thank you, Sreedhar

0 项奖励
1 解答
1,045 次查看
igorpadykov
NXP Employee
NXP Employee

Hi sreedhar_appala

 

unfortunately I am not aware of test codes for validating the transfer size, for

burst size one can look at driver sources:

https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/spi/spi-imx.c?h=imx_4.19.35_1.1.0

also may be useful:

https://community.nxp.com/t5/i-MX-Processors/imx8-ecspi-Master-Mode-with-SS-CTL-Control/m-p/984674

 

Best regards
igor

 

在原帖中查看解决方案

0 项奖励
2 回复数
1,046 次查看
igorpadykov
NXP Employee
NXP Employee

Hi sreedhar_appala

 

unfortunately I am not aware of test codes for validating the transfer size, for

burst size one can look at driver sources:

https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/spi/spi-imx.c?h=imx_4.19.35_1.1.0

also may be useful:

https://community.nxp.com/t5/i-MX-Processors/imx8-ecspi-Master-Mode-with-SS-CTL-Control/m-p/984674

 

Best regards
igor

 

0 项奖励
1,036 次查看
sreedhar_appala
Contributor IV

Hi igor,

Thank you, I have gone through the spi-imx.c and reference manual ecspix_conreg.

I understand the maximum SPI burst can be 4096 bits = 2^12 = 512 bytes. Same was coded in the spi-imx.c file.

Thank you once again.

Regards, Sreedhar

0 项奖励