<?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 K70 DMA transfers in DDR2 memory in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K70-DMA-transfers-in-DDR2-memory/m-p/1489681#M63568</link>
    <description>&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;I am trying to understand&lt;/FONT&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt; t&lt;/FONT&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;he&lt;/FONT&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt; DMA settings needed to transfer 1,920,000 bytes from one section of DDR to another. I am working with D4D/eGui and need to utilize DMA transfers for the double buffering system. I am using MQX 4.0 and CW 10.6. The system is setup to use DMA channel 0. During this testing, no other DMA channels are active.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;Caching has been DISABLED for memory region 7. This is needed to get any reasonable results.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;Below are the DMA settings just prior to starting the DMA transfer. In order to get all the bytes (1,920,000), I need to set&amp;nbsp;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;NBYTES_MLNO to a value of 960,000. I would have thought that either 1920000 would be used or 480,000 (=1920000/4) because I do have ATTR set to transfer 4 bytes at one time (SSIZE=2).&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;Can anyone explain why this value is needed?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;PRE-DMA Settings&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;DMA_ES: 0x00000000&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp;DMA_ERR: 0x00000000&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;DMA_CR: 0x00000400&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SADDR: 0x70000000&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SOFF: 0x00000004&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SLAST: 0x00000000&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DADDR: 0x70400000&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DOFF: 0x00000004&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DLAST: 0x00000000&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ATTR: 0x00000202&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NBYTES: 0x000EA600 (DMA_TCD0_NBYTES_MLNO = &lt;FONT size="1 2 3 4 5 6 7"&gt;960000&lt;/FONT&gt;)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CITER: 0x00000001&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BITER: 0x00000001&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CSR: 0x00000002&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;Attached is my ISR code. I found that I had to set the CSR to 0 in order to prevent multiple ISR calls from happening. The other statements in the ISR did not prevent this.&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Jul 2022 19:30:34 GMT</pubDate>
    <dc:creator>markdoxbeck</dc:creator>
    <dc:date>2022-07-14T19:30:34Z</dc:date>
    <item>
      <title>K70 DMA transfers in DDR2 memory</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K70-DMA-transfers-in-DDR2-memory/m-p/1489681#M63568</link>
      <description>&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;I am trying to understand&lt;/FONT&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt; t&lt;/FONT&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;he&lt;/FONT&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt; DMA settings needed to transfer 1,920,000 bytes from one section of DDR to another. I am working with D4D/eGui and need to utilize DMA transfers for the double buffering system. I am using MQX 4.0 and CW 10.6. The system is setup to use DMA channel 0. During this testing, no other DMA channels are active.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;Caching has been DISABLED for memory region 7. This is needed to get any reasonable results.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;Below are the DMA settings just prior to starting the DMA transfer. In order to get all the bytes (1,920,000), I need to set&amp;nbsp;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;NBYTES_MLNO to a value of 960,000. I would have thought that either 1920000 would be used or 480,000 (=1920000/4) because I do have ATTR set to transfer 4 bytes at one time (SSIZE=2).&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;Can anyone explain why this value is needed?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;PRE-DMA Settings&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;DMA_ES: 0x00000000&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp;DMA_ERR: 0x00000000&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;DMA_CR: 0x00000400&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SADDR: 0x70000000&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SOFF: 0x00000004&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SLAST: 0x00000000&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DADDR: 0x70400000&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DOFF: 0x00000004&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DLAST: 0x00000000&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ATTR: 0x00000202&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NBYTES: 0x000EA600 (DMA_TCD0_NBYTES_MLNO = &lt;FONT size="1 2 3 4 5 6 7"&gt;960000&lt;/FONT&gt;)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CITER: 0x00000001&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BITER: 0x00000001&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CSR: 0x00000002&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;Attached is my ISR code. I found that I had to set the CSR to 0 in order to prevent multiple ISR calls from happening. The other statements in the ISR did not prevent this.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2022 19:30:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K70-DMA-transfers-in-DDR2-memory/m-p/1489681#M63568</guid>
      <dc:creator>markdoxbeck</dc:creator>
      <dc:date>2022-07-14T19:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: K70 DMA transfers in DDR2 memory</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K70-DMA-transfers-in-DDR2-memory/m-p/1498181#M63699</link>
      <description>&lt;P&gt;Sorry MQX 4.0 is too old, can you test it on MQX 4.2&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately both are no longer supported and MQX 5 has cost&lt;/P&gt;
&lt;P&gt;Regards Vicente&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 18:05:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K70-DMA-transfers-in-DDR2-memory/m-p/1498181#M63699</guid>
      <dc:creator>vicentegomez</dc:creator>
      <dc:date>2022-07-29T18:05:22Z</dc:date>
    </item>
  </channel>
</rss>

