spi4-slave register

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

spi4-slave register

1,871件の閲覧回数
leihe
Contributor I

      I have a problem in spi driver ,platform is imx6D6AVT&&linux3.0.35,I can't get rx Interrupt when using  spi4 as salve mode,the hardware connection is EIM_A25,EIM_D21,EIM_D22,,EIM_D28,so i mustchose SS1 as chip select?  ECSPI4_CONREG:0x00f0e101;   ECSPI4_CONFIGREG:0x00f00000; ECSPIx_INTREG=0xf8,is this config avalible?

08dd1a3f677f3149a01f406b79db84af.png

webwxgetmsgimg.jpg

   I can only get TXFIFO Empty Interrupt,when ECSPIx_INTREG=0xff,so I write 0x1 to ECSPI4_TXDATA  to stop it,if TXDATA buffer is not NULL,how can i start read bytes from master,by setting ECSPIx_CONREG xch bit with 1?

      thank you!!!

ラベル(6)
0 件の賞賛
返信
2 返答(返信)

1,414件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi lei

one can check ERR009535 eCSPI: Burst completion by SS signal in slave mode is not functional

i.MX6DQ Errata

https://www.nxp.com/docs/en/errata/IMX6DQCE.pdf

mainline slave support

[PATCH RFC 5/5] spi: imx: Add support for SPI Slave mode for imx53 and imx6 chips 

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

0 件の賞賛
返信

1,414件の閲覧回数
leihe
Contributor I

thank you,so i can only use mosi miso pclk,is that right? 

0 件の賞賛
返信