<?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: KDS KL46Z application stuck in dispatch.S on startup in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/KDS-KL46Z-application-stuck-in-dispatch-S-on-startup/m-p/394581#M13246</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes that was it, good catch !&lt;/P&gt;&lt;P&gt;Thank you all for the support, especially you Isaac.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Nov 2015 14:39:09 GMT</pubDate>
    <dc:creator>remibeges</dc:creator>
    <dc:date>2015-11-09T14:39:09Z</dc:date>
    <item>
      <title>KDS KL46Z application stuck in dispatch.S on startup</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/KDS-KL46Z-application-stuck-in-dispatch-S-on-startup/m-p/394572#M13237</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'm having an issue with an MQXLite application.&lt;/P&gt;&lt;P&gt;On startup, the program will randomly get stuck in dispatch.S, line 198&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using a standard freedom KL46Z, with updated pe micro debug &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;com.pemicro.debug.gdbjtag.pne_2.2.1.201509111213&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My issue is that program is not responding. If i try to simply pause the debug session (with no breakpoint set), it always throws this message&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Temporary breakpoint 1, main () at ../Sources/main.c:71&lt;/P&gt;&lt;P&gt;71&amp;nbsp; PE_low_level_init();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program received signal SIGINT, Interrupt.&lt;/P&gt;&lt;P&gt;no_one_to_run () at ../MQXLITE/psp/cortex_m/core/M0/dispatch.S:198&lt;/P&gt;&lt;P&gt;198&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; ldr r1, [r0, #KD_READY_Q_LIST]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // get first queue from ready list&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the debugger always points to the line "ldr r1, [r0, &lt;SPAN style="background-color: #f6f6f6;"&gt;#KD_READY_Q_LIST&lt;/SPAN&gt;]&amp;nbsp; in dispatch.S&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;ASM_LABEL(no_one_to_run)&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;&amp;nbsp;&amp;nbsp; // wait for interrupt&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;&amp;nbsp;&amp;nbsp; cpsie i&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;&amp;nbsp;&amp;nbsp; wfi&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;&amp;nbsp;&amp;nbsp; cpsid i&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;&amp;nbsp;&amp;nbsp; // TODO check r0, must be kernel data&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;&amp;nbsp;&amp;nbsp; ldr r1, [r0, #KD_READY_Q_LIST]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // get first queue from ready list&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;&amp;nbsp;&amp;nbsp; b find_noempty_que&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I'm not very familiar with MQXLite yet... Do you understand what's happening here ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the full debugging log (with debugging paused multiple times):&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;GNU gdb (GNU Tools for ARM Embedded Processors) 7.8.0.20150604-cvs&lt;/P&gt;&lt;P&gt;Copyright (C) 2014 Free Software Foundation, Inc.&lt;/P&gt;&lt;P&gt;License GPLv3+: GNU GPL version 3 or later &amp;lt;&lt;A class="jive-link-external-small" href="http://gnu.org/licenses/gpl.html" rel="nofollow"&gt;http://gnu.org/licenses/gpl.html&lt;/A&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;This is free software: you are free to change and redistribute it.&lt;/P&gt;&lt;P&gt;There is NO WARRANTY, to the extent permitted by law.&amp;nbsp; Type "show copying"&lt;/P&gt;&lt;P&gt;and "show warranty" for details.&lt;/P&gt;&lt;P&gt;This GDB was configured as "--host=i686-w64-mingw32 --target=arm-none-eabi".&lt;/P&gt;&lt;P&gt;Type "show configuration" for configuration details.&lt;/P&gt;&lt;P&gt;For bug reporting instructions, please see:&lt;/P&gt;&lt;P&gt;&amp;lt;&lt;A class="jive-link-external-small" href="http://www.gnu.org/software/gdb/bugs/" rel="nofollow"&gt;http://www.gnu.org/software/gdb/bugs/&lt;/A&gt;&amp;gt;.&lt;/P&gt;&lt;P&gt;Find the GDB manual and other documentation resources online at:&lt;/P&gt;&lt;P&gt;&amp;lt;&lt;A class="jive-link-external-small" href="http://www.gnu.org/software/gdb/documentation/" rel="nofollow"&gt;http://www.gnu.org/software/gdb/documentation/&lt;/A&gt;&amp;gt;.&lt;/P&gt;&lt;P&gt;For help, type "help".&lt;/P&gt;&lt;P&gt;Type "apropos word" to search for commands related to "word".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;monitor preserve0 0&lt;/P&gt;&lt;P&gt;monitor selectcore 0&lt;/P&gt;&lt;P&gt;Warning: the current language does not match this frame.&lt;/P&gt;&lt;P&gt;continue&lt;/P&gt;&lt;P&gt;Continuing.&lt;/P&gt;&lt;P&gt;Note: automatically using hardware breakpoints for read-only addresses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temporary breakpoint 1, main () at ../Sources/main.c:71&lt;/P&gt;&lt;P&gt;71&amp;nbsp; PE_low_level_init();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program received signal SIGINT, Interrupt.&lt;/P&gt;&lt;P&gt;no_one_to_run () at ../MQXLITE/psp/cortex_m/core/M0/dispatch.S:198&lt;/P&gt;&lt;P&gt;198&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; ldr r1, [r0, #KD_READY_Q_LIST]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // get first queue from ready list&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program received signal SIGINT, Interrupt.&lt;/P&gt;&lt;P&gt;no_one_to_run () at ../MQXLITE/psp/cortex_m/core/M0/dispatch.S:198&lt;/P&gt;&lt;P&gt;198&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; ldr r1, [r0, #KD_READY_Q_LIST]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // get first queue from ready list&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program received signal SIGINT, Interrupt.&lt;/P&gt;&lt;P&gt;no_one_to_run () at ../MQXLITE/psp/cortex_m/core/M0/dispatch.S:198&lt;/P&gt;&lt;P&gt;198&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; ldr r1, [r0, #KD_READY_Q_LIST]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // get first queue from ready list&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program received signal SIGINT, Interrupt.&lt;/P&gt;&lt;P&gt;no_one_to_run () at ../MQXLITE/psp/cortex_m/core/M0/dispatch.S:198&lt;/P&gt;&lt;P&gt;198&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; ldr r1, [r0, #KD_READY_Q_LIST]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // get first queue from ready list&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Thank you for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2015 15:47:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/KDS-KL46Z-application-stuck-in-dispatch-S-on-startup/m-p/394572#M13237</guid>
      <dc:creator>remibeges</dc:creator>
      <dc:date>2015-09-18T15:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: KDS KL46Z application stuck in dispatch.S on startup</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/KDS-KL46Z-application-stuck-in-dispatch-S-on-startup/m-p/394573#M13238</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;Which IDE do you use ? And when you run one demo code , does it can work well ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 02:05:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/KDS-KL46Z-application-stuck-in-dispatch-S-on-startup/m-p/394573#M13238</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-09-22T02:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: KDS KL46Z application stuck in dispatch.S on startup</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/KDS-KL46Z-application-stuck-in-dispatch-S-on-startup/m-p/394574#M13239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using Kinetis Design Studio 3.0.0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am already running the sensor fusion demo with a few more functions of mine. I am not messing with any MQX tasks in any way but i will try to run the default code. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 07:23:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/KDS-KL46Z-application-stuck-in-dispatch-S-on-startup/m-p/394574#M13239</guid>
      <dc:creator>remibeges</dc:creator>
      <dc:date>2015-09-22T07:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: KDS KL46Z application stuck in dispatch.S on startup</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/KDS-KL46Z-application-stuck-in-dispatch-S-on-startup/m-p/394575#M13240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Remi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please attach your MQX-lite code? I can test it on FRDM-KL46Z and check if there is something wrong on your configuration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Isaac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 23:30:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/KDS-KL46Z-application-stuck-in-dispatch-S-on-startup/m-p/394575#M13240</guid>
      <dc:creator>isaacavila</dc:creator>
      <dc:date>2015-09-22T23:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: KDS KL46Z application stuck in dispatch.S on startup</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/KDS-KL46Z-application-stuck-in-dispatch-S-on-startup/m-p/394576#M13241</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 tried with a default MQX application, I cannot reproduce the issue. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code can be downloaded here &lt;A href="https://github.com/Overdrivr/FRDM-Quadcopter/archive/master.zip" title="https://github.com/Overdrivr/FRDM-Quadcopter/archive/master.zip"&gt;https://github.com/Overdrivr/FRDM-Quadcopter/archive/master.zip&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Most KDS files are gitignore-d, please tell me if some are missing. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2015 12:15:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/KDS-KL46Z-application-stuck-in-dispatch-S-on-startup/m-p/394576#M13241</guid>
      <dc:creator>remibeges</dc:creator>
      <dc:date>2015-09-23T12:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: KDS KL46Z application stuck in dispatch.S on startup</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/KDS-KL46Z-application-stuck-in-dispatch-S-on-startup/m-p/394577#M13242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Remi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am still looking at this issue, have you tried creating a basic MQX-Lite project and then add you source files?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can look at this document that explains how to create a new MQX-Lite project. &lt;A href="https://community.nxp.com/docs/DOC-103429"&gt;How To: Create an MQX RTOS for KSDK project with Processor Expert in Kinetis Design Studio IDE&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this can help&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Isaac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 20:21:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/KDS-KL46Z-application-stuck-in-dispatch-S-on-startup/m-p/394577#M13242</guid>
      <dc:creator>isaacavila</dc:creator>
      <dc:date>2015-09-28T20:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: KDS KL46Z application stuck in dispatch.S on startup</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/KDS-KL46Z-application-stuck-in-dispatch-S-on-startup/m-p/394578#M13243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Remi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are some missing files (Generated code from PEx such as LED_RED.h, GREEN_LED.h and more) that is why I cannot compile the project correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Isaac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Oct 2015 19:13:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/KDS-KL46Z-application-stuck-in-dispatch-S-on-startup/m-p/394578#M13243</guid>
      <dc:creator>isaacavila</dc:creator>
      <dc:date>2015-10-02T19:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: KDS KL46Z application stuck in dispatch.S on startup</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/KDS-KL46Z-application-stuck-in-dispatch-S-on-startup/m-p/394579#M13244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi isaacavila,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was in PTO, could not answer earlier. Thank you for looking into this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Processor Expert file is in the archive, did you run processor expert code generation ? This should generate all those missing files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 12:26:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/KDS-KL46Z-application-stuck-in-dispatch-S-on-startup/m-p/394579#M13244</guid>
      <dc:creator>remibeges</dc:creator>
      <dc:date>2015-10-05T12:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: KDS KL46Z application stuck in dispatch.S on startup</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/KDS-KL46Z-application-stuck-in-dispatch-S-on-startup/m-p/394580#M13245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Remi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have found the root cause for this issue. It is caused by LPTMR0 interrupt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sensor Fusion library uses LPTMR0 to manage timing in the application, so it generates an interrupt and sometimes, when you RESET your board (except for Power-On Reset or LVD) LPTMR0's interrupt is attending just before MQX is started completely, causing MQX to crash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have added a solution for this issue:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Disable LPTMR's auto initialization&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Disable FTM's auto initialization.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/25970iE0E4CB65185AA0E2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Disable FTM's auto initialization.jpg" alt="Disable FTM's auto initialization.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Save changes and generate code.&lt;/LI&gt;&lt;LI&gt;Go to mqx_tasks.c and modify main_task in order to initialize FTM module once MQX has started:&lt;/LI&gt;&lt;/UL&gt;&lt;P style="text-align: center;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Init FTM module.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/26019iC76893FB4DEDD1B8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Init FTM module.jpg" alt="Init FTM module.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Save changes, compile the code and download in your board. It should work now.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this can help you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Isaac&lt;/P&gt;&lt;P&gt;----------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;----------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 21:24:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/KDS-KL46Z-application-stuck-in-dispatch-S-on-startup/m-p/394580#M13245</guid>
      <dc:creator>isaacavila</dc:creator>
      <dc:date>2015-11-05T21:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: KDS KL46Z application stuck in dispatch.S on startup</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/KDS-KL46Z-application-stuck-in-dispatch-S-on-startup/m-p/394581#M13246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes that was it, good catch !&lt;/P&gt;&lt;P&gt;Thank you all for the support, especially you Isaac.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2015 14:39:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/KDS-KL46Z-application-stuck-in-dispatch-S-on-startup/m-p/394581#M13246</guid>
      <dc:creator>remibeges</dc:creator>
      <dc:date>2015-11-09T14:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: KDS KL46Z application stuck in dispatch.S on startup</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/KDS-KL46Z-application-stuck-in-dispatch-S-on-startup/m-p/394582#M13247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Hi isaacavila,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I have the same problem with my MK60DN512ZVLQ10, my app is stuck in dispatch.s too . I have tried to disable the RTC clock in my BSP files ,but have no help .I made 8 boards and &amp;nbsp;four of them have this problem,others &amp;nbsp;work well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I have saw your reply to Remi, I think my designs maybe have the problem,but My BSP files are not gernerated by PE,I clone &amp;nbsp;them from MQX 3.8, i wanna know how can i &amp;nbsp;disable the LPTMR0 ,and &amp;nbsp;initial it after MQX started &amp;nbsp;without the PE.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;Regards.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;YangZhou&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2017 03:26:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/KDS-KL46Z-application-stuck-in-dispatch-S-on-startup/m-p/394582#M13247</guid>
      <dc:creator>kingcool</dc:creator>
      <dc:date>2017-03-30T03:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: KDS KL46Z application stuck in dispatch.S on startup</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/KDS-KL46Z-application-stuck-in-dispatch-S-on-startup/m-p/394583#M13248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Yang,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You only need to clear the TEN bit that is located at LPTMR0_CSR register. Just be sure to clear this bit once LPTMR's clock has been enabled, otherwise, a HardFault interrupt will be triggered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Isaac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2017 14:17:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/KDS-KL46Z-application-stuck-in-dispatch-S-on-startup/m-p/394583#M13248</guid>
      <dc:creator>isaacavila</dc:creator>
      <dc:date>2017-03-30T14:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: KDS KL46Z application stuck in dispatch.S on startup</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/KDS-KL46Z-application-stuck-in-dispatch-S-on-startup/m-p/394584#M13249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Hi isaacavila,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I try to clear the LPTMR0_CSR register in my BSP files,but I found &amp;nbsp;my BSP files have no files to set the LPTMER0 except the&amp;nbsp;MK60DZ10.h &amp;nbsp;,but &amp;nbsp;the file just &amp;nbsp;define the &amp;nbsp;macro &amp;nbsp;to set the rigister.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;So I just describe my situation，my board is stuck in the dispatch.s file after the reset &amp;nbsp;trigered by the WATCHDOG interrupt,&amp;nbsp; &lt;SPAN&gt;except for Power-On Reset as you say. if I don't reboot it with shutdown the watchdog, the board works well .By the way ，I have made over 20 pcs boards with the same hardware ,most of them works well ,just 5 of them have this problem. &amp;nbsp;I have referred to other way the solve &amp;nbsp;this problem just like disable the RTC clock &amp;nbsp;in the userconfig.h and the &amp;nbsp; bsp_cm.c &amp;amp;bsp_cm .h &amp;nbsp;files ,but nothing helped .I post the pics just where the programes run stoped .&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;span class="lia-inline-image-display-wrapper" image-alt="1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/15913i63E3EC79C468696A/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/15953i2B85341C4B687E4B/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp; hope for your suggestion，&lt;SPAN&gt;isaacavila！&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; font-weight: inherit;"&gt;Regards.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; font-weight: inherit;"&gt;YangZhou&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Mar 2017 02:51:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/KDS-KL46Z-application-stuck-in-dispatch-S-on-startup/m-p/394584#M13249</guid>
      <dc:creator>kingcool</dc:creator>
      <dc:date>2017-03-31T02:51:20Z</dc:date>
    </item>
  </channel>
</rss>

