Watchdog timer for s32k116

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

Watchdog timer for s32k116

ソリューションへジャンプ
3,240件の閲覧回数
Pavani
Contributor I

Hello,

I am working on S32k116 watchdog timer. I need 1second timeout for watchdog. so I am configuring it as shown in the image below. When I am disabling prescaler everything is working fine like LIN communication. But when I am enabling prescaler (which is needed to get 1second timeout) I am getting issue. Issue is-> unable to see LIN signal status once I stop the LIN schedule table and run it again. Please let me know where I am wrong. Also, I am refreshing watchdog in 1ms timer.

wdog.PNG

Thankyou.

  

0 件の賞賛
返信
1 解決策
3,227件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi Pavani,

With LPO 128KHz and the /256 prescaler enabled, one WDOG clock cycle period is 2ms. But you refreshing watchdog in 1ms timer. Please don't refresh the watchdog so frequently.

Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
3,228件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi Pavani,

With LPO 128KHz and the /256 prescaler enabled, one WDOG clock cycle period is 2ms. But you refreshing watchdog in 1ms timer. Please don't refresh the watchdog so frequently.

Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 件の賞賛
返信
3,221件の閲覧回数
Pavani
Contributor I

Hello Robin,

First of all thanks for your quick response. I have applied what you said and now I can see LIN signals updating. I am refreshing watchdog for every 100ms now. But what I have observed is my LIN signals are updating with a delay of 2seconds. After connecting LIN after 2seconds I can see the signals (which shouldn't be like that). And after wakeup also LIN signals are updating with delay. Here my ECU is slave. On master side LIN signals are updated with delay.  Awaiting your response. Thank you.

0 件の賞賛
返信
3,199件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport

There are some LIN examples in SDK. Have you try to test?
I don't understand why your LIN (LPUART) is associated with the watchdog. Have you checked the program logic?

0 件の賞賛
返信