<?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 K61 HS USB with cache enabled in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K61-HS-USB-with-cache-enabled/m-p/733027#M44822</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using HS USB on a Mk61FN1M0VMJ12 MCU.&amp;nbsp; My code is working when the cache is disabled, but not when it is enabled.&amp;nbsp; Is there some interaction between the cache and HS USB peripheral?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance :smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Jan 2018 16:47:53 GMT</pubDate>
    <dc:creator>mrharmonsr</dc:creator>
    <dc:date>2018-01-17T16:47:53Z</dc:date>
    <item>
      <title>K61 HS USB with cache enabled</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K61-HS-USB-with-cache-enabled/m-p/733027#M44822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using HS USB on a Mk61FN1M0VMJ12 MCU.&amp;nbsp; My code is working when the cache is disabled, but not when it is enabled.&amp;nbsp; Is there some interaction between the cache and HS USB peripheral?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance :smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2018 16:47:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K61-HS-USB-with-cache-enabled/m-p/733027#M44822</guid>
      <dc:creator>mrharmonsr</dc:creator>
      <dc:date>2018-01-17T16:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: K61 HS USB with cache enabled</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K61-HS-USB-with-cache-enabled/m-p/733028#M44823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Larry,&lt;/P&gt;&lt;P&gt;there isn't a word said that HS USB is conflict with cache. When you use HS USB, you should only close MPU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 02:36:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K61-HS-USB-with-cache-enabled/m-p/733028#M44823</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2018-01-22T02:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: K61 HS USB with cache enabled</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K61-HS-USB-with-cache-enabled/m-p/733029#M44824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have continued to debug this issue.&amp;nbsp; I've found that in order to use HSUSB with the DDR region cache R8 enabled I needed to move the HSUSB endpoint descriptors, transfer descriptors and buffers to SRAM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 17:46:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K61-HS-USB-with-cache-enabled/m-p/733029#M44824</guid>
      <dc:creator>mrharmonsr</dc:creator>
      <dc:date>2018-01-31T17:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: K61 HS USB with cache enabled</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K61-HS-USB-with-cache-enabled/m-p/733030#M44825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am still enable to run the HSUSB with descriptors located in a cached memory region.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I have improved my situation by using a two DDR regions, one cached and the other non-cached.&lt;/P&gt;&lt;P&gt;I enable caching in region 8 and disable caching in region 7, the aliased address&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am linking the HSUSB descriptors in the cached DDR system section (0x8xxxxxxx)&amp;nbsp;then adjusting the addresses to the aliased, non-cached&amp;nbsp;DDR section (0x7xxxxxxx) by subtracting 0x10000000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This solution seems to work well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Feb 2018 15:58:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K61-HS-USB-with-cache-enabled/m-p/733030#M44825</guid>
      <dc:creator>mrharmonsr</dc:creator>
      <dc:date>2018-02-14T15:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: K61 HS USB with cache enabled</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K61-HS-USB-with-cache-enabled/m-p/733031#M44826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi @&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/mrharmonsr"&gt;mrharmonsr&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think the K61 block diagram below will help explain what you are seeing.&amp;nbsp; The system cache is used on the two master busses from the Cortex-M4 core, called SYSTEM and CODE bus.&amp;nbsp; Accesses from the other crossbar masters, like the High-Speed USB, do not interact with the cache.&amp;nbsp; When using RAM that is shared between multiple masters, like the USB buffers and descriptors, that RAM should not be cached.&amp;nbsp; The internal SRAM is an ideal location for the USB memory, as it is tightly coupled to the core, so doesn’t benefit from cache, and is accessible by other masters.&amp;nbsp; If you prefer to use external RAM for shared memory, then you can configure a cache region for non-cacheable.&amp;nbsp; Based on the memory map, you can use different cache policies for different cache regions, and divide your DRAM up between cacheable and non-cacheable regions.&amp;nbsp; See Cache Regions table below from the reference manual.&amp;nbsp; For more details on configuring a cache region as non-cacheable, refer to the LMEM_PCCRMR register in the Local Memory Controller chapter of the reference manual.&amp;nbsp; Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="K70 Block Diagram.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11640i39D1F100E20F70F5/image-size/large?v=v2&amp;amp;px=999" role="button" title="K70 Block Diagram.png" alt="K70 Block Diagram.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Cache Regions.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11678iCB195971D362F598/image-size/large?v=v2&amp;amp;px=999" role="button" title="Cache Regions.png" alt="Cache Regions.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Feb 2018 16:47:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K61-HS-USB-with-cache-enabled/m-p/733031#M44826</guid>
      <dc:creator>dereksnell</dc:creator>
      <dc:date>2018-02-14T16:47:29Z</dc:date>
    </item>
  </channel>
</rss>

