<?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: bare metal usb host msd integration  in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/bare-metal-usb-host-msd-integration/m-p/625673#M37516</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vikash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems I am having the same issue. &amp;nbsp;On the demo app stepping through what you mentioned above works fine.&lt;/P&gt;&lt;P&gt;If I try it in my custom board, I get the same hard fault error. &amp;nbsp;Where you able to figure this out?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Aug 2017 20:21:22 GMT</pubDate>
    <dc:creator>neilporven</dc:creator>
    <dc:date>2017-08-31T20:21:22Z</dc:date>
    <item>
      <title>bare metal usb host msd integration</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/bare-metal-usb-host-msd-integration/m-p/625670#M37513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on bare metal usb host(msd) integration in TWR-K21F210MA board. On tower is working fine,but when i am integrating the same code with my original work space,i am getting an error in vector interrupt setting.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;void * INT_SYS_InstallHandler(IRQn_Type irqNumber, void (*handler)(void))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 15px;"&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 15px;"&gt;#if (defined(__CC_ARM))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 15px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; extern uint32_t Image$$VECTOR_RAM$$Base[];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 15px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #define __VECTOR_RAM Image$$VECTOR_RAM$$Base&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 15px;"&gt;#else&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 15px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; extern uint32_t __VECTOR_RAM[];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 15px;"&gt;#endif&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Check IRQ number */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 15px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; assert(FSL_FEATURE_INTERRUPT_IRQ_MIN &amp;lt;= irqNumber);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 15px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; assert(irqNumber &amp;lt;= FSL_FEATURE_INTERRUPT_IRQ_MAX);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Check whether there is vector table in RAM */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 15px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; assert(__VECTOR_RAM != 0U);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 15px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 15px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Save the former handler pointer */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 15px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; void * retVal = (void *)__VECTOR_RAM[irqNumber + 16];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Set handler into vector table */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 15px;"&gt;&amp;nbsp;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp; __VECTOR_RAM[irqNumber + 16] = (uint32_t)handler;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&lt;SPAN style="color: #000000;"&gt; here i am getting hard fault error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return retVal;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 15px;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;I am looking for solution.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Apr 2017 06:08:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/bare-metal-usb-host-msd-integration/m-p/625670#M37513</guid>
      <dc:creator>vikashkumar</dc:creator>
      <dc:date>2017-04-20T06:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: bare metal usb host msd integration</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/bare-metal-usb-host-msd-integration/m-p/625671#M37514</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;Sorry for the later reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you tell us which IDE software you are using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About the ISR handler address, p&lt;SPAN style="background-color: inherit;"&gt;lease also consider the ARM Thumb bit: function pointers (and vectors pointers) have the Thumb bit set in the address, to mark that they are thumb functions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;So when using the ARM Thumb instruction, the really address should plus 0x1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ma Hui&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2017 07:16:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/bare-metal-usb-host-msd-integration/m-p/625671#M37514</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2017-04-27T07:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: bare metal usb host msd integration</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/bare-metal-usb-host-msd-integration/m-p/625672#M37515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hui ma,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using KDS 3.0 as IDE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently having ucosii safety certified version along with QF framework.&lt;/P&gt;&lt;P&gt;I am trying to integrate the bare metal usb stack to it. Suspecting the way we are installing the interrupt be different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2017 07:54:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/bare-metal-usb-host-msd-integration/m-p/625672#M37515</guid>
      <dc:creator>vikashkumar</dc:creator>
      <dc:date>2017-04-27T07:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: bare metal usb host msd integration</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/bare-metal-usb-host-msd-integration/m-p/625673#M37516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vikash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems I am having the same issue. &amp;nbsp;On the demo app stepping through what you mentioned above works fine.&lt;/P&gt;&lt;P&gt;If I try it in my custom board, I get the same hard fault error. &amp;nbsp;Where you able to figure this out?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2017 20:21:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/bare-metal-usb-host-msd-integration/m-p/625673#M37516</guid>
      <dc:creator>neilporven</dc:creator>
      <dc:date>2017-08-31T20:21:22Z</dc:date>
    </item>
  </channel>
</rss>

