<?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 with BCTU</title>
    <link>https://community.nxp.com/t5/S32K/Adc-Dma-with-BCTU/m-p/1922922#M38643</link>
    <description>&lt;P&gt;Hi &lt;A id="link_5" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.nxp.com/t5/user/viewprofilepage/user-id/173289" target="_self" aria-label="View Profile of emerging"&gt;&lt;SPAN class=""&gt;emerging&lt;/SPAN&gt;&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;I saw you got many issues with configuration, so i've done to create example working with your expectation in correctly RTD 2.0.0 version.&lt;/P&gt;
&lt;P&gt;Please check the attached file. &lt;STRONG&gt;Password: NXP&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;3 things you should focus on:&lt;/P&gt;
&lt;P&gt;- The Bctu hw unit configure, with the LIST channels and DMA transfer channel. This is important. Please follow my configuration in example.&lt;/P&gt;
&lt;P&gt;- The Index of Internal trigger of Adc using for Bctu, should go with the correct value of source trigger. This is a bug from driver 2.0.0, when the source trigger not follow the index, but the value of source.&lt;/P&gt;
&lt;P&gt;E.g AdcHwTrigger2, with source eMIOS0_4, then the index of it should be 2. But the driver takes the value of source as 4, then the register&amp;nbsp;TRGCFG_[4] be setup, instead of&amp;nbsp; TRGCFG_[0]&lt;/P&gt;
&lt;P&gt;My solution is, using the Index equal with trigger source. For example, the index0 should go with hardware trigger source 0, which is eMIOS0_0&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NamLee_1-1722507931674.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/291403i1007B6921EA833C6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NamLee_1-1722507931674.png" alt="NamLee_1-1722507931674.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;- One last suggestion, in the DMA configuration, due to 2.0.0 the DMA configure is not separate to Rm module, so in this configuration, please pay attention to not Enable the DMAMUX Trigger&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NamLee_3-1722508022965.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/291405i964B2207CAEB6118/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NamLee_3-1722508022965.png" alt="NamLee_3-1722508022965.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Other than that, all configuration of this quite common, you can follow my configuration.&lt;/P&gt;
&lt;P&gt;As my test, the Dma raised request isr&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NamLee_0-1722507267213.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/291393iC33B29E8A6758022/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NamLee_0-1722507267213.png" alt="NamLee_0-1722507267213.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;and the BctuDmaFifo1 buffer has data in it.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NamLee_4-1722508364894.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/291406i762B32BAE621A9C0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NamLee_4-1722508364894.png" alt="NamLee_4-1722508364894.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Please check the example and give me questions here if you have.&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Nam.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Aug 2024 10:34:31 GMT</pubDate>
    <dc:creator>NamLee</dc:creator>
    <dc:date>2024-08-01T10:34:31Z</dc:date>
    <item>
      <title>Adc Dma with BCTU</title>
      <link>https://community.nxp.com/t5/S32K/Adc-Dma-with-BCTU/m-p/1906379#M37584</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;I have three adc groups contain 11 adc channels. Group1(3 channels) group2(5 channels) group3(3 channels)&lt;BR /&gt;We already done it as bctu triggered and adc read with transfer type is interrupt. Now i need to change the trasfer mode from interrupt to DMA&lt;BR /&gt;For this i enabled AdcEnableDmaTransferMode and changed AdcTransferType as ADC_DMA inside AdcHwUnit,also configured dma in mcl for this adc. Other than this there is anymore configuration i have to do like enabling CtuEnableDmaTransferMode and configuration inside BctuHwUnits etc are needed.&lt;BR /&gt;If possible please share any example that can support my activity&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 14:19:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Adc-Dma-with-BCTU/m-p/1906379#M37584</guid>
      <dc:creator>emerging</dc:creator>
      <dc:date>2024-07-11T14:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Adc Dma with BCTU</title>
      <link>https://community.nxp.com/t5/S32K/Adc-Dma-with-BCTU/m-p/1908363#M37695</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A id="link_5" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.nxp.com/t5/user/viewprofilepage/user-id/173289" target="_self" aria-label="View Profile of emerging"&gt;&lt;SPAN class=""&gt;emerging&lt;/SPAN&gt;&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;I got your private message. Please help me log a ticket in AP-Software community for tracking:&amp;nbsp;&lt;A href="https://community.nxp.com/t5/AP-Software-Support/bd-p/ap-software-support" target="_blank"&gt;https://community.nxp.com/t5/AP-Software-Support/bd-p/ap-software-support&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Please share the version of RTD package that you're using, also the name of derivative.&lt;/P&gt;
&lt;P&gt;If you can share the configuration files (.xdm) it will be better for checking.&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Nam.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2024 06:10:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Adc-Dma-with-BCTU/m-p/1908363#M37695</guid>
      <dc:creator>NamLee</dc:creator>
      <dc:date>2024-07-15T06:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: Adc Dma with BCTU</title>
      <link>https://community.nxp.com/t5/S32K/Adc-Dma-with-BCTU/m-p/1908366#M37696</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/173289"&gt;@emerging&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Could you let me know which is the RTD package you are using?&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2024 06:12:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Adc-Dma-with-BCTU/m-p/1908366#M37696</guid>
      <dc:creator>DanNguyenDuy</dc:creator>
      <dc:date>2024-07-15T06:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: Adc Dma with BCTU</title>
      <link>https://community.nxp.com/t5/S32K/Adc-Dma-with-BCTU/m-p/1909754#M37762</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A id="link_5" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.nxp.com/t5/user/viewprofilepage/user-id/173289" target="_self" aria-label="View Profile of emerging"&gt;&lt;SPAN class=""&gt;emerging&lt;/SPAN&gt;&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;After checking and supporting in private message, i think the reason comes from the BctuHwUnit did not get configured and the Trigger sources for ADC group are not correct.&lt;/P&gt;
&lt;P&gt;Since the DMA works with external triggers, than i assume that the groups with BCTU trigger are not working.&lt;/P&gt;
&lt;P&gt;If you intend to use BCTU triggers, then you have to configure the BCTU Hw Unit by enabling the CTU Control Mode API&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NamLee_2-1721132228272.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/288759i20397A3B08F14689/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NamLee_2-1721132228272.png" alt="NamLee_2-1721132228272.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then you can configure the BCTU group source with the corresponding eMIOS trigger&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NamLee_3-1721132228280.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/288760i20D808576C0D7BED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NamLee_3-1721132228280.png" alt="NamLee_3-1721132228280.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The conversions can run with Single channel or LIST&lt;/P&gt;
&lt;P&gt;Also, you can configure FIFO data to storage the ADC conversion results,...&lt;/P&gt;
&lt;P&gt;As your channel groups are:&lt;/P&gt;
&lt;P&gt;For trigger one i have to read&lt;BR /&gt;P6_ChanNum6&lt;BR /&gt;P0_ChanNum0&lt;BR /&gt;P2_ChanNum2&lt;/P&gt;
&lt;P&gt;For trigger 2 i have to read&lt;BR /&gt;P7_ChanNum7&lt;BR /&gt;P3_ChanNum3&lt;BR /&gt;S8_ChanNum32&lt;BR /&gt;P1_ChanNum1&lt;BR /&gt;P5_ChanNum5&lt;/P&gt;
&lt;P&gt;For trigger 3 i have to read&lt;BR /&gt;P6_ChanNum6 ( repeat)&lt;BR /&gt;P0_ChanNum0 ( repeat)&lt;BR /&gt;P4_ChanNum4&lt;/P&gt;
&lt;P&gt;So,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you put all channel stick together from ID 0 to ID 10.&lt;/P&gt;
&lt;P&gt;The Trigger_0 should start from ID 0&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NamLee_4-1721132360769.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/288761i5E7515F4AFB2F4E6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NamLee_4-1721132360769.png" alt="NamLee_4-1721132360769.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;And in the Channel 2, you tick it as Last channel.&lt;/P&gt;
&lt;P&gt;For Trigger_1, the Start ID is 3&lt;/P&gt;
&lt;P&gt;and In channel 7 (&lt;SPAN&gt;P5_ChanNum5), select it as Last Channel.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;This sequence is 2 lists with different number of channels, breakpoints and start ID&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NamLee_5-1721132383236.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/288762i569AE3E1524A6B5F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NamLee_5-1721132383236.png" alt="NamLee_5-1721132383236.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You can read chapter 64.3.2.3 with CL channel rules&lt;/P&gt;
&lt;P&gt;Also the FIFO data will be storage, with last channel conversion notification you can check the data for each group.&lt;/P&gt;
&lt;P&gt;This should be describe in RM chapter 64.3.3&lt;/P&gt;
&lt;TABLE class="NormalTable"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="200"&gt;&lt;SPAN class="fontstyle0"&gt;64.3.3&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD width="200"&gt;&lt;SPAN class="fontstyle0"&gt;ADC conversion results access&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This below is my summary, please let me know if you have further updates about this.&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Nam.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 12:22:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Adc-Dma-with-BCTU/m-p/1909754#M37762</guid>
      <dc:creator>NamLee</dc:creator>
      <dc:date>2024-07-16T12:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Adc Dma with BCTU</title>
      <link>https://community.nxp.com/t5/S32K/Adc-Dma-with-BCTU/m-p/1922922#M38643</link>
      <description>&lt;P&gt;Hi &lt;A id="link_5" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.nxp.com/t5/user/viewprofilepage/user-id/173289" target="_self" aria-label="View Profile of emerging"&gt;&lt;SPAN class=""&gt;emerging&lt;/SPAN&gt;&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;I saw you got many issues with configuration, so i've done to create example working with your expectation in correctly RTD 2.0.0 version.&lt;/P&gt;
&lt;P&gt;Please check the attached file. &lt;STRONG&gt;Password: NXP&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;3 things you should focus on:&lt;/P&gt;
&lt;P&gt;- The Bctu hw unit configure, with the LIST channels and DMA transfer channel. This is important. Please follow my configuration in example.&lt;/P&gt;
&lt;P&gt;- The Index of Internal trigger of Adc using for Bctu, should go with the correct value of source trigger. This is a bug from driver 2.0.0, when the source trigger not follow the index, but the value of source.&lt;/P&gt;
&lt;P&gt;E.g AdcHwTrigger2, with source eMIOS0_4, then the index of it should be 2. But the driver takes the value of source as 4, then the register&amp;nbsp;TRGCFG_[4] be setup, instead of&amp;nbsp; TRGCFG_[0]&lt;/P&gt;
&lt;P&gt;My solution is, using the Index equal with trigger source. For example, the index0 should go with hardware trigger source 0, which is eMIOS0_0&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NamLee_1-1722507931674.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/291403i1007B6921EA833C6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NamLee_1-1722507931674.png" alt="NamLee_1-1722507931674.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;- One last suggestion, in the DMA configuration, due to 2.0.0 the DMA configure is not separate to Rm module, so in this configuration, please pay attention to not Enable the DMAMUX Trigger&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NamLee_3-1722508022965.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/291405i964B2207CAEB6118/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NamLee_3-1722508022965.png" alt="NamLee_3-1722508022965.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Other than that, all configuration of this quite common, you can follow my configuration.&lt;/P&gt;
&lt;P&gt;As my test, the Dma raised request isr&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NamLee_0-1722507267213.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/291393iC33B29E8A6758022/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NamLee_0-1722507267213.png" alt="NamLee_0-1722507267213.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;and the BctuDmaFifo1 buffer has data in it.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NamLee_4-1722508364894.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/291406i762B32BAE621A9C0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NamLee_4-1722508364894.png" alt="NamLee_4-1722508364894.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Please check the example and give me questions here if you have.&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Nam.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 10:34:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Adc-Dma-with-BCTU/m-p/1922922#M38643</guid>
      <dc:creator>NamLee</dc:creator>
      <dc:date>2024-08-01T10:34:31Z</dc:date>
    </item>
  </channel>
</rss>

