<?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>ColdFire/68K Microcontrollers and Processors中的主题 Re: MCF52223. Is a solid watchdog possible on a MCF52223 MCU?</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52223-Is-a-solid-watchdog-possible-on-a-MCF52223-MCU/m-p/187663#M7980</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;Claude_Sylvain wrote:&lt;BR /&gt;...&amp;nbsp; But unfortunatly, there is a case where this trick do not work at all.&amp;nbsp; When a function using critical region (all interrupts disabled), is called; if the MCU get stucked into that critical region , the watchdog system will never be able to do their job (reset the MCU).&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;The highest interrupt level (7) is not maskable, so if you use that, the watchdog interrupt should occur regardless of other interrupts being disabled. There might still be problems if the the bus or the stack pointer get screwed up so badly that the ISR can't run.&lt;BR /&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 09 Feb 2008 03:53:25 GMT</pubDate>
    <dc:creator>bkatt</dc:creator>
    <dc:date>2008-02-09T03:53:25Z</dc:date>
    <item>
      <title>MCF52223. Is a solid watchdog possible on a MCF52223 MCU?</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52223-Is-a-solid-watchdog-possible-on-a-MCF52223-MCU/m-p/187662#M7979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Accordingly to the MCF52223RM.pdf Rev.3 document, section 11.5.4, first paragraph, it seem to be possible to configure de MCU watchdog to generate an hardware reset.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, accordingly to the same document, same section (11.5.4), table11-6, CWRI bit field description, it seem that the only way to use the watchdog to reset the MCU is by configure it to generate an interrupt on watchdog timer time-out, and do a soft reset in the corresponding interrupt service routine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At first glance, I was thinking that configuring the interrupt level and priority of the watchdog interrupt (ICR8 of INTC0) higher that the higher interrupts present on the system will to the trick of getting a watchdog system solid as a rock.&amp;nbsp; But unfortunatly, there is a case where this trick do not work at all.&amp;nbsp; When a function using critical region (all interrupts disabled), is called; if the MCU get stucked into that critical region , the watchdog system will never be able to do their job (reset the MCU).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So now, my question:&amp;nbsp; Am I missing something, or is it possible that the only way to get a solid watchdog system with that processor, is to add an external watchdog circuit?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Claude Sylvain&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Electro-Technica inc.&lt;/SPAN&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>Fri, 08 Feb 2008 00:57:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52223-Is-a-solid-watchdog-possible-on-a-MCF52223-MCU/m-p/187662#M7979</guid>
      <dc:creator>Claude_Sylvain</dc:creator>
      <dc:date>2008-02-08T00:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: MCF52223. Is a solid watchdog possible on a MCF52223 MCU?</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52223-Is-a-solid-watchdog-possible-on-a-MCF52223-MCU/m-p/187663#M7980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;Claude_Sylvain wrote:&lt;BR /&gt;...&amp;nbsp; But unfortunatly, there is a case where this trick do not work at all.&amp;nbsp; When a function using critical region (all interrupts disabled), is called; if the MCU get stucked into that critical region , the watchdog system will never be able to do their job (reset the MCU).&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;The highest interrupt level (7) is not maskable, so if you use that, the watchdog interrupt should occur regardless of other interrupts being disabled. There might still be problems if the the bus or the stack pointer get screwed up so badly that the ISR can't run.&lt;BR /&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Feb 2008 03:53:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52223-Is-a-solid-watchdog-possible-on-a-MCF52223-MCU/m-p/187663#M7980</guid>
      <dc:creator>bkatt</dc:creator>
      <dc:date>2008-02-09T03:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: MCF52223. Is a solid watchdog possible on a MCF52223 MCU?</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52223-Is-a-solid-watchdog-possible-on-a-MCF52223-MCU/m-p/187664#M7981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello bkatt,&lt;BR /&gt;&lt;BR /&gt;You're right, I forgot the level 7 (non-maskable) interrupt.&lt;BR /&gt;&lt;BR /&gt;So, the problem is not as worst as I was especting.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Claude.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Feb 2008 05:55:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52223-Is-a-solid-watchdog-possible-on-a-MCF52223-MCU/m-p/187664#M7981</guid>
      <dc:creator>Claude_Sylvain</dc:creator>
      <dc:date>2008-02-09T05:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: MCF52223. Is a solid watchdog possible on a MCF52223 MCU?</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52223-Is-a-solid-watchdog-possible-on-a-MCF52223-MCU/m-p/187665#M7982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi&lt;BR /&gt;&lt;BR /&gt;This subject is also discussed here:&lt;BR /&gt;&lt;A href="http://forums.freescale.com/freescale/board/message?board.id=CFCOMM&amp;amp;message.id=1048&amp;amp;query.id=542946#M1048" target="test_blank"&gt;http://forums.freescale.com/freescale/board/message?board.id=CFCOMM&amp;amp;message.id=1048&amp;amp;query.id=542946#M1048&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums.freescale.com/freescale/board/message?board.id=CFCOMM&amp;amp;message.id=1707&amp;amp;query.id=542996#M1707" target="test_blank"&gt;http://forums.freescale.com/freescale/board/message?board.id=CFCOMM&amp;amp;message.id=1707&amp;amp;query.id=542996#M1707&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Mark&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Feb 2008 08:48:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52223-Is-a-solid-watchdog-possible-on-a-MCF52223-MCU/m-p/187665#M7982</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2008-02-10T08:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: MCF52223. Is a solid watchdog possible on a MCF52223 MCU?</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52223-Is-a-solid-watchdog-possible-on-a-MCF52223-MCU/m-p/187666#M7983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello Mark,&lt;BR /&gt;&lt;BR /&gt;Thank you for the 2 forum articles references.&lt;BR /&gt;&lt;BR /&gt;Just to say that I got to the reset problem on the MCF52223 ColdFire processor after experiencing a total MCU hang, even if the watchdog was enabled.&lt;BR /&gt;The MCU hang after getting in multiple address exception error, due to stack data corruption.&lt;BR /&gt;&lt;BR /&gt;Even after configuring the SWTI interrupt to level 7 (non-maskable), the watchdog have still no effect when the MCU get address exception error.&lt;BR /&gt;&lt;BR /&gt;So, accordingly to the multiple articles found in this forum, and my personnal experiment, it is clear that an external watchdog circuit is necessary when using the MCF52223 in critical process.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Claude.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Feb 2008 11:09:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52223-Is-a-solid-watchdog-possible-on-a-MCF52223-MCU/m-p/187666#M7983</guid>
      <dc:creator>Claude_Sylvain</dc:creator>
      <dc:date>2008-02-10T11:09:08Z</dc:date>
    </item>
  </channel>
</rss>

