<?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: Memory allocation using malloc/calloc problem in USB Stack in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Memory-allocation-using-malloc-calloc-problem-in-USB-Stack/m-p/621014#M37161</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check that the linker script allocates any heap memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also see this discussion:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/441637"&gt;https://community.nxp.com/thread/441637&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Mar 2017 14:27:58 GMT</pubDate>
    <dc:creator>bobpaddock</dc:creator>
    <dc:date>2017-03-27T14:27:58Z</dc:date>
    <item>
      <title>Memory allocation using malloc/calloc problem in USB Stack</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Memory-allocation-using-malloc-calloc-problem-in-USB-Stack/m-p/621013#M37160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm working on USB host integration. In&amp;nbsp;usb_khci_preinit() function i'm trying to allocate memory at run time using malloc.&lt;/P&gt;&lt;P&gt;I tried with&amp;nbsp; OS_Mem_alloc_zero(sizeof(usb_khci_host_state_struct_t)); function as well as int *p=malloc(10);.&lt;/P&gt;&lt;P&gt;In both cases i got return value is 0. It means i unable to allocate memory.&lt;/P&gt;&lt;P&gt;I need some help to solve this problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2017 12:16:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Memory-allocation-using-malloc-calloc-problem-in-USB-Stack/m-p/621013#M37160</guid>
      <dc:creator>vikashkumar</dc:creator>
      <dc:date>2017-03-27T12:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: Memory allocation using malloc/calloc problem in USB Stack</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Memory-allocation-using-malloc-calloc-problem-in-USB-Stack/m-p/621014#M37161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check that the linker script allocates any heap memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also see this discussion:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/441637"&gt;https://community.nxp.com/thread/441637&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2017 14:27:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Memory-allocation-using-malloc-calloc-problem-in-USB-Stack/m-p/621014#M37161</guid>
      <dc:creator>bobpaddock</dc:creator>
      <dc:date>2017-03-27T14:27:58Z</dc:date>
    </item>
  </channel>
</rss>

