<?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中的主题 Re: ADC_DMA</title>
    <link>https://community.nxp.com/t5/S32K/ADC-DMA/m-p/2118588#M50030</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for your response. Based on my previous description, I want to use DMA with a custom design NOT BCTU:&lt;/P&gt;&lt;P&gt;The design I am building is to read ADC data from FIFO1 register using DMA Channel 1 and read ADC data from FIFO2 register using DMA Channel 16, storing both in one software buffer.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;FIFO1 register --&amp;gt; software buffer[21]&lt;/LI&gt;&lt;LI&gt;FIFO2 register --&amp;gt; same software buffer, but needs an offset value of the signal number of FIFO1 signals .The Total ADC signals are 21.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Here the main issue:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have chained Channel 1 and Channel 2, so when Channel 1 completes its major loop, Channel 2 should start transferring the data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Channel 2 configurations:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Source: software buffer[21]&lt;/LI&gt;&lt;LI&gt;Destination: software buffer[210]&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;But the system is not working. I have attached my project so you can easily identify the issue. I would appreciate it if you could have a look and find the reason for the issue.&lt;BR /&gt;in adddtion to that i aslo have an issue :&lt;BR /&gt;Since the destination address [21] for both Channel 1 and Channel 16 is the same, Channel 1 reads 16 signals from FIFO1 and Channel 16 reads 5 signals from FIFO2, totaling 21 signals. How can I offset the destination address for Channel 16 by 16 in the DMA configurations? Currently, I am using a software offset, but I would like to do it in the DMA configurations.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Skærmbillede 2025-06-18 144433.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/343567i30F6A9F053F77ED3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Skærmbillede 2025-06-18 144433.png" alt="Skærmbillede 2025-06-18 144433.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
    <pubDate>Wed, 18 Jun 2025 13:13:38 GMT</pubDate>
    <dc:creator>Ayaz</dc:creator>
    <dc:date>2025-06-18T13:13:38Z</dc:date>
    <item>
      <title>ADC_DMA</title>
      <link>https://community.nxp.com/t5/S32K/ADC-DMA/m-p/2108705#M49485</link>
      <description>&lt;P&gt;I am using the S32K344 with RTD version 5. I have designed my ADC signal readings to be read in a specific sequence, offset by eMIOS triggers. Currently, I am reading the ADC data using&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Bctu_Ip_GetFifoData(). The system works as expected, with&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;BCTU_IRQn&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;interrupts for FIFO1 and FIFO2.&lt;/P&gt;&lt;P&gt;Now, I need to switch to DMA, using&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;DMATCD1_IRQn&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;for FIFO1 and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;DMATCD16_IRQn&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;for FIFO2. The issue I am encountering is that I am unable to read the signals for FIFO2 unless I disable the interrupt for FIFO1, and vice versa. I have attached my project so you can have a closer look at the issue.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jun 2025 14:34:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/ADC-DMA/m-p/2108705#M49485</guid>
      <dc:creator>Ayaz</dc:creator>
      <dc:date>2025-06-02T14:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: ADC_DMA</title>
      <link>https://community.nxp.com/t5/S32K/ADC-DMA/m-p/2118104#M49992</link>
      <description>&lt;P&gt;Thank you for your interest in our products and for contributing to our community.&lt;/P&gt;
&lt;P&gt;Please find attached project.&lt;/P&gt;
&lt;P&gt;This example implements two BCTU lists for parallel conversions using ADC0 and ADC1. Each conversion is triggered by a separate PIT channel, and the resulting data is stored in FIFO1 and FIFO2, respectively, as follows:&lt;/P&gt;
&lt;P&gt;PIT ch0 -&amp;gt; BCTU List 1 -&amp;gt; FIFO1&lt;BR /&gt;ADC0: S10 and VREFL&lt;BR /&gt;ADC1: Bandgap and VREFH&lt;/P&gt;
&lt;P&gt;PIT ch1 -&amp;gt; BCTU List 2 -&amp;gt; FIFO2&lt;BR /&gt;ADC0: VREFH and Bandgap&lt;BR /&gt;ADC1: VREFL and S10&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="_Leo__0-1750201623389.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/343443iB9F08DB4B1B8195E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="_Leo__0-1750201623389.png" alt="_Leo__0-1750201623389.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Note that ADC channels are used by both ADC instance in both BCTU lists. So S10 with ADC0 is routed to PTD3, meanwhile with ADC1 is routed to on-board potentiometer.&lt;/P&gt;
&lt;P&gt;Please use S32DS 3.6, RTD 5.0.0 and S32K3X4EVB-T172.&lt;/P&gt;
&lt;P&gt;I hope this information is helpful.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jun 2025 23:08:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/ADC-DMA/m-p/2118104#M49992</guid>
      <dc:creator>_Leo_</dc:creator>
      <dc:date>2025-06-17T23:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: ADC_DMA</title>
      <link>https://community.nxp.com/t5/S32K/ADC-DMA/m-p/2118588#M50030</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for your response. Based on my previous description, I want to use DMA with a custom design NOT BCTU:&lt;/P&gt;&lt;P&gt;The design I am building is to read ADC data from FIFO1 register using DMA Channel 1 and read ADC data from FIFO2 register using DMA Channel 16, storing both in one software buffer.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;FIFO1 register --&amp;gt; software buffer[21]&lt;/LI&gt;&lt;LI&gt;FIFO2 register --&amp;gt; same software buffer, but needs an offset value of the signal number of FIFO1 signals .The Total ADC signals are 21.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Here the main issue:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have chained Channel 1 and Channel 2, so when Channel 1 completes its major loop, Channel 2 should start transferring the data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Channel 2 configurations:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Source: software buffer[21]&lt;/LI&gt;&lt;LI&gt;Destination: software buffer[210]&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;But the system is not working. I have attached my project so you can easily identify the issue. I would appreciate it if you could have a look and find the reason for the issue.&lt;BR /&gt;in adddtion to that i aslo have an issue :&lt;BR /&gt;Since the destination address [21] for both Channel 1 and Channel 16 is the same, Channel 1 reads 16 signals from FIFO1 and Channel 16 reads 5 signals from FIFO2, totaling 21 signals. How can I offset the destination address for Channel 16 by 16 in the DMA configurations? Currently, I am using a software offset, but I would like to do it in the DMA configurations.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Skærmbillede 2025-06-18 144433.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/343567i30F6A9F053F77ED3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Skærmbillede 2025-06-18 144433.png" alt="Skærmbillede 2025-06-18 144433.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 18 Jun 2025 13:13:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/ADC-DMA/m-p/2118588#M50030</guid>
      <dc:creator>Ayaz</dc:creator>
      <dc:date>2025-06-18T13:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: ADC_DMA</title>
      <link>https://community.nxp.com/t5/S32K/ADC-DMA/m-p/2119387#M50080</link>
      <description>&lt;P&gt;I have not received an answer yet&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jun 2025 12:20:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/ADC-DMA/m-p/2119387#M50080</guid>
      <dc:creator>Ayaz</dc:creator>
      <dc:date>2025-06-19T12:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: ADC_DMA</title>
      <link>https://community.nxp.com/t5/S32K/ADC-DMA/m-p/2120202#M50108</link>
      <description>&lt;P&gt;Hi Ayaz,&lt;/P&gt;
&lt;P&gt;seems you had just wrong DMA config, did not enable channel linking and had incorrect Transfer control for DMA channels. See attached modification I did...&lt;BR /&gt;Buffers are then filled, not sure if properly as you set system to transfer just raw data&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PetrS_0-1750420165391.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/343985i508006B452F584CA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PetrS_0-1750420165391.png" alt="PetrS_0-1750420165391.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Hope it helps.&lt;/P&gt;
&lt;P&gt;BR, Petr&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jun 2025 11:50:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/ADC-DMA/m-p/2120202#M50108</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2025-06-20T11:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: ADC_DMA</title>
      <link>https://community.nxp.com/t5/S32K/ADC-DMA/m-p/2120308#M50112</link>
      <description>&lt;P&gt;Thanks for your response. It works now.&lt;/P&gt;&lt;P&gt;Now, I have a question regarding the configuration of CH2. The source buffer is an array of 21 signals, but I only want to transfer the first 16 signals into the destination buffer. There will be 10 samples in total, making 160 samples. The destination buffer is of size 160 and uses the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;unsigned16&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;data type.&lt;/P&gt;&lt;P&gt;However, in the CH2 configuration, it is possible to transfer 32 bytes at a time, which is my full data per minor loop. So, I have changed my configurations to:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Source transfer size: 32 bytes&lt;/LI&gt;&lt;LI&gt;Destination transfer size: 32 bytes&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;But it is not working. Do you know the reason? What approach is better? What do you suggest?&lt;BR /&gt;New&amp;nbsp;configurations :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ayaz_0-1750439370569.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/344008i7BAD847571B6D711/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ayaz_0-1750439370569.png" alt="Ayaz_0-1750439370569.png" /&gt;&lt;/span&gt;&lt;BR /&gt;the previous approach:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ayaz_1-1750439921953.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/344009iF8555C757670AE1C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ayaz_1-1750439921953.png" alt="Ayaz_1-1750439921953.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;i have attached the project with new configurations&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jun 2025 17:22:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/ADC-DMA/m-p/2120308#M50112</guid>
      <dc:creator>Ayaz</dc:creator>
      <dc:date>2025-06-20T17:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: ADC_DMA</title>
      <link>https://community.nxp.com/t5/S32K/ADC-DMA/m-p/2121265#M50148</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;you kept wrong Transfer setting for ch16 and have wrong one for 32byte transfer on ch2. See&amp;nbsp; attached screenshots for&amp;nbsp;&lt;SPAN&gt;modified setting &lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Moreover buffers have to be aligned accordingly as per used transfers&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PetrS_0-1750667127203.png" style="width: 675px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/344157i7F15C19D9A74907A/image-dimensions/675x54?v=v2" width="675" height="54" role="button" title="PetrS_0-1750667127203.png" alt="PetrS_0-1750667127203.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;BR, Petr&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jun 2025 08:29:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/ADC-DMA/m-p/2121265#M50148</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2025-06-23T08:29:10Z</dc:date>
    </item>
  </channel>
</rss>

