Issue with SPI slave driver in S32K148 - MBF flag always set

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

Issue with SPI slave driver in S32K148 - MBF flag always set

1,232件の閲覧回数
sgp_118
Contributor II

Hi All,

I am trying to develop a SPI slave driver for S32K148. In that, as soon as I do slave Init, I see the MBF bit in Status register is always set. I couldn't see any detailed explanation of what this bit means. 

Is there any detailed application note available for SPI master/slave communication?

Also I am looking for reference to develop a SPI slave which doesnt need CS pin.

Any help on this will be highly appreciated.

Regards,

Guru

0 件の賞賛
返信
3 返答(返信)

1,191件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi Guru,

It could be if it S32K148 LPSPI Slave receives SCK and the TX FIFO underflows and the RX FIFO overflows.

 

Regards,

Daniel

0 件の賞賛
返信

1,199件の閲覧回数
sgp_118
Contributor II

Thanks for the reply, Daniel.

Right now we have a trouble in HW at master side, due to which PCS pin always remain low (ie., it nevers goes to Idle High state). And I observe TEF and REF error flags are set in Status register. Can those error conditions be attributed to the fact that PCS remains LOW always?

Regards,

Guru

0 件の賞賛
返信

1,210件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi Guru,

I was able to reproduce this condition when I set the PCS polarity LOW and pulled the PCS pin LOW.

Once the LPSPI module gets enabled, it expects a frame and reports a BUSY state.

Please take a look at the answer here:

https://community.nxp.com/t5/S32K/Communicating-with-SPI-slave-driver-without-using-ChipSelect-pin/t...

 

Thank you,

BR, Daniel