<?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 Can't DMA to off-chip Memory in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Can-t-DMA-to-off-chip-Memory/m-p/237622#M6640</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written an DMA SPI driver in MQX (but not MQX's driver), however I can't get the DMA to write to externally configured (FlexBus) SRAM.&amp;nbsp; Writes to internal memory works fine.&amp;nbsp; I'm using the K60 processor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sure there is a protection bit somewhere preventing this, but given the number of peripherals that could effect this (SIM, Flexbus, DMA, Crossbar Swtich, MPU, AIPS), I wanted to put this question to the group in the hopes someone would just know.&amp;nbsp; I have FBSEL set to allow off-chip code and data access.&amp;nbsp; Non-DMA off-chip access works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;PMT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 15 Feb 2014 15:52:48 GMT</pubDate>
    <dc:creator>pmt</dc:creator>
    <dc:date>2014-02-15T15:52:48Z</dc:date>
    <item>
      <title>Can't DMA to off-chip Memory</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Can-t-DMA-to-off-chip-Memory/m-p/237622#M6640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written an DMA SPI driver in MQX (but not MQX's driver), however I can't get the DMA to write to externally configured (FlexBus) SRAM.&amp;nbsp; Writes to internal memory works fine.&amp;nbsp; I'm using the K60 processor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sure there is a protection bit somewhere preventing this, but given the number of peripherals that could effect this (SIM, Flexbus, DMA, Crossbar Swtich, MPU, AIPS), I wanted to put this question to the group in the hopes someone would just know.&amp;nbsp; I have FBSEL set to allow off-chip code and data access.&amp;nbsp; Non-DMA off-chip access works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;PMT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Feb 2014 15:52:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Can-t-DMA-to-off-chip-Memory/m-p/237622#M6640</guid>
      <dc:creator>pmt</dc:creator>
      <dc:date>2014-02-15T15:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Can't DMA to off-chip Memory</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Can-t-DMA-to-off-chip-Memory/m-p/237623#M6641</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;&lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;/SPAN&gt;MQX 4.0.2 Kinetis BSPs are prepared for use with DMA. Make sure that you enable DMA for SPI modules in your user configuration. In user config.h, make sure you configure:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; BSPCFG_DSPI0_USE_DMA 1&lt;/P&gt;&lt;P&gt;&amp;nbsp; BSPCFG_DSPI1_USE_DMA 1&lt;/P&gt;&lt;P&gt;&amp;nbsp; BSPCFG_DSPI2_USE_DMA 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;build time options. Then build BSP with these configuration. For source code effects, check init_spi.c in the /mqx/source/bsp/&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;Sol&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Feb 2014 21:27:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Can-t-DMA-to-off-chip-Memory/m-p/237623#M6641</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2014-02-21T21:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: Can't DMA to off-chip Memory</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Can-t-DMA-to-off-chip-Memory/m-p/237624#M6642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem found.&amp;nbsp; DMA does not interact with cache.&amp;nbsp; Cache flushes are needed when DMA'ing into cacheable regions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 May 2014 16:47:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Can-t-DMA-to-off-chip-Memory/m-p/237624#M6642</guid>
      <dc:creator>pmt</dc:creator>
      <dc:date>2014-05-01T16:47:49Z</dc:date>
    </item>
  </channel>
</rss>

