11-03-2008 05:14 PM
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
11-04-2008 04:29 PM
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.
11-05-2008 12:25 AM
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
11-05-2008 04:41 PM
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,
-Kipp11-11-2008 03:17 PM
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
11-13-2008 10:32 AM
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
11-14-2008 03:30 PM
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
11-17-2008 03:45 PM
Thank you. I'll keep testing the watchdog as well to see if I can figure out how to make it work.
-Kipp
11-25-2008 04:10 PM
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!