<?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: Re: _sched_start_internal crash (svc) in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/sched-start-internal-crash-svc/m-p/371946#M12271</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Than you for the idea. This leads me to change the &lt;SPAN style="font-family: courier new,courier;"&gt;MQX_ROM_VECTORS&lt;/SPAN&gt; from 0 to 1 to exclude a vector copy problem. Now I end up in the &lt;SPAN style="font-family: courier new,courier;"&gt;_mqx_idle_task&lt;/SPAN&gt; function but my own task gets never started.&lt;/P&gt;&lt;P&gt;Any other ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Sep 2014 10:53:37 GMT</pubDate>
    <dc:creator>mruetti</dc:creator>
    <dc:date>2014-09-17T10:53:37Z</dc:date>
    <item>
      <title>_sched_start_internal crash (svc)</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/sched-start-internal-crash-svc/m-p/371944#M12269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a custom board with an MK60DX256 / 4N22D. The project (bsp/psp) is derived from the TWR-K60D100M and, to sort out the linker file, I took the one from the TWR-K40X256 project as a blue print. I'm using the cw10gcc compiler collection with cw10.6 and MQX 4.1.&lt;/P&gt;&lt;P&gt;My hardware is starting up and running into the &lt;SPAN style="font-family: courier new,courier;"&gt;_mqx()&lt;/SPAN&gt; function. There at the end the scheduler should be started by the function&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;_sched_start_internal(); /* WILL NEVER RETURN FROM HERE */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;that calls&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;ASM_LABEL(_sched_start_internal)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; svc SVC_RUN_SCHED&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; bx lr&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;ASM_PUBLIC_END(_sched_start_internal)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I step through the code I can see that the "&lt;SPAN style="font-family: courier new,courier;"&gt;svc&lt;/SPAN&gt;" call behaves badly. It jumps to a strange location and the debugger says:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;No source available for "0xBCBD2F46 (0xBCBD2F46)() "&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Afterwards the system resets and the&lt;SPAN style="font-family: courier new,courier;"&gt; RCM_SRS1&lt;/SPAN&gt; register is set to "&lt;SPAN style="font-family: courier new,courier;"&gt;Reset caused by core LOCKUP event&lt;/SPAN&gt;".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could this be caused by an incorrect linker file (.ld)? Or any other ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt; Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 14:57:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/sched-start-internal-crash-svc/m-p/371944#M12269</guid>
      <dc:creator>mruetti</dc:creator>
      <dc:date>2014-09-16T14:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: _sched_start_internal crash (svc)</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/sched-start-internal-crash-svc/m-p/371945#M12270</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;it might be incorrect location of the vector table. At runtime, check VTOR register. It tells the offset from address 0x0 where the vector table is located. Then open debugger memory window at VTOR address. SVCall handler is vector 11. Check if the address of SVCall handler looks right. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 04:16:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/sched-start-internal-crash-svc/m-p/371945#M12270</guid>
      <dc:creator>Martin_</dc:creator>
      <dc:date>2014-09-17T04:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: Re: _sched_start_internal crash (svc)</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/sched-start-internal-crash-svc/m-p/371946#M12271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Than you for the idea. This leads me to change the &lt;SPAN style="font-family: courier new,courier;"&gt;MQX_ROM_VECTORS&lt;/SPAN&gt; from 0 to 1 to exclude a vector copy problem. Now I end up in the &lt;SPAN style="font-family: courier new,courier;"&gt;_mqx_idle_task&lt;/SPAN&gt; function but my own task gets never started.&lt;/P&gt;&lt;P&gt;Any other ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 10:53:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/sched-start-internal-crash-svc/m-p/371946#M12271</guid>
      <dc:creator>mruetti</dc:creator>
      <dc:date>2014-09-17T10:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: _sched_start_internal crash (svc)</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/sched-start-internal-crash-svc/m-p/371947#M12272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If found the problem using this little snippet from the mcuoneclipse homepage..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; __asm volatile (&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; " movs r0,#4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; \n"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; " movs r1, lr&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; \n"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; " tst r0, r1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; \n"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; " beq _MSP&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; \n"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; " mrs r0, psp&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; \n"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; " b _HALT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; \n"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "_MSP:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; \n"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; " mrs r0, msp&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; \n"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "_HALT:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; \n"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; " ldr r1,[r0,#20]&amp;nbsp; \n"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; " bkpt #0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; \n"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; );&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;SPAN style="font-family: courier new,courier;"&gt;r1&lt;/SPAN&gt; register contains the address of the last function before the crash. This did help a lot!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to all&lt;/P&gt;&lt;P&gt; Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 14:21:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/sched-start-internal-crash-svc/m-p/371947#M12272</guid>
      <dc:creator>mruetti</dc:creator>
      <dc:date>2014-09-17T14:21:53Z</dc:date>
    </item>
  </channel>
</rss>

