LIN Slave Timeout Flag: STO Position is set

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

LIN Slave Timeout Flag: STO Position is set

1,516件の閲覧回数
Ada_Lovelace
Contributor IV

Hi,All

I have use MPC5777C's module ESCI to LIN, when I debug the code , when LIN Interrupt is in, I check if have the error flag, then I find that  STO's flag is set.

I don't understand how to solve the prolem, could you help me to know,how to check the problem?

 

0 件の賞賛
返信
1 返信

1,499件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

as RM states, "The STO interrupt flag in the Interrupt Flag and Status Register 2 (eSCI_IFSR2) will be
set, if an LIN RX frame was not fully received in the amount of time specified in the timeout value field TO in the LIN Transmit Register (eSCI_LTR)."

So set TO field of 3rd and 4th word written to LTR accordingly (see LTR register description), for recommended TO value refer to chapter 49.5.6.5.5 Slave-Not-Responding-Error Detection of the RM. For tests you can set TO to max value, i think.
Before sending another frame STO should be cleared.

BR, Petr

0 件の賞賛
返信