<?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: Bug in _mqx_init_interrupt_stack() when using bootloader (KSDK 1.2.0) in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Bug-in-mqx-init-interrupt-stack-when-using-bootloader-KSDK-1-2-0/m-p/504001#M4932</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Priya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your feedback.&lt;/P&gt;&lt;P&gt;This issue should be fixed in KSDK 1.3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day!&lt;/P&gt;&lt;P&gt;Iva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Apr 2016 10:09:06 GMT</pubDate>
    <dc:creator>ivadorazinova</dc:creator>
    <dc:date>2016-04-05T10:09:06Z</dc:date>
    <item>
      <title>Bug in _mqx_init_interrupt_stack() when using bootloader (KSDK 1.2.0)</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Bug-in-mqx-init-interrupt-stack-when-using-bootloader-KSDK-1-2-0/m-p/504000#M4931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found a bug in _mqx_init_interrupt_stack() routine where the stack base address is obtained from this line of code. &lt;BR /&gt;stack_ptr = (_mqx_uint)*(_mqx_uint*)0x0; /* Get stack base address located on interrupt vector 0. */&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since the interrupt vector relocates to a different address (for instance, 0xa000) when using a bootloader, the above line would result in an incorrect value for stack_ptr which in turn results in incorrect INIT.INTERRUPT_STACK_SIZE. This was causing a hard-fault in my case when _sched_start_internal() is called. The right way to fix it is to get the stack base address from VTOR as below.&lt;/P&gt;&lt;P&gt;stack_ptr = (_mqx_uint)*(_mqx_uint*)SCB-&amp;gt;VTOR;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By the way, I was using FRDM-K22F board with freedom bootloader to debug this issue and I also noticed that this issue is fixed in KSDK 1.3.0.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Priya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 22:31:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Bug-in-mqx-init-interrupt-stack-when-using-bootloader-KSDK-1-2-0/m-p/504000#M4931</guid>
      <dc:creator>priya_dwivedula</dc:creator>
      <dc:date>2016-03-24T22:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in _mqx_init_interrupt_stack() when using bootloader (KSDK 1.2.0)</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Bug-in-mqx-init-interrupt-stack-when-using-bootloader-KSDK-1-2-0/m-p/504001#M4932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Priya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your feedback.&lt;/P&gt;&lt;P&gt;This issue should be fixed in KSDK 1.3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day!&lt;/P&gt;&lt;P&gt;Iva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2016 10:09:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Bug-in-mqx-init-interrupt-stack-when-using-bootloader-KSDK-1-2-0/m-p/504001#M4932</guid>
      <dc:creator>ivadorazinova</dc:creator>
      <dc:date>2016-04-05T10:09:06Z</dc:date>
    </item>
  </channel>
</rss>

