<?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 DMA source address change issue in S32K</title>
    <link>https://community.nxp.com/t5/S32K/DMA-source-address-change-issue/m-p/1979875#M42422</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I meet a problem of DMA on S32K312 chip. The application scenario is moving the ADC sampling data to a fixed buffer by DMA.&lt;/P&gt;
&lt;P&gt;The ADC1 channel data register address is set as the source address of DMA TCD1 channel, and the buffer address is set as the DMA destination address. But once the ADC sampling is triggered, the DMA source address changes (from 0x400A4118 to 0x400a117), and the CHE_ES register indicates the SAE and DAE errors.&lt;/P&gt;
&lt;P&gt;The source address of DMA is configured as fixed address, and there is no place to change the SADDR register, it just changes actumatically.&amp;nbsp; Please see the attached pictures.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Oct 2024 06:32:28 GMT</pubDate>
    <dc:creator>aaronwang</dc:creator>
    <dc:date>2024-10-23T06:32:28Z</dc:date>
    <item>
      <title>DMA source address change issue</title>
      <link>https://community.nxp.com/t5/S32K/DMA-source-address-change-issue/m-p/1979875#M42422</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I meet a problem of DMA on S32K312 chip. The application scenario is moving the ADC sampling data to a fixed buffer by DMA.&lt;/P&gt;
&lt;P&gt;The ADC1 channel data register address is set as the source address of DMA TCD1 channel, and the buffer address is set as the DMA destination address. But once the ADC sampling is triggered, the DMA source address changes (from 0x400A4118 to 0x400a117), and the CHE_ES register indicates the SAE and DAE errors.&lt;/P&gt;
&lt;P&gt;The source address of DMA is configured as fixed address, and there is no place to change the SADDR register, it just changes actumatically.&amp;nbsp; Please see the attached pictures.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 06:32:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/DMA-source-address-change-issue/m-p/1979875#M42422</guid>
      <dc:creator>aaronwang</dc:creator>
      <dc:date>2024-10-23T06:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: DMA source address change issue</title>
      <link>https://community.nxp.com/t5/S32K/DMA-source-address-change-issue/m-p/1979920#M42424</link>
      <description>&lt;P&gt;Hi Aaron,&lt;/P&gt;
&lt;P&gt;After checked the project and called, a preliminary conclusion is as follows:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The &lt;STRONG&gt;NBYTES&lt;/STRONG&gt; field of&amp;nbsp;&lt;SPAN&gt;DMA TCD1 channel is &lt;STRONG&gt;0(incorrect value)&lt;/STRONG&gt; and the DMA engine start with this value.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="frank_yang_1_0-1729667153589.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/306341i31F914961565C708/image-size/medium?v=v2&amp;amp;px=400" role="button" title="frank_yang_1_0-1729667153589.png" alt="frank_yang_1_0-1729667153589.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;This resulted in &lt;STRONG&gt;SADDR&lt;/STRONG&gt; and &lt;STRONG&gt;DADDR&lt;/STRONG&gt; register unexpected behavior then cause the DMA error.&amp;nbsp; Details:
&lt;UL&gt;
&lt;LI&gt;SADDR still decrements by 1 after a DMA minor loop (1 DMA request),although the SMLOE is disable.&lt;/LI&gt;
&lt;LI&gt;DADDR add a significant offset(&lt;SPAN&gt;&lt;STRONG&gt;incorrect value&lt;/STRONG&gt;&lt;/SPAN&gt;) after a minor loop.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;When &lt;STRONG&gt;setting NBYTES to the correct value&lt;/STRONG&gt;, this issue will be solved. You could try it.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;But there is a potential issue that the S32K3 RM don`t mentioned DMA behavior pattern like this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Frank&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 07:07:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/DMA-source-address-change-issue/m-p/1979920#M42424</guid>
      <dc:creator>frank_yang_1_offboarding</dc:creator>
      <dc:date>2024-10-23T07:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: DMA source address change issue</title>
      <link>https://community.nxp.com/t5/S32K/DMA-source-address-change-issue/m-p/1980025#M42429</link>
      <description>&lt;P&gt;Hi, Frank&lt;/P&gt;
&lt;P&gt;Thank you so much. The issue has been fixed after trying your method. It's really weird the NBYTES setting can impact the SADDR register.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 08:35:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/DMA-source-address-change-issue/m-p/1980025#M42429</guid>
      <dc:creator>aaronwang</dc:creator>
      <dc:date>2024-10-23T08:35:36Z</dc:date>
    </item>
  </channel>
</rss>

