<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Unable to start WatchDog Timer in HCS08 in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Unable-to-start-WatchDog-Timer-in-HCS08/m-p/146720#M7394</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BR /&gt;I think that you are giving a watch dog timer more value that it deserves. My experience has been they cause more bugs (because if your code does not reset it in time) than they solve. I would never use one myself, as I really do not care the have they system just reset. In many case just resetting is no solution anyway.&lt;BR /&gt;&lt;BR /&gt;Whats more, once it is reset, you have not idea why. At least if it hangs, you can connect with the debugger and maybe find out why (and you notice it).&lt;BR /&gt;&lt;BR /&gt;If you do have a bug, the timer is not going to fix it, it will just hide it.&lt;BR /&gt;&lt;BR /&gt;As for writing code that runs forever, it's done all the time.&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Jun 2008 20:26:36 GMT</pubDate>
    <dc:creator>JimDon</dc:creator>
    <dc:date>2008-06-04T20:26:36Z</dc:date>
    <item>
      <title>Unable to start WatchDog Timer in HCS08</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Unable-to-start-WatchDog-Timer-in-HCS08/m-p/146715#M7389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN style="font-family: Verdana; font-size: 2;"&gt;&lt;SPAN&gt;We are working on freescale SRB boards, which contain Microcontroller MC13213 (RF + MCU (HCS08 series) in single chip). We are using GenericApp of freescale's beekit version 1.0.3 for End Device. In this we are unable to start watchdog timer.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Our program also goes in deep sleep i.e. STOP 3 mode and be there for long duration.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We also set SIMOPT= 0xF3; Cop enable, long timeout, STOP mode enabled, background debug enable during initialization.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Afterwards we write some value in this register so that watchdog timer gets reset. But our device gets reset instead of watchdog timer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please help me out from this problem&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ashish&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2008 18:44:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Unable-to-start-WatchDog-Timer-in-HCS08/m-p/146715#M7389</guid>
      <dc:creator>AshishM</dc:creator>
      <dc:date>2008-04-14T18:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to start WatchDog Timer in HCS08</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Unable-to-start-WatchDog-Timer-in-HCS08/m-p/146716#M7390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Ashish M,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;First of all you should go download the latest version of beekit, as the current Beestack is now version 1.0.5 and not 1.0.3&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;the SIMOPT is write-once register and it is already initialized in crt0.c, so you need to modify the code in this file.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Br,&lt;/DIV&gt;&lt;DIV&gt;Mads&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2008 22:36:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Unable-to-start-WatchDog-Timer-in-HCS08/m-p/146716#M7390</guid>
      <dc:creator>Mads</dc:creator>
      <dc:date>2008-04-14T22:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to start WatchDog Timer in HCS08</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Unable-to-start-WatchDog-Timer-in-HCS08/m-p/146717#M7391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;&lt;FONT face="Verdana"&gt;&lt;FONT size="2"&gt;Mads,&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;FONT face="Verdana"&gt;&lt;FONT size="2"&gt;We downloaded version 1.0.5 and test it, this version has some problem related to network formation and hence we didn’t test watchdog on it.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;FONT face="Verdana" size="2"&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;FONT face="Verdana" size="2"&gt;Yes SIMOPT is write-once register, we changed its value in crt0.c file (i.e. SIMOPT = 0xF3; line 312)&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;FONT face="Verdana" size="2"&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;FONT face="Verdana" size="2"&gt;Regards,&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;FONT face="Verdana"&gt;&lt;FONT size="2"&gt;Ashish M&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 13:28:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Unable-to-start-WatchDog-Timer-in-HCS08/m-p/146717#M7391</guid>
      <dc:creator>AshishM</dc:creator>
      <dc:date>2008-04-15T13:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to start WatchDog Timer in HCS08</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Unable-to-start-WatchDog-Timer-in-HCS08/m-p/146718#M7392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;Mads,&lt;/SPAN&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We downloaded version 1.0.5 and put watchdog on it. We change SIMOPT with 0xF3 value in crt0.c file (i.e. SIMOPT = 0xF3; line 312). We also put SIMRS=0x20; (any value) at so many places in code to reset watchdog timer. Also we put (SIMRS=0x20&lt;IMG alt=":smileywink:" class="emoticon emoticon-smileywink" id="smileywink" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif" title="Smiley Wink" /&gt; in for loop of Task_Scheduler function in TS_kernel.c file. But it will reset Freescale's SRB Boards after some time delay (say approximately 1 second)&lt;/SPAN&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt;&lt;FONT color="#000000"&gt;Ashish M&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 16:29:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Unable-to-start-WatchDog-Timer-in-HCS08/m-p/146718#M7392</guid>
      <dc:creator>AshishM</dc:creator>
      <dc:date>2008-04-29T16:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to start WatchDog Timer in HCS08</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Unable-to-start-WatchDog-Timer-in-HCS08/m-p/146719#M7393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;Any solution to this issue yet?&lt;BR /&gt;&lt;BR /&gt;Just had a look into this because I want to enable watchdog for some beestack units.&lt;BR /&gt;For units that are designed to be installed and work for years without human interaction such as power cycling etc I think a watchdog function is common sense to have.&lt;BR /&gt;It's impossible to get code without bugs, but a watchdog will at least reboot if anything else fails.&lt;BR /&gt;I'm a bit surprised beestack do not use this feature by default, but I guess the use of it is different for different applications.&lt;BR /&gt;&lt;BR /&gt;Enabling the watchdog with long timeout period, the watchdog time will still be very short.&lt;BR /&gt;at a BUSCLK of 8MHz the timeout will be about 3ms.&lt;BR /&gt;Maybe this explains the problems you've seen.&lt;BR /&gt;3ms is not a very long time, so it is not unlikely there can be a delay or something longer than that somewhere in the code (yours or freescales).&lt;BR /&gt;&lt;BR /&gt;So, anyone else has implemented a watchdog solution for the beestack running on HCS08?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2008 18:14:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Unable-to-start-WatchDog-Timer-in-HCS08/m-p/146719#M7393</guid>
      <dc:creator>Bosso</dc:creator>
      <dc:date>2008-06-04T18:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to start WatchDog Timer in HCS08</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Unable-to-start-WatchDog-Timer-in-HCS08/m-p/146720#M7394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BR /&gt;I think that you are giving a watch dog timer more value that it deserves. My experience has been they cause more bugs (because if your code does not reset it in time) than they solve. I would never use one myself, as I really do not care the have they system just reset. In many case just resetting is no solution anyway.&lt;BR /&gt;&lt;BR /&gt;Whats more, once it is reset, you have not idea why. At least if it hangs, you can connect with the debugger and maybe find out why (and you notice it).&lt;BR /&gt;&lt;BR /&gt;If you do have a bug, the timer is not going to fix it, it will just hide it.&lt;BR /&gt;&lt;BR /&gt;As for writing code that runs forever, it's done all the time.&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2008 20:26:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Unable-to-start-WatchDog-Timer-in-HCS08/m-p/146720#M7394</guid>
      <dc:creator>JimDon</dc:creator>
      <dc:date>2008-06-04T20:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to start WatchDog Timer in HCS08</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Unable-to-start-WatchDog-Timer-in-HCS08/m-p/146721#M7395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Well, the watchdog will not solve all my problems, but it is at least a last resort if anything else fails. I'll know if the watchdog was the cause of the last reset by reading the reset status register.&lt;BR /&gt;If the code has a good structure, and the watchdog timeout is reasonable (seconds), usually the watchdog reset only need to be put into one place of the code.&lt;BR /&gt;My concern about code that runs forever lies in that the zigbee stack we're using (beestack) is out of our control. We're depending on code written by others...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2008 15:31:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Unable-to-start-WatchDog-Timer-in-HCS08/m-p/146721#M7395</guid>
      <dc:creator>Bosso</dc:creator>
      <dc:date>2008-06-09T15:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to start WatchDog Timer in HCS08</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Unable-to-start-WatchDog-Timer-in-HCS08/m-p/146722#M7396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi, let me tell us how I programed&amp;nbsp;a manual watchdog...&lt;/DIV&gt;&lt;DIV&gt;I'm working with smac for wireless and 3ms is too small as a watchdog timer.&lt;/DIV&gt;&lt;DIV&gt;I programed something like a manual&amp;nbsp;watchdog.&lt;/DIV&gt;&lt;DIV&gt;In my periodic interruptcion service routine I check a flag that is refreshed in the main application.&lt;/DIV&gt;&lt;DIV&gt;If the main program looses, I reset manually with an illegal opcode the uC, after some interruptions... This works fine if only the main program crashes and the timer interrupt still generating...&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 22:38:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Unable-to-start-WatchDog-Timer-in-HCS08/m-p/146722#M7396</guid>
      <dc:creator>tobogan</dc:creator>
      <dc:date>2008-06-23T22:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to start WatchDog Timer in HCS08</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Unable-to-start-WatchDog-Timer-in-HCS08/m-p/146723#M7397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;FONT color="#51626F" face="Arial" size="2"&gt;&lt;SPAN&gt;As I wrote earlier we are working on BeeStack 1.0.5, and in this we are unable to implement watchdog. Also I reset watchdog timer (SIMRS=0x20) after every 10-12 instructions. My current observation is that it requests for match found and after some time device gets reset.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2008 15:45:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Unable-to-start-WatchDog-Timer-in-HCS08/m-p/146723#M7397</guid>
      <dc:creator>AshishM</dc:creator>
      <dc:date>2008-06-25T15:45:26Z</dc:date>
    </item>
  </channel>
</rss>

