<?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: MQX on custom board stuck in dispatch.s in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-on-custom-board-stuck-in-dispatch-s/m-p/258938#M7630</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi lorenzomalagia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would start with a flash loader and a linker command file in order to fix flashing problems. As Yong Huang suggested, it might be hardware related (even flash loader problems).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;MartinK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Feb 2013 06:56:50 GMT</pubDate>
    <dc:creator>c0170</dc:creator>
    <dc:date>2013-02-21T06:56:50Z</dc:date>
    <item>
      <title>MQX on custom board stuck in dispatch.s</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-on-custom-board-stuck-in-dispatch-s/m-p/258932#M7624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys, I hope you can help me&lt;/P&gt;&lt;P&gt;I developed a multitasking application using MQX and a TWR-K60N512 evaluation board. The chip on the tower is a PK60N512VMD100 (0M33Z).&lt;/P&gt;&lt;P&gt;While I was working on the firmware, some collegues developed a custom board using MK60DN512ZVLQ10 (4N30D) chip which apparently seems to&lt;/P&gt;&lt;P&gt;be the same except for the presence of an internal DSP on the second one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My application is made of 3 tasks. The init task is the auto start task and has a priority set to 9. It should run first and initialize the board. Before dying&lt;/P&gt;&lt;P&gt;it creates the other two tasks both with a priority of 10. They should run indefinitely.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use the tower everything is good. I can execute and debug the code (I'm using IAR and J-Link).&lt;/P&gt;&lt;P&gt;When I switch to the custom board I have many problems. Sometimes an error occurs when I try to upload the code so I need to erease all the memory&lt;/P&gt;&lt;P&gt;and try severl times before it stops tell me that the flash loader reported an error.&lt;/P&gt;&lt;P&gt;I don't know if this problem could be due to the linker file or the flash loader.&lt;/P&gt;&lt;P&gt;When I finally succed in uploading the code, something weird appens. I launch the debugger and I can see that the execution is stuck in "dispatch.s"&lt;/P&gt;&lt;P&gt;before the first task is scheduled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following code is copied by "dispatch.s" starting from line 432.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco; font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN style="font-family: terminal, monaco; font-size: 10pt; line-height: 1.5em;"&gt;ASM_LABEL(find_noempty_que)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: terminal, monaco;"&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 r2, [r1, #0]&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; ; address of first td&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: terminal, monaco;"&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; cmp r2, r1&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; ; ready_q structure itself?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: terminal, monaco;"&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; bne switch_task&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: terminal, monaco;"&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, [r1, #RQ_NEXT_Q]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; try next queue&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: terminal, monaco;"&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; movs r1, r1&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: terminal, monaco;"&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; bne find_noempty_que&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: terminal, monaco;"&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; ; r1 is 0 -&amp;gt; empty&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: terminal, monaco;"&gt;ASM_LABEL(no_one_to_run)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: terminal, monaco;"&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 set system task ???&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: terminal, monaco;"&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; ; enable all interrupts (r1 = 0)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: terminal, monaco;"&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 maybe (maybe not necessary) restore PendSV priority and BASEPRI after wfi&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: terminal, monaco;"&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; msr BASEPRI, r1&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: terminal, monaco;"&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, =0xE000ED20&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; ; SHPR3&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: terminal, monaco;"&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 r2, =0xff&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: terminal, monaco;"&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; strb r2, [r1, #2]&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: terminal, monaco; font-size: 10pt; line-height: 1.5em;"&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;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: terminal, monaco;"&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.n i&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: terminal, monaco;"&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;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: terminal, monaco;"&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.n i&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: terminal, monaco; font-size: 10pt; line-height: 1.5em;"&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;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: terminal, monaco; font-size: 10pt; line-height: 1.5em;"&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 que from ready list&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: terminal, monaco; font-size: 10pt; line-height: 1.5em;"&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 fin&lt;/SPAN&gt;&lt;SPAN style="font-family: terminal, monaco; font-size: 10pt; line-height: 1.5em;"&gt;d_noempty_que&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By now the line numbers I will use are the ones used in the following piece of code.&lt;/P&gt;&lt;P&gt;I found the pointer always at line 23. If I go step by step it reaches line 27, then jumps to line 1 and cycles in this function 15 times.&lt;/P&gt;&lt;P&gt;Then it goes on to line 9, 10, 11,.... until it come back to line 1 and repeat the cycle&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: the custom board has been tested with other sample code, for example with a demo of FreeRTOS and works perfectly. When I try to upload&lt;/P&gt;&lt;P&gt;a demo of MQX (with multitasking) the result is the same: it stucks in dispatch.s, wheras the same code in the tower works perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If someone solved a similar problem before or has some advices to give, I will really appreciate it.&lt;/P&gt;&lt;P&gt;Tanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS sorry for my English :smileyhappy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2013 10:57:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-on-custom-board-stuck-in-dispatch-s/m-p/258932#M7624</guid>
      <dc:creator>lorenzomalagia</dc:creator>
      <dc:date>2013-02-14T10:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: MQX on custom board stuck in dispatch.s</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-on-custom-board-stuck-in-dispatch-s/m-p/258933#M7625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello lorenzomalagia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any update with the issue?&lt;/P&gt;&lt;P&gt;I have seen similar problem in this thread:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/thread/302060" title="https://community.freescale.com/thread/302060"&gt;https://community.freescale.com/thread/302060&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please read it, it might help you:smileywink:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;MartinK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 07:36:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-on-custom-board-stuck-in-dispatch-s/m-p/258933#M7625</guid>
      <dc:creator>c0170</dc:creator>
      <dc:date>2013-02-19T07:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: MQX on custom board stuck in dispatch.s</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-on-custom-board-stuck-in-dispatch-s/m-p/258934#M7626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the reply, but I had already read that article which is similar but different to my problem.&lt;/P&gt;&lt;P&gt;Unfortunately it was not so helpful :smileysad:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there someone who can help me with the configuration of the MQX libraries? I think that the problem&lt;/P&gt;&lt;P&gt;could be there. I know that the most important files to be modified by the user for a custom board are&lt;/P&gt;&lt;P&gt;user_config.h and board_name.h but I think that maybe there is something more to be modified to&lt;/P&gt;&lt;P&gt;make the &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;library compatible with the custom hardware. Maybe some pin which is in high impedance in&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;my board &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;and is not supposed to be so for the libraries is causing the bug.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Any ideas? Which procedure do you follow for a correct configuration of the libraries?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Thank you&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 17:23:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-on-custom-board-stuck-in-dispatch-s/m-p/258934#M7626</guid>
      <dc:creator>lorenzomalagia</dc:creator>
      <dc:date>2013-02-19T17:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: MQX on custom board stuck in dispatch.s</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-on-custom-board-stuck-in-dispatch-s/m-p/258935#M7627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you share your BSP source code? do you follow the &lt;STRONG&gt;BSP Cloning Wizard for MQX™&lt;/STRONG&gt; wizard?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 12:17:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-on-custom-board-stuck-in-dispatch-s/m-p/258935#M7627</guid>
      <dc:creator>hake</dc:creator>
      <dc:date>2013-02-20T12:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: MQX on custom board stuck in dispatch.s</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-on-custom-board-stuck-in-dispatch-s/m-p/258936#M7628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: Arial; color: #575757;"&gt;I read the instruction in "MQX Board Support Package Porting Guide" but I did not use the Cloning&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: Arial; color: #575757;"&gt;Wizard because I did not hear from it before and now I noticed that it is a tool included in MQX 4.0, but I am currently using MQX 3.8.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: Arial; color: #575757;"&gt;I tried to install MQX 4.0 but the IAR project to recompile the libraries was not set properly and I was not able to compile the libraries.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: Arial; color: #575757;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: Arial; color: #575757;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: Arial; color: #575757;"&gt;I uploaded the entire BSP folder with the *.c and *.h BSP files. It is downloadable with the following link:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: Arial; color: #575757;"&gt;&lt;A href="http://dl.dropbox.com/u/2270531/twrk60n512.zip" title="http://dl.dropbox.com/u/2270531/twrk60n512.zip"&gt;http://dl.dropbox.com/u/2270531/twrk60n512.zip&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: Arial; color: #575757;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 13:57:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-on-custom-board-stuck-in-dispatch-s/m-p/258936#M7628</guid>
      <dc:creator>lorenzomalagia</dc:creator>
      <dc:date>2013-02-20T13:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: MQX on custom board stuck in dispatch.s</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-on-custom-board-stuck-in-dispatch-s/m-p/258937#M7629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;from your BSP code, there are no big differences. Can you check with HW designer of your HW team? I guess there ought be some different.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2013 03:45:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-on-custom-board-stuck-in-dispatch-s/m-p/258937#M7629</guid>
      <dc:creator>hake</dc:creator>
      <dc:date>2013-02-21T03:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: MQX on custom board stuck in dispatch.s</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-on-custom-board-stuck-in-dispatch-s/m-p/258938#M7630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi lorenzomalagia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would start with a flash loader and a linker command file in order to fix flashing problems. As Yong Huang suggested, it might be hardware related (even flash loader problems).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;MartinK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2013 06:56:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-on-custom-board-stuck-in-dispatch-s/m-p/258938#M7630</guid>
      <dc:creator>c0170</dc:creator>
      <dc:date>2013-02-21T06:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: MQX on custom board stuck in dispatch.s</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-on-custom-board-stuck-in-dispatch-s/m-p/258939#M7631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know that my BSP code is not so different from the original one and that is the question. I have the hardware schematic, I know perfectly how the board is made, what I don't know is what I need to change in my BSP in order to make it work in relation to the differences between my board and the TWRK60 development board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think (but I could be wrong) that the flash loader should be the same, because the chip is in the same family so the addresses of the memory and the ram should be the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2013 09:47:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-on-custom-board-stuck-in-dispatch-s/m-p/258939#M7631</guid>
      <dc:creator>lorenzomalagia</dc:creator>
      <dc:date>2013-02-22T09:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: MQX on custom board stuck in dispatch.s</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-on-custom-board-stuck-in-dispatch-s/m-p/258940#M7632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it is the sam if your chip version is the same. I even meet this problem on my tower board when the board is not well connected with elevator board, do you check the IO pins setting? some interrupt pins may be in reverser state. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2013 10:26:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-on-custom-board-stuck-in-dispatch-s/m-p/258940#M7632</guid>
      <dc:creator>hake</dc:creator>
      <dc:date>2013-02-22T10:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: MQX on custom board stuck in dispatch.s</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-on-custom-board-stuck-in-dispatch-s/m-p/258941#M7633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;lorenzomalagia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has this issue been resolved yet?&amp;nbsp; If so, please let me know how.&amp;nbsp; I am experiencing a very similar issue.&amp;nbsp; The &lt;A _jive_internal="true" data-containerid="2023" data-containertype="14" data-objectid="302060" data-objecttype="1" href="https://community.nxp.com/thread/302060"&gt;https://community.freescale.com/thread/302060&lt;/A&gt; thread does not seem to resolve it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 15:51:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-on-custom-board-stuck-in-dispatch-s/m-p/258941#M7633</guid>
      <dc:creator>ee_dugan</dc:creator>
      <dc:date>2013-04-03T15:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: MQX on custom board stuck in dispatch.s</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-on-custom-board-stuck-in-dispatch-s/m-p/258942#M7634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Douglas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Most probably the error is an interrupt at the same priority level as the mqx-maintimer interrupt priority level. Please check that you have disabled all interrupts or at least giv em less priority level. That did it for me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Julian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Apr 2013 13:31:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-on-custom-board-stuck-in-dispatch-s/m-p/258942#M7634</guid>
      <dc:creator>juliank_</dc:creator>
      <dc:date>2013-04-20T13:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: MQX on custom board stuck in dispatch.s</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-on-custom-board-stuck-in-dispatch-s/m-p/258943#M7635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi to all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have exactly the same problem, i have the twrk60n512 with mqx 4.0. On the tower my program runs well, but on my own board the program stops on dispatch.s and never starts the main code. On my board I have the MK60DN256ZVLL10 micro controller, and i have used the MQX BSP Cloning Wizard to modify the bsp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The hardware is tested and I´m sure that the problem is on the bsp configuration but I don´t know how to solve it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and waiting for a correct answer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 10:52:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-on-custom-board-stuck-in-dispatch-s/m-p/258943#M7635</guid>
      <dc:creator>robertogracia</dc:creator>
      <dc:date>2013-04-30T10:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: MQX on custom board stuck in dispatch.s</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-on-custom-board-stuck-in-dispatch-s/m-p/258944#M7636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Z in the micro controller part number makes a difference.&amp;nbsp; Does the BSP use the mem file that has the Z in it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How far do you get in the startup process?&amp;nbsp; What is your clock configuration?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Doug&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 12:21:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-on-custom-board-stuck-in-dispatch-s/m-p/258944#M7636</guid>
      <dc:creator>ee_dugan</dc:creator>
      <dc:date>2013-04-30T12:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: MQX on custom board stuck in dispatch.s</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-on-custom-board-stuck-in-dispatch-s/m-p/258945#M7637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Douglas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don´t understand what means this about Z on the mem file that uses the BSP.&lt;/P&gt;&lt;P&gt;I have used the MQX BSP Cloning Wizard to create the new bsp for the MK60DN256ZVLL10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The startup process arrives until:&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASM_LABEL(_int_kernel_isr)&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.n 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; push {lr}&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; ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on dispatch.s&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then, starts in a loop between this and the next:&lt;/P&gt;&lt;P&gt;&lt;/P&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; /* TODO set system task ??? */&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; /* enable all interrupts (r1 = 0) */&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 maybe (maybe not necessary) restore PendSV priority and BASEPRI after 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; msr BASEPRI, r1&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; ldr r1, =0xE000ED20&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; /* SHPR3 */&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 r2, =0xff&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; strb r2, [r1, #2]&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; /* 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.n 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.n 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; ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="mce_paste_marker"&gt;my clock configuration is:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;#ifndef BSP_CLOCK_CONFIGURATION_STARTUP&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #define BSP_CLOCK_CONFIGURATION_STARTUP (BSP_CLOCK_CONFIGURATION_96MHZ)&lt;/P&gt;&lt;P&gt;#endif /* BSP_CLOCK_CONFIGURATION_STARTUP */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Init startup clock configuration is CPU_CLOCK_CONFIG_0 */&lt;/P&gt;&lt;P&gt;#define BSP_CLOCK_SRC&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; (CPU_XTAL_CLK_HZ)&lt;/P&gt;&lt;P&gt;#define BSP_CORE_CLOCK&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; (CPU_CORE_CLK_HZ_CONFIG_0)&lt;/P&gt;&lt;P&gt;#define BSP_SYSTEM_CLOCK&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; (CPU_CORE_CLK_HZ_CONFIG_0)&lt;/P&gt;&lt;P&gt;#define BSP_CLOCK&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; (CPU_BUS_CLK_HZ_CONFIG_0)&lt;/P&gt;&lt;P&gt;#define BSP_BUS_CLOCK&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; (CPU_BUS_CLK_HZ_CONFIG_0)&lt;/P&gt;&lt;P&gt;#define BSP_FLEXBUS_CLOCK&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; (CPU_FLEXBUS_CLK_HZ_CONFIG_0)&lt;/P&gt;&lt;P&gt;#define BSP_FLASH_CLOCK&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; (CPU_FLASH_CLK_HZ_CONFIG_0)&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;Robert &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 13:16:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-on-custom-board-stuck-in-dispatch-s/m-p/258945#M7637</guid>
      <dc:creator>robertogracia</dc:creator>
      <dc:date>2013-04-30T13:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: MQX on custom board stuck in dispatch.s</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-on-custom-board-stuck-in-dispatch-s/m-p/258946#M7638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me try to explain the Z issue.&amp;nbsp; One of the issues we encountered was that the micro we were using on our board had the Z in the part number.&amp;nbsp; The Z in the part number denotes initial silicon from Freescale.&amp;nbsp; There are newer parts that do not have the Z in them.&amp;nbsp; Our issue was that we were trying to clone a BSP from a newer silicon part (non-Z) and then trying to use that BSP on an older silicon part (Z).&amp;nbsp; It is my understanding that If you cloned the twrk60n512, then this should not be your issue.&amp;nbsp; But it was ours and what you described is very similar to what was occuring for us.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have your debugger set to start at program entry point or main?&amp;nbsp; We were able to debugger this issue when it was set to program entry point.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/119092i261E36A641B8FD83/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Doug&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 13:37:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-on-custom-board-stuck-in-dispatch-s/m-p/258946#M7638</guid>
      <dc:creator>ee_dugan</dc:creator>
      <dc:date>2013-04-30T13:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: MQX on custom board stuck in dispatch.s</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-on-custom-board-stuck-in-dispatch-s/m-p/258947#M7639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Douglas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your explanation, now i understand a bit more this about the Z, and yes, i have cloned the BSP from the twrk60n512 that is my test board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And now, my debugger set to start at main.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks again&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 13:58:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-on-custom-board-stuck-in-dispatch-s/m-p/258947#M7639</guid>
      <dc:creator>robertogracia</dc:creator>
      <dc:date>2013-04-30T13:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: MQX on custom board stuck in dispatch.s</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-on-custom-board-stuck-in-dispatch-s/m-p/258948#M7640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you change the debugger to start at program entry point, how far can you step before it goes to dispatch.s?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 14:30:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-on-custom-board-stuck-in-dispatch-s/m-p/258948#M7640</guid>
      <dc:creator>ee_dugan</dc:creator>
      <dc:date>2013-04-30T14:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: MQX on custom board stuck in dispatch.s</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-on-custom-board-stuck-in-dispatch-s/m-p/258949#M7641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;changing this, the last instruction that the code does is the "else" condition and "bl main" (startup.c line:182):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#if SUPPORT_SEMIHOST_ARGC_ARGV&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lda&amp;nbsp;&amp;nbsp;&amp;nbsp; r1,argv&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mov&amp;nbsp;&amp;nbsp;&amp;nbsp; r0,#__MAX_CMDLINE_ARGS&amp;nbsp;&amp;nbsp;&amp;nbsp; // size of argv array&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bl&amp;nbsp;&amp;nbsp;&amp;nbsp; __argc_argv&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lda&amp;nbsp;&amp;nbsp;&amp;nbsp; r1,argv&amp;nbsp;&amp;nbsp;&amp;nbsp; // reload r1 w/ addr of argv&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // r0 is correct w/ rtn from argc_argv&lt;/P&gt;&lt;P&gt;#else&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mov&amp;nbsp;&amp;nbsp;&amp;nbsp; a1,#0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lda&amp;nbsp;&amp;nbsp;&amp;nbsp; a2,argv&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bl&amp;nbsp;&amp;nbsp;&amp;nbsp; main&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after execute this instruction the code jumps to dispatch.s&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 14:43:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-on-custom-board-stuck-in-dispatch-s/m-p/258949#M7641</guid>
      <dc:creator>robertogracia</dc:creator>
      <dc:date>2013-04-30T14:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: MQX on custom board stuck in dispatch.s</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-on-custom-board-stuck-in-dispatch-s/m-p/258950#M7642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try opening your bsp and disable the RTC in processor expert. Also set BSPCFG_ENABLE_RTCDEV in user_config.h to 0. Re-generate the code, compile and try it again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 22:23:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-on-custom-board-stuck-in-dispatch-s/m-p/258950#M7642</guid>
      <dc:creator>FarhanH</dc:creator>
      <dc:date>2013-05-23T22:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: MQX on custom board stuck in dispatch.s</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-on-custom-board-stuck-in-dispatch-s/m-p/258951#M7643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Disabling the BSPCFG_ENABLE_RTCDEV does fix the issue for me. Thanks Farhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jun 2013 17:02:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-on-custom-board-stuck-in-dispatch-s/m-p/258951#M7643</guid>
      <dc:creator>nikhilsarnaik</dc:creator>
      <dc:date>2013-06-11T17:02:56Z</dc:date>
    </item>
  </channel>
</rss>

