<?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: Debug hangs on WDOG_EWM_IRQHandler()  in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Debug-hangs-on-WDOG-EWM-IRQHandler/m-p/704967#M43291</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was afraid you'd disappeared!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am a 'low level' guy, and can't help so much with the 'higher level' stuff.&amp;nbsp; I can only ASSUME that FreeRTOS has a 'free memory check' function.&amp;nbsp; And I certainly can't give any advice on TCP/UDP stack problems, although from your other links it certainly looks like FreeRTOS may indeed 'have a problem' (or at least be 'hard to work with!) in this realm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To look further at this low level, gather a list of PC &amp;amp; BFAR contents at each fault, and use your linker-map to see if you can form a pattern.&amp;nbsp; But, if as before a 'large percentage' seem to access 'beyond the end of RAM' then I think you can expect that ALL 'odd'&amp;nbsp; behavior is due to your heap colliding with (and corrupting) your stack (leading to all manner of 'weird' and 'random' errors), and if THAT isn't fatal then continuing allocation 'off the end'.&amp;nbsp; The trouble with this kind of problem is that even after you FIND the user of dynamically-allocated-memory that gives a fault, you have to work backwards to find the MALLOC for that structure, and there is no 'particular reason' for the one you find to be the MALLOC that 'leaks' on you (never gets returned), and even then you have to find where said 'leak' WOULD be returned to the heap and see why THAT doesn't run...&amp;nbsp; You have indeed fallen into 'one of the most difficult' bugs to sort out...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I have to recommend you move over to the proven uTasker solution environment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Oct 2017 11:59:35 GMT</pubDate>
    <dc:creator>egoodii</dc:creator>
    <dc:date>2017-10-06T11:59:35Z</dc:date>
    <item>
      <title>Debug hangs on WDOG_EWM_IRQHandler()</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Debug-hangs-on-WDOG-EWM-IRQHandler/m-p/704955#M43279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working with MK60DN512VMD10 controller and created a project in KDS using processor expert mode in freertos/ksdk1.3.0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I am debugging the code, after sometime it,&amp;nbsp;halt to WDOG_EWM_IRQHandler() in defaultISR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't understand why this is happening? Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Utsavi Bharuchwala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Sep 2017 10:39:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Debug-hangs-on-WDOG-EWM-IRQHandler/m-p/704955#M43279</guid>
      <dc:creator>utsavikalpesh</dc:creator>
      <dc:date>2017-09-16T10:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: Debug hangs on WDOG_EWM_IRQHandler()</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Debug-hangs-on-WDOG-EWM-IRQHandler/m-p/704956#M43280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is almost certainly caused by an unhandled interrupt being fired. Your debugger thinks that&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;WDOG_EWM_IRQHandler() is being called but actually it's just showing that method name because&amp;nbsp;alphabetically it's the last method which is&amp;nbsp;aliased with DefaultISR.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Check your code to see which interrupts are enabled, then write ISR methods which override the defaults. &amp;nbsp;Systick is probably a good place to start.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Sep 2017 14:46:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Debug-hangs-on-WDOG-EWM-IRQHandler/m-p/704956#M43280</guid>
      <dc:creator>donturner</dc:creator>
      <dc:date>2017-09-16T14:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: Debug hangs on WDOG_EWM_IRQHandler()</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Debug-hangs-on-WDOG-EWM-IRQHandler/m-p/704957#M43281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I doubt also that this has anything to do with the watchdog interrupt - when the watchdog interrupt fires the processor resets unconditionally 256 clock cycles later and the debugger will tend not to be able to show that this interrupt was hit - instead the debugger will show the reset vector.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Sep 2017 14:48:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Debug-hangs-on-WDOG-EWM-IRQHandler/m-p/704957#M43281</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2017-09-17T14:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Debug hangs on WDOG_EWM_IRQHandler()</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Debug-hangs-on-WDOG-EWM-IRQHandler/m-p/704958#M43282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Don Turner,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for quick reply. From the code I can see that below isr are enabled.&lt;/P&gt;&lt;P&gt;ADC, DSPI, EDMA, ENET, GPIO, PDB, PIT, SDHC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Isr&amp;nbsp;Method is already written for this. How to prevent this defaultISR? From debug I am unable to find which ISR is fired. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Utsavi Bharuchwala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2017 04:23:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Debug-hangs-on-WDOG-EWM-IRQHandler/m-p/704958#M43282</guid>
      <dc:creator>utsavikalpesh</dc:creator>
      <dc:date>2017-09-20T04:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Debug hangs on WDOG_EWM_IRQHandler()</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Debug-hangs-on-WDOG-EWM-IRQHandler/m-p/704959#M43283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reply. As you said, it is possible that&amp;nbsp;watchdog interrupt is fired. But from the CPU component I can see that Watchdog is disabled. Please see the snap below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="watchdog disable.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/31155iE24F06A00E00BA33/image-size/large?v=v2&amp;amp;px=999" role="button" title="watchdog disable.png" alt="watchdog disable.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can watchdog interrupt triggered?? End though it is triggering then how can I prevent that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no problem in our code at startup but,whenever our Ethernet task(TCP communication) start and after apprx 10min later task hang on DefaultISR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Utsavi Bharuchwala&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2017 04:35:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Debug-hangs-on-WDOG-EWM-IRQHandler/m-p/704959#M43283</guid>
      <dc:creator>utsavikalpesh</dc:creator>
      <dc:date>2017-09-20T04:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: Debug hangs on WDOG_EWM_IRQHandler()</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Debug-hangs-on-WDOG-EWM-IRQHandler/m-p/704960#M43284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could temporarily add a handler for every possible interrupt source so that it is clear which one fired.&lt;/P&gt;&lt;P&gt;It may be that there was not an interrupt though and you hits this line due to runaways code (eg. a pointer being corrupted and a jump being made to the handler itself) which will require standard debugging techniques (trace may help if available).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In case you need solid TCP/IP stack for your chip you can get it from &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FTWR-K60D100M.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/TWR-K60D100M.html&lt;/A&gt;&lt;SPAN&gt; (it can also be used with FreeRTOS) or if you need to fix the example code quickly there is a professional service available at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fsupport.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/support.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2017 10:13:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Debug-hangs-on-WDOG-EWM-IRQHandler/m-p/704960#M43284</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2017-09-20T10:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Debug hangs on WDOG_EWM_IRQHandler()</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Debug-hangs-on-WDOG-EWM-IRQHandler/m-p/704961#M43285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yet another case where a better default-IRQ-handler would be of MUCH assistance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/448070"&gt;MMFAR &amp;amp;amp; BFAR read&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That routine's output looks like this, and starts with the incurred vector# (I2S0_RX in this case, in K22F):&lt;/P&gt;&lt;P&gt;&amp;nbsp;INFO: [Fault handler, #45]&lt;BR /&gt;R0 = 73&lt;BR /&gt;R1 = 73&lt;BR /&gt;R2 = 73&lt;BR /&gt;R3 = 4006a003&lt;BR /&gt;R12 = 6&lt;BR /&gt;LR = 17d81&lt;BR /&gt;PC = 17db6&lt;BR /&gt;PSR = 81000000&lt;BR /&gt;BFAR = e000ed38&lt;BR /&gt;CFSR = 0&lt;BR /&gt;HFSR = 0&lt;BR /&gt;DFSR = 0&lt;BR /&gt;AFSR = 0&lt;/P&gt;&lt;P&gt;This is the typical result of an unhandled vector --- none of the registers actually mean anything (just the point in time when the vector was taken).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this next example, I turned off write buffering (using my IAR header-names SCB_ACTLR&amp;nbsp; |= SCB_ACTLR_DISDEFWBUF_MASK;&amp;nbsp; //Needed to track down write-faults, normally commented-out!!!):&lt;/P&gt;&lt;P&gt;[Fault handler, #3]&lt;BR /&gt;R0 = 4002f000&lt;BR /&gt;R1 = 4&lt;BR /&gt;R2 = c0&lt;BR /&gt;R3 = 1fff3889&lt;BR /&gt;R12 = 0&lt;BR /&gt;LR = 4687&lt;BR /&gt;PC = 113e4&lt;BR /&gt;PSR = 1000000&lt;BR /&gt;BFAR = 4002f004&lt;BR /&gt;CFSR = 8200&lt;BR /&gt;HFSR = 40000000&lt;BR /&gt;DFSR = 0&lt;BR /&gt;AFSR = 0&lt;/P&gt;&lt;P&gt;In particular, this 'very common hard fault (#3)' shows a write to my I2S0 peripheral w/o having first enabled the clock (powered it up).&amp;nbsp; R0 is the base-address of I2S0, the Bus Fault Address Register shows an indexed-access 4 higher (because I turned off write-buffering, else it wouldn't hold any valid value!), and PC points directly to the 'STR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R1, [R0, #0x4]' instruction involved (again because I turned off write buffering, else PC will have moved-on by several instruction cycles) and LR to the calling-point to said driver.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2017 14:47:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Debug-hangs-on-WDOG-EWM-IRQHandler/m-p/704961#M43285</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2017-09-20T14:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: Debug hangs on WDOG_EWM_IRQHandler()</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Debug-hangs-on-WDOG-EWM-IRQHandler/m-p/704962#M43286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Earl Goodrich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you mean that I have to create DefaultISR handler()? Should I have to write&amp;nbsp;hard_fault_handler_c() in my code (as per suggested in &lt;A href="https://community.nxp.com/thread/448070"&gt;MMFAR &amp;amp;amp; BFAR read&lt;/A&gt;&amp;nbsp;)? Should I need to debug in defaultISR in deep?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should I need to write&amp;nbsp;__get_IPSR() and&amp;nbsp;disable_irq() in my code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am really unable to understand.&amp;nbsp;Please help me understanding this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will it&amp;nbsp;prevent program hang from DefaultISR?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I write something like this in my code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if(NVIC_GetActive(WDOG_EWM_IRQn))&lt;/SPAN&gt; &amp;nbsp;//if Watchdog exception is activate then disable it...&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NVIC_DisableIRQ(WDOG_EWM_IRQn);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Utsavi Bharuchwala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2017 07:44:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Debug-hangs-on-WDOG-EWM-IRQHandler/m-p/704962#M43286</guid>
      <dc:creator>utsavikalpesh</dc:creator>
      <dc:date>2017-09-21T07:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: Debug hangs on WDOG_EWM_IRQHandler()</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Debug-hangs-on-WDOG-EWM-IRQHandler/m-p/704963#M43287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It certainly seems that our first order of business is to figure out which vector# is dropping you into the default-handler (of ALL the named labels that fall into it!).&amp;nbsp; You SHOULD be able to just run your code in your debugger, and when you get to the default handler 'break' and have your debugger just read IPSR for you.&amp;nbsp; Until we know what vector, it is 'pointless' to speculate on a course of action.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggested that you replace the contents of your current DefaultISR with the code I put in that other thread, starting with the assembly-code into MK60D10.s in your setup, instead of the assembly code at that point where all the 'unused vectors' now point to, and let that assembly talk to the vectors.c I attached, and thereby get this critical information direct on your console.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You still seem 'hung up' on this being an actual WDOG event, but as mentioned in the first reply this 'name' you see is surely just a 'convenient handle' the compiler and linker have chosen to show for the DefaultISR, and is MOST LIKELY NOT the hardware causing the exception.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2017 10:52:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Debug-hangs-on-WDOG-EWM-IRQHandler/m-p/704963#M43287</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2017-09-21T10:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Debug hangs on WDOG_EWM_IRQHandler()</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Debug-hangs-on-WDOG-EWM-IRQHandler/m-p/704964#M43288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Earl Goodrich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for making me understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per your suggestions, to write content in DefaultISR function, I search it, but I&amp;nbsp;found it nowhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added hardfault component, and write &lt;SPAN&gt;DefaultISR handler&amp;nbsp;&lt;/SPAN&gt;like this in my event.c file.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void DefaultISR(void)&amp;nbsp;&lt;BR /&gt;{&lt;BR /&gt; volatile uint32_t fault_isr = 0;&lt;BR /&gt; &lt;BR /&gt; fault_isr = __get_IPSR() &amp;amp; 0x1FF;&lt;/P&gt;&lt;P&gt;printf ("[Fault handler, #%u]\n",fault_isr);&lt;/P&gt;&lt;P&gt;HF1_HardFaultHandler();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When my debug stucks, I am able to see that, there are lost of ISR functions in my debug window in thread 1.(Please see image below).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Debug Window.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/32074i2BADE5612FE86D09/image-size/large?v=v2&amp;amp;px=999" role="button" title="Debug Window.png" alt="Debug Window.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more thing, register values like CFSR, HFSR, BFSR etc are coming different every time on different debug.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Registers &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;on 1st debug &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;on 2nd debug &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; on 3rd debug&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;stacked_r0 = &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0x20010000 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0x20006fa8 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0x1a&lt;BR /&gt;stacked_r1 = &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0x0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0x20005cf4 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0x0&lt;BR /&gt;stacked_r2 = &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0x1fff55c8 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0x20005cf4 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0x0&lt;BR /&gt;stacked_r3 = &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0x1fff57a0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0x20005cec &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0xe2090000&lt;BR /&gt;stacked_r12 = &amp;nbsp; &amp;nbsp; &amp;nbsp; 0x14e9f &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0xa5a5a5a5 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0x14e9f &lt;BR /&gt;stacked_lr = &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0xfffffffd &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0xdbc9 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0xdbb1&lt;BR /&gt;stacked_pc = &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0xe23e &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0xce8c &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0xce74 &lt;BR /&gt;stacked_psr = &amp;nbsp; &amp;nbsp; &amp;nbsp; 0x6100000e &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0x1000000 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0x6100005d&lt;BR /&gt;CFSR = &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0x8200 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0x8600 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0x400&lt;BR /&gt;HFSR = &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0x40000000 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0x40000000 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0x40000000&lt;BR /&gt;DFSR = &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0x1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0x1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0x1&lt;BR /&gt;AFSR = &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0x0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0x0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0x0 &lt;BR /&gt;MMAR = &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0x20010000 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0xe2210004 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0xe000ed34&lt;BR /&gt;BFAR = &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0x20010000 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0xe2210004 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0xe000ed38&lt;BR /&gt; &lt;BR /&gt;( From CFSR regiester, I got the fault like,&amp;nbsp;&lt;/P&gt;&lt;P&gt;In 1st debug: &amp;nbsp; BusFault- PRECISERR&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; UsageFault - NOCP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In 2nd Debug: &amp;nbsp;BusFault- PRECISERR,IMPRECISERR&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;UsageFault - NOCP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In 3rd Debug: &amp;nbsp; BusFault- PRECISERR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Description of this registers I got from DUI0553A_cortex_m4_dgug.pdf &amp;nbsp; ) &lt;BR /&gt; &lt;BR /&gt;Though there is dissimilarities in register values, I got&amp;nbsp;same ISR functions is debug window and&amp;nbsp;&lt;STRONG&gt;&amp;nbsp;I got the same value for fault_isr, that is 3.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in my MK60D10.h file,&lt;BR /&gt; /* Device specific interrupts */&lt;BR /&gt; DMA3_IRQn = 3, /**&amp;lt; DMA channel 3 transfer complete */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more thing on debug stucks, I got the popup indicating me "cannot access memory at address 0x20010004" (see&lt;/P&gt;&lt;P&gt;image below). What is this indicating?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Cannot access memory address.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/32309i00897B8FE073FAF8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Cannot access memory address.png" alt="Cannot access memory address.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Is this creating a stuck?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried to disable my dmacontroller component,disabled tasks which are using this dma facilities, but still my code stucks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should I have to look for dmaISR function, or for Isr functions which are indicated in debug window like, uxListremove() or xTaskRemoveFromEventList() or xQueueGenericSenfFromISR etc...?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;How to solve this stucking problem? Which ISR is causing a problem? How to know that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest what do next.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also am I progressing on right direction?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;BR /&gt;Utsavi Bharuchwala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2017 11:39:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Debug-hangs-on-WDOG-EWM-IRQHandler/m-p/704964#M43288</guid>
      <dc:creator>utsavikalpesh</dc:creator>
      <dc:date>2017-09-22T11:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: Debug hangs on WDOG_EWM_IRQHandler()</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Debug-hangs-on-WDOG-EWM-IRQHandler/m-p/704965#M43289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is, unfortunately, a serious point of confusion in the ARM architecture on interrupt/vector numbering.&amp;nbsp; So while NVIC IRQ #3 is that DMA you mention, what IPSR indicates is the true vector number, where the NVIC interrupts start at 16, and the first 16 vectors are 'fixed' ARM-core exceptions.&amp;nbsp; ARM #3 is, as I previously indicated, the Hard Fault, which indicates an invalid bus access.&amp;nbsp; Your debugger seems also to be trying to access an address 'just above' your available RAM addresses, so the debugger interface hits the same 'hard fault' and displays that box.&amp;nbsp; You will have to know more about your debugger to know what other register, watch-window, memory-window, etc. contents are asking to display a value from that invalid address.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now it does seem 'odd' that the registers at time of exception are always different, and not particularly much help.&amp;nbsp; What code routines can you identify at the two different PC-address areas?&amp;nbsp; The first fault seems to be from within an interrupt handler (due to LR contents), but at least that is showing the same 'just past RAM' fault address in BFAR, so I would look into that exact code for a pointer (or stack underflow???) problem, or even 'heap overflow' (and given your previous post on 'RAM allocation trouble' this seems 'most likely'!).&amp;nbsp; Do you have a facility to monitor free-RAM allocation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would also recommend you hit that 'disable write buffer' bit in the system ACTL register in your chip init so we eliminate imprecise-errors and PC-value 'drift' on delayed write-faults.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2017 12:09:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Debug-hangs-on-WDOG-EWM-IRQHandler/m-p/704965#M43289</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2017-09-22T12:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: Debug hangs on WDOG_EWM_IRQHandler()</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Debug-hangs-on-WDOG-EWM-IRQHandler/m-p/704966#M43290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Earl Goodrich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for late reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per your suggestion, I set disable write buffer bit(SCB_ACTLR_DISDEFWBUF_MASK) in ACTLR register.&amp;nbsp;&lt;/P&gt;&lt;P&gt;By doing this my task hangs on defaultISR. How can I identify&amp;nbsp;which&amp;nbsp;task and which&amp;nbsp;variable is generating faulty address? How to know the code placed at different pc address?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I check free RAM allocation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more thing,&lt;/P&gt;&lt;P&gt;I test default lwip_tcpecho_demo_freertos_twrk60d100m. I put it under stress testing at 1000msec but it stucks!!! KSDK demo stucks...!! Thats very strange..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again I go through lwip_udpecho_demo_freertos_twrk60d100m, which is working and running perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To test TCP, I made a task which is only sending data (not receiving any data). This task is working well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am suprise,there is problem in TCP receive portion. From study I come across "&lt;A href="https://community.nxp.com/thread/379344"&gt;KSDK ethernet example results in crash&lt;/A&gt;&amp;nbsp;". The same thing is happening in my case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you tell me how can I use xTimerPendFunctionCallFromISR()?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is clearly indicating that UDP is working forever and TCP stucks after sometime in link "&lt;A class="link-titled" href="https://sourceforge.net/p/freertos/discussion/382005/thread/24ebf7fb/?limit=25" title="https://sourceforge.net/p/freertos/discussion/382005/thread/24ebf7fb/?limit=25"&gt;FreeRTOS Real Time Kernel (RTOS) / Discussion / Open Discussion and Support:TCP/IP stack performance and reliability o…&lt;/A&gt;&amp;nbsp;" &lt;BR /&gt;And as per discussion in this link, #define ENET_RECEIVE_ALL_INTERRUPT 0 already defined in my project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any further solution&amp;nbsp;from your side?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Utsavi Bharuchwala&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2017 07:33:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Debug-hangs-on-WDOG-EWM-IRQHandler/m-p/704966#M43290</guid>
      <dc:creator>utsavikalpesh</dc:creator>
      <dc:date>2017-10-06T07:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Debug hangs on WDOG_EWM_IRQHandler()</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Debug-hangs-on-WDOG-EWM-IRQHandler/m-p/704967#M43291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was afraid you'd disappeared!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am a 'low level' guy, and can't help so much with the 'higher level' stuff.&amp;nbsp; I can only ASSUME that FreeRTOS has a 'free memory check' function.&amp;nbsp; And I certainly can't give any advice on TCP/UDP stack problems, although from your other links it certainly looks like FreeRTOS may indeed 'have a problem' (or at least be 'hard to work with!) in this realm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To look further at this low level, gather a list of PC &amp;amp; BFAR contents at each fault, and use your linker-map to see if you can form a pattern.&amp;nbsp; But, if as before a 'large percentage' seem to access 'beyond the end of RAM' then I think you can expect that ALL 'odd'&amp;nbsp; behavior is due to your heap colliding with (and corrupting) your stack (leading to all manner of 'weird' and 'random' errors), and if THAT isn't fatal then continuing allocation 'off the end'.&amp;nbsp; The trouble with this kind of problem is that even after you FIND the user of dynamically-allocated-memory that gives a fault, you have to work backwards to find the MALLOC for that structure, and there is no 'particular reason' for the one you find to be the MALLOC that 'leaks' on you (never gets returned), and even then you have to find where said 'leak' WOULD be returned to the heap and see why THAT doesn't run...&amp;nbsp; You have indeed fallen into 'one of the most difficult' bugs to sort out...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I have to recommend you move over to the proven uTasker solution environment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2017 11:59:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Debug-hangs-on-WDOG-EWM-IRQHandler/m-p/704967#M43291</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2017-10-06T11:59:35Z</dc:date>
    </item>
  </channel>
</rss>

