S08PT/PA Watchdog seems be not working/Delta

cancel
Showing results for 
Search instead for 
Did you mean: 

S08PT/PA Watchdog seems be not working/Delta

Jump to solution
1,116 Views
LaMoris
NXP Employee
NXP Employee

Dear Ben Wang,

 

My customer Delta has a problem to use S08PA16 watchdog.

 

I write a CW V10.6 PE test program with Init_WDOG component on S08PT60 tower board. The watchdog seems be not working.

The CW V10.6 debugger even can't work if WDOG_CS1[DBG] is enabled.

 

I also configure the similar PE code on other platforms S08GB60 and S08LL16, All they can trigger reset periodically.

Can you help to verify my S08PT60 test code in attachment?

Thank you very much.

 

MCU: MC9S08PA16AVWJ

Application: Offline UPS

GIBC:1-1W7Z78L

LTR: $336K

 

B.R.

Moris Hsu MCU FAE

Original Attachment has been moved to: xPT60_Watchdog_Moris.zip

Labels (1)
Tags (3)
0 Kudos
1 Solution
735 Views
LaMoris
NXP Employee
NXP Employee

Hello Ben,

I've found the root cause of watchdog does not work in PE project.

There is clear watchdog counter in Cpu_Delay100US().

pastedImage_0.png

To use Cpu_Delay100US(), the watchdog counter stays at the same value.

pastedImage_1.png

Stop to use Cpu_Delay100US(), the watchdog counter continues to trigger reset.

pastedImage_2.png

Thanks for your help.

B.R.

Moris Hsu

View solution in original post

0 Kudos
4 Replies
736 Views
LaMoris
NXP Employee
NXP Employee

Hello Ben,

I've found the root cause of watchdog does not work in PE project.

There is clear watchdog counter in Cpu_Delay100US().

pastedImage_0.png

To use Cpu_Delay100US(), the watchdog counter stays at the same value.

pastedImage_1.png

Stop to use Cpu_Delay100US(), the watchdog counter continues to trigger reset.

pastedImage_2.png

Thanks for your help.

B.R.

Moris Hsu

0 Kudos
736 Views
wangben85
NXP Employee
NXP Employee

Hi,Moris

         I also generate one PT60 wdog project at my side.From my test result, the wdog reset could work correctly. You can get my code in attachment.It is based on PT60 EVB board.

Some notes I want to emphasize about PT60 wdog:

1)The timing restriction is critical for Refreshing/Unlocking/Configuring the Watchdog.So please do not use single-step debugging when configure the wdog register.

pastedImage_0.png

pastedImage_1.png

2)The new configuration takes effect only after all registers except WDOG_CNTH:L are written once after reset.

 

pastedImage_2.png

0 Kudos
736 Views
LaMoris
NXP Employee
NXP Employee

Hello Ben,

Thanks for your feedback. But I can't connect my S08PT60 tower board anymore after loaded your code first time.

So that I can't investigate where's the S/W bug between PE and non-PE projects.

Did you evaluate my project in attachment?

I put my modified PE project in attachment. I put your test code in that project.

I will try to find another one S08PT tower board to evaluate.

Thanks.

B.R.

Moris Hsu

0 Kudos
736 Views
wangben85
NXP Employee
NXP Employee

Hi,Moris

      Why can not connect board any more? Since I have no PT60 Tower in hand,so I use PT60 EVB for my test. And I think the code is simple and not related to HW.

I guess when you download code to flash with CW, you may encoutner below popup window, then you have to power-off first,then power-up again, then press the "OK" button. I think you can connect the board again.Please have a try. You can see my test result that watch dog reset always from the debug console.

Untitled.png

222222222222.png

0 Kudos