IMX6UL ECSPI only sends 8 bits

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

IMX6UL ECSPI only sends 8 bits

ソリューションへジャンプ
1,237件の閲覧回数
justinwave
Contributor I

I am using a custom board modeled off the IMX6UL evk board and am using the 4.9.11 fsl release kernel. I have a device attached to ECSPI 1. The device registers and I am able to open the device from a user application. However, when I attempt to read or write to the device, I only see 8 bits are transfered, not the 32 bits that the device is expecting. So, for each read and write I perform, only the first byte of the message is actually sent. The clock and the chip select appear to be correct while the 8 bits are transferred.

Do I need to set the ECSPI1_CONREG[20:31] burst length to 32 bits in a word? And if so, do you have any references or examples on how to do this? Or any other ideas that may be causing this?

Thank you

ラベル(2)
0 件の賞賛
返信
1 解決策
875件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi justinwave

one can check patch and community activities on

spi-imx: imx6q add single burst transfer support - Patchwork 

https://community.nxp.com/thread/309866 

If you want the SS always be asserted during a transfer, you should configure the cs pin as gpio in the dts.
For example:
MX6SL_PAD_ECSPI1_SS0__GPIO4_IO11        0x80000000

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

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
876件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi justinwave

one can check patch and community activities on

spi-imx: imx6q add single burst transfer support - Patchwork 

https://community.nxp.com/thread/309866 

If you want the SS always be asserted during a transfer, you should configure the cs pin as gpio in the dts.
For example:
MX6SL_PAD_ECSPI1_SS0__GPIO4_IO11        0x80000000

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

0 件の賞賛
返信