<?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>MQX Software Solutions中的主题 Re: MQX hangs in _esdhc_status_wait</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-hangs-in-esdhc-status-wait/m-p/372200#M12287</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure what processor you are on but you will likely find there is a Processor Expert driver for the watchdog that integrates with MQX. On a K60 we are using the Processor Expert WatchDog_LDD driver for the EWM peripheral.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Nov 2014 17:31:06 GMT</pubDate>
    <dc:creator>matthewkendall</dc:creator>
    <dc:date>2014-11-18T17:31:06Z</dc:date>
    <item>
      <title>MQX hangs in _esdhc_status_wait</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-hangs-in-esdhc-status-wait/m-p/372196#M12283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;From time to time I noticed, that MQX blocks in the following loop:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;static uint_32 _esdhc_status_wait&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* [IN] Module registry pointer */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SDHC_MemMapPtr esdhc_ptr,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* [IN] Mask of IRQSTAT bits to wait for */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint_32&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mask&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint_32&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; result;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; do&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;result = esdhc_ptr-&amp;gt;IRQSTAT &amp;amp; mask;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; while (0 == result);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Because IQRSTAT == 0 and mask == 2. The problem is, tha all tasks are stopped and no external diagnostic is possible if this comes up.&lt;/P&gt;&lt;P&gt;Is it a SD card or a MQX issue? Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 15:05:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-hangs-in-esdhc-status-wait/m-p/372196#M12283</guid>
      <dc:creator>Fabi</dc:creator>
      <dc:date>2014-09-16T15:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: MQX hangs in _esdhc_status_wait</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-hangs-in-esdhc-status-wait/m-p/372197#M12284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I too have seen it hang on that line when there is a hardware error on the bus (we suspect an EMI-caused glitch). If you look carefully at the eSDHC code you will be horrified at the number of such infinite loops with no timeout or other error recovery mechanism.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 16:48:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-hangs-in-esdhc-status-wait/m-p/372197#M12284</guid>
      <dc:creator>matthewkendall</dc:creator>
      <dc:date>2014-09-16T16:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: MQX hangs in _esdhc_status_wait</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-hangs-in-esdhc-status-wait/m-p/372198#M12285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi F. Bilz,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you test the sdcard example? This is located at&amp;nbsp; the path: Freescale_MQX_4_1/mfs/examples/&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sol &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 17:22:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-hangs-in-esdhc-status-wait/m-p/372198#M12285</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2014-10-02T17:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: MQX hangs in _esdhc_status_wait</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-hangs-in-esdhc-status-wait/m-p/372199#M12286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have activated the HW watchdog as work around. Here's the code snipped:&lt;/P&gt;&lt;P&gt;void init_hw_wdt ( void )&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _int_disable();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Write sequence within 20 clock cycles to unlock register&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WDOG_UNLOCK&amp;nbsp;&amp;nbsp; = 0xC520;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WDOG_UNLOCK&amp;nbsp;&amp;nbsp; = 0xD928;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WDOG_TOVALH&amp;nbsp;&amp;nbsp; = 1000;&amp;nbsp;&amp;nbsp; // about 7 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WDOG_STCTRLH |= WDOG_STCTRLH_WDOGEN_MASK;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WDOG_REFRESH = 0xA602;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WDOG_REFRESH = 0xB480;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _int_enable();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void hw_wdt_reset ( void )&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _int_disable();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WDOG_REFRESH = 0xA602;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WDOG_REFRESH = 0xB480;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _int_enable();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@freescale: Could you integrate controller specific code for the hardware watchdog into future MQX releases?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2014 13:18:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-hangs-in-esdhc-status-wait/m-p/372199#M12286</guid>
      <dc:creator>Fabi</dc:creator>
      <dc:date>2014-11-18T13:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: MQX hangs in _esdhc_status_wait</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-hangs-in-esdhc-status-wait/m-p/372200#M12287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure what processor you are on but you will likely find there is a Processor Expert driver for the watchdog that integrates with MQX. On a K60 we are using the Processor Expert WatchDog_LDD driver for the EWM peripheral.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2014 17:31:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-hangs-in-esdhc-status-wait/m-p/372200#M12287</guid>
      <dc:creator>matthewkendall</dc:creator>
      <dc:date>2014-11-18T17:31:06Z</dc:date>
    </item>
  </channel>
</rss>

