<?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>i.MX ProcessorsのトピックRe: mqx uncached mem alloc</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/mqx-uncached-mem-alloc/m-p/496627#M79953</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;After delving into it I just found that the uncached memory at least in MQX is used in ENET buffers, buffer descriptors and USB buffers too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Alejandro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Feb 2016 01:44:38 GMT</pubDate>
    <dc:creator>alejandrolozan1</dc:creator>
    <dc:date>2016-02-19T01:44:38Z</dc:date>
    <item>
      <title>mqx uncached mem alloc</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/mqx-uncached-mem-alloc/m-p/496624#M79950</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;for using the DMA mapped TDSR Register (pointer to Buffer desc start)&amp;nbsp; for Enet useage, the Buffer Descriptor Data must be stored in the uncached address space. right? Mapping an normal allocated struct with _mem_alloc_align() function kills the Enet controler and terminates with an EBERR interrupt. I assumed that this is a caching problem, because the DMA has no access to the virtual address space allocated by MQX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So now how can I allocate uncached adressspace in MQX? The function _mem_alloc_asign_uncached() returns the same address like _mem_alloc_asign(). Now when I enable MQX_USE_UNCACHED_MEM in the user_cnfg.h to support the uncached memory functions the compiler terminates with the Error:&lt;/P&gt;&lt;P&gt;/home/nexus/imx6solox/mqx/mcc/examples/pingpong/mcc.c:398: undefined reference to `_mem_alloc_align_uncached'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there no uncached memory support in the MQX release for the imx6SX?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;greets&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 15:08:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/mqx-uncached-mem-alloc/m-p/496624#M79950</guid>
      <dc:creator>johannesstuttne</dc:creator>
      <dc:date>2016-02-08T15:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: mqx uncached mem alloc</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/mqx-uncached-mem-alloc/m-p/496625#M79951</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;From the latest MQX release for iMX6SX I am not able to find the _mem_alloc_asign_uncached nor the _mem_alloc_asign functions.&lt;/P&gt;&lt;P&gt;And according to a comment from the user_config.h file it seems that uncached memory is no supported.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alejandro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 21:46:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/mqx-uncached-mem-alloc/m-p/496625#M79951</guid>
      <dc:creator>alejandrolozan1</dc:creator>
      <dc:date>2016-02-11T21:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: mqx uncached mem alloc</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/mqx-uncached-mem-alloc/m-p/496626#M79952</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;in /mqx/lib/bsp/mqx.h the following functions are declared....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;#if MQX_USE_UNCACHED_MEM &amp;amp;&amp;amp; PSP_HAS_DATA_CACHE&lt;/P&gt;&lt;P&gt;void&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *_mem_alloc_uncached(_mem_size);&lt;/P&gt;&lt;P&gt;void&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *_mem_alloc_align_uncached(_mem_size, _mem_size);&lt;/P&gt;&lt;P&gt;void&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *_mem_alloc_system_uncached(_mem_size);&lt;/P&gt;&lt;P&gt;void&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *_mem_alloc_system_zero_uncached(_mem_size);&lt;/P&gt;&lt;P&gt;#else /* MQX_USE_UNCACHED_MEM &amp;amp;&amp;amp; PSP_HAS_DATA_CACHE */&lt;/P&gt;&lt;P&gt;#define _mem_alloc_uncached _mem_alloc&lt;/P&gt;&lt;P&gt;#define _mem_alloc_align_uncached _mem_alloc_align&lt;/P&gt;&lt;P&gt;#define _mem_alloc_system_uncached _mem_alloc_system&lt;/P&gt;&lt;P&gt;#define _mem_alloc_system_zero_uncached _mem_alloc_system_zero&lt;/P&gt;&lt;P&gt;#endif /* MQX_USE_UNCACHED_MEM &amp;amp;&amp;amp; PSP_HAS_DATA_CACHE */&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also in /mqx/mqx/sources/kernel/mem.c the _mem_alloc_unchached function allocates memory from a defined area named UNCACHED_POOL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in user_config.h the support is disabled by default....&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;/* don't support uncached memory */&lt;/P&gt;&lt;P&gt;#define MQX_USE_UNCACHED_MEM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;#define MQX_USE_LWMEM_ALLOCATOR&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can´t believe that the ENET controller is the only Hardware which needs uncached mem addresses....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Feb 2016 21:26:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/mqx-uncached-mem-alloc/m-p/496626#M79952</guid>
      <dc:creator>johannesstuttne</dc:creator>
      <dc:date>2016-02-15T21:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: mqx uncached mem alloc</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/mqx-uncached-mem-alloc/m-p/496627#M79953</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;After delving into it I just found that the uncached memory at least in MQX is used in ENET buffers, buffer descriptors and USB buffers too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Alejandro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 01:44:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/mqx-uncached-mem-alloc/m-p/496627#M79953</guid>
      <dc:creator>alejandrolozan1</dc:creator>
      <dc:date>2016-02-19T01:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: mqx uncached mem alloc</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/mqx-uncached-mem-alloc/m-p/496628#M79954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alejandro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already assumed that the Enet Buffer Discriptors and other DMA Registers needs Pointers to uncached Memory Areas. But the questions was how to enable this function in the MQX i.mx6SX release.... As mentioned in my first post the compiler terminates with an error when MQX_USE_UNCACHED_MEM is set to 1.&lt;/P&gt;&lt;P&gt;Is it possible that the function is not supported in the imx6 release?!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;greets&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 11:59:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/mqx-uncached-mem-alloc/m-p/496628#M79954</guid>
      <dc:creator>johannesstuttne</dc:creator>
      <dc:date>2016-02-19T11:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: mqx uncached mem alloc</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/mqx-uncached-mem-alloc/m-p/496629#M79955</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;From what I have seen in the code, they are not supported in the imx6sx BSP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alejandro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 18:40:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/mqx-uncached-mem-alloc/m-p/496629#M79955</guid>
      <dc:creator>alejandrolozan1</dc:creator>
      <dc:date>2016-02-29T18:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: mqx uncached mem alloc</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/mqx-uncached-mem-alloc/m-p/496630#M79956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can this assumption be verified by someone?!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 19:43:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/mqx-uncached-mem-alloc/m-p/496630#M79956</guid>
      <dc:creator>johannesstuttne</dc:creator>
      <dc:date>2016-02-29T19:43:30Z</dc:date>
    </item>
  </channel>
</rss>

