<?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>S32KのトピックCircular buffer - DMA transfer</title>
    <link>https://community.nxp.com/t5/S32K/Circular-buffer-DMA-transfer/m-p/2035609#M45511</link>
    <description>&lt;P&gt;Hello NXP team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to configure DMA for a circular buffer transfer other than the source and destination&amp;nbsp;&lt;STRONG&gt;modulo&lt;/STRONG&gt; variable ?&lt;BR /&gt;what if the buffer size is not a power of 2 ?&lt;/P&gt;&lt;P&gt;example array size is 10, number of bytes to be transfered is 10 x 2 = 20 bytes ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jan 2025 12:12:49 GMT</pubDate>
    <dc:creator>user_244572</dc:creator>
    <dc:date>2025-01-29T12:12:49Z</dc:date>
    <item>
      <title>Circular buffer - DMA transfer</title>
      <link>https://community.nxp.com/t5/S32K/Circular-buffer-DMA-transfer/m-p/2035609#M45511</link>
      <description>&lt;P&gt;Hello NXP team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to configure DMA for a circular buffer transfer other than the source and destination&amp;nbsp;&lt;STRONG&gt;modulo&lt;/STRONG&gt; variable ?&lt;BR /&gt;what if the buffer size is not a power of 2 ?&lt;/P&gt;&lt;P&gt;example array size is 10, number of bytes to be transfered is 10 x 2 = 20 bytes ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 12:12:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Circular-buffer-DMA-transfer/m-p/2035609#M45511</guid>
      <dc:creator>user_244572</dc:creator>
      <dc:date>2025-01-29T12:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Circular buffer - DMA transfer</title>
      <link>https://community.nxp.com/t5/S32K/Circular-buffer-DMA-transfer/m-p/2035775#M45529</link>
      <description>&lt;P&gt;It is indeed the most common configuration.&lt;/P&gt;
&lt;P&gt;Double buffering scheme you may also create with using of INT_HALF interrupt.&lt;/P&gt;
&lt;P&gt;But you may use links or scatter/gather features to create special configuration just in accordance to your specific needs.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 17:25:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Circular-buffer-DMA-transfer/m-p/2035775#M45529</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2025-01-29T17:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Circular buffer - DMA transfer</title>
      <link>https://community.nxp.com/t5/S32K/Circular-buffer-DMA-transfer/m-p/2036033#M45539</link>
      <description>&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;Thanks for your answer.&lt;/P&gt;&lt;P&gt;Can you elaborate more on that ?&lt;/P&gt;&lt;P&gt;what if the buffer size changes dynamically as well ?&lt;/P&gt;&lt;P&gt;It would be great if you can provide examples.&lt;/P&gt;&lt;P&gt;My ultimate goal at the end is to read data periodically from a lookup table that changes dynamically in sizes based on input frequency and transfer this data to Emios registers.&lt;BR /&gt;We need to read from the table in a circular way.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2025 07:51:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Circular-buffer-DMA-transfer/m-p/2036033#M45539</guid>
      <dc:creator>user_244572</dc:creator>
      <dc:date>2025-01-30T07:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Circular buffer - DMA transfer</title>
      <link>https://community.nxp.com/t5/S32K/Circular-buffer-DMA-transfer/m-p/2037205#M45588</link>
      <description>&lt;P&gt;&lt;BR /&gt;Here you may see appnote dealing with eDMA (even written for different product line, it is still almost the same DMA module&lt;BR /&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN4765.pdf" target="_blank" rel="noopener"&gt;https://www.nxp.com/docs/en/application-note/AN4765.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Witch Scatter-gather functionality you may achieve even dynamic buffer size, even it may be mor complex use.&lt;/P&gt;
&lt;P&gt;In RM, there is a chapter dealing with this in a great detail:&lt;BR /&gt;15.5.8 Dynamic programming&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="tinyMceEditordavidtosenovjan_1" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 12:52:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Circular-buffer-DMA-transfer/m-p/2037205#M45588</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2025-02-03T12:52:04Z</dc:date>
    </item>
  </channel>
</rss>

