LabVIEW Embedded

cancel
Showing results for 
Search instead for 
Did you mean: 

Blackfin watchdog not triggering reset when configured with BF Timer Watchdog Control.vi

Hi,

I am trying out the new BF Timer Watchdog Control.vi in LVE Blackfin v8.6, but I can't seem to get the watchdog set up to reset the processor, though it seems straightforward enough. I've attached simple code that reads the current SCK value and computes the desired value for the watchdog count register. It clears any previous timeout, configures the WDT to reset the processor at timeout, sets the count register, then enables the WDT. I would then expect the processor to reset after 1 second since I'm not servicing the WDT in the main program loop...

 

Any ideas what I missed?

 

Thanks!

-Kipp

0 Kudos
Message 1 of 9
(9,346 Views)

Hi Kipp,

 

I looked over your code with the watchdog timer.

 

What does your program do currently? Does it not timeout at all?

 

I look forward to your response.

 

Warm regards,
Karunya R
National Instruments
Applications Engineer
0 Kudos
Message 2 of 9
(9,340 Views)

Karunya,

The program currently does very little other than blink an LED. It does not timeout at all.

 

I would like the program to reset the Blackfin after the 1 second watchdog timeout, but it doesn't. I know the underlying VDK API calls are simple, so I'm not sure why I don't get the desired results, other than I've done something wrong.

 

Thank you,

Kipp 

0 Kudos
Message 3 of 9
(9,335 Views)

One other thought:

"For easier debugging, the watchdog timer does not decrement
(even if enabled) when the processor is in emulation mode."

from ADSP-BF537 Blackfin Processor Hardware Reference page 17-3

 

I had forgotten about this. I'll need to try running the program from Flash, disconnected from the computer to see if the watchdog is working. I'll try that and post the results.

 

Thank you,

-Kipp
0 Kudos
Message 4 of 9
(9,321 Views)
Hi,

I've tried running the code standalone from flash and it still doesn't trigger a watchdog timeout.

 

The attached image of the WDT configuration shows how I'm setting it up. The "WDT Setting" value is 0x0727_0E00, corresponding to a timeout of 1 second. The configuration seems very simple, so I'm unclear what I've missed and why this doesn't work.

 

Are there any working examples of a Blackfin watchdog timer running in Labview?

 

Any help is greatly appreciated!

 

Thank you,

-Kipp

0 Kudos
Message 5 of 9
(9,292 Views)

Kipp,

 

I am going to try to reproduce this issue using the code you provided in your first post.  Can you please provide me the steps you have been following to reproduce his behavior.

 

I have also checked all of our Blackfin examples and there is not one for the watchdog.  If I am able to reproduce your issue I will be working with R&D to ensure 1.) you are writing your code correctly and 2.) determine if what you are experiencing is a bug.

 

 -Mark

Mark
NI App Software R&D
0 Kudos
Message 6 of 9
(9,261 Views)

Kipp,

 

I have been working with your code, but I have not been able to get to the watchdog to reset the board.  One of my colleague is working on an additional issues, and he has also been unable to get the watchdog to work correctly.  I'll keep you updated as I escalate this issue.

 

 

-Mark

Mark
NI App Software R&D
0 Kudos
Message 7 of 9
(9,247 Views)

Thank you. I'll keep testing the watchdog as well to see if I can figure out how to make it work.

 

-Kipp

0 Kudos
Message 8 of 9
(9,227 Views)

Hi Kipp,

 

There is a problem with the BF Timer Watchdog Control.vi and will be posting a workaround for this very very soon. I will keep you updated with the workaround once it is done.

 

Thanks for your patience!

Warm regards,
Karunya R
National Instruments
Applications Engineer
0 Kudos
Message 9 of 9
(9,162 Views)