<?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のトピックS32K3 ADC Optimize DMA Streaming</title>
    <link>https://community.nxp.com/t5/S32K/S32K3-ADC-Optimize-DMA-Streaming/m-p/2401712#M60205</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;When the adc group has only one channel and the Adc Enable Optimize DMA Streaming Groups configuration item is checked, a hard fault occurs when the Adc_Ipw_SetupTcdSingleAdcChannelMajorLink function is executed.&lt;/P&gt;&lt;P&gt;In the case of a single channel, if the Adc Group Without Interrupts configuration item is checked and ACCESS_MODE_STREAMING, Select Adc Streaming Dma Channel is enabled. Otherwise, the number of the dma channel in the configuration file is 255, which is reasonable here. But what I don't understand is why when ADC_ENABLE_GROUP_STREAMING_RESULTS_RORDER or ADC_OPTIMIZE_DMA_STREAMING_GROUPS is STD_ON, instead of STD_ON==GroupPtr -&amp;gt;AdcWithoutInterrupt, the Adc_Ipw_SetupTcdSingleAdcChannelMajorLink function will be called. This seems unreasonable, and also because the call to this function leads to hard fault.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jason22_0-1785831767968.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/393695iC527C3587CC928FC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jason22_0-1785831767968.png" alt="Jason22_0-1785831767968.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Aug 2026 08:25:22 GMT</pubDate>
    <dc:creator>Jason22</dc:creator>
    <dc:date>2026-08-04T08:25:22Z</dc:date>
    <item>
      <title>S32K3 ADC Optimize DMA Streaming</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-ADC-Optimize-DMA-Streaming/m-p/2401712#M60205</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;When the adc group has only one channel and the Adc Enable Optimize DMA Streaming Groups configuration item is checked, a hard fault occurs when the Adc_Ipw_SetupTcdSingleAdcChannelMajorLink function is executed.&lt;/P&gt;&lt;P&gt;In the case of a single channel, if the Adc Group Without Interrupts configuration item is checked and ACCESS_MODE_STREAMING, Select Adc Streaming Dma Channel is enabled. Otherwise, the number of the dma channel in the configuration file is 255, which is reasonable here. But what I don't understand is why when ADC_ENABLE_GROUP_STREAMING_RESULTS_RORDER or ADC_OPTIMIZE_DMA_STREAMING_GROUPS is STD_ON, instead of STD_ON==GroupPtr -&amp;gt;AdcWithoutInterrupt, the Adc_Ipw_SetupTcdSingleAdcChannelMajorLink function will be called. This seems unreasonable, and also because the call to this function leads to hard fault.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jason22_0-1785831767968.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/393695iC527C3587CC928FC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jason22_0-1785831767968.png" alt="Jason22_0-1785831767968.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2026 08:25:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-ADC-Optimize-DMA-Streaming/m-p/2401712#M60205</guid>
      <dc:creator>Jason22</dc:creator>
      <dc:date>2026-08-04T08:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: S32K3 ADC Optimize DMA Streaming</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-ADC-Optimize-DMA-Streaming/m-p/2402033#M60224</link>
      <description>&lt;P&gt;Hi@&lt;SPAN&gt;Jason22&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Please do not use your QQ email account next time; please use your company email account instead.&lt;/P&gt;
&lt;P&gt;I tested this, but I didn't find any problems.&lt;/P&gt;
&lt;P&gt;I have attached my test project and test result for your reference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, i check your code and i found some error in your code.&lt;/P&gt;
&lt;P&gt;1.clock init is wrong, your code can't not run successfully,&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Senlent_0-1785915417329.png" style="width: 682px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/393751i7E6E8548013A9DBF/image-dimensions/682x236?v=v2" width="682" height="236" role="button" title="Senlent_0-1785915417329.png" alt="Senlent_0-1785915417329.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2."&lt;SPAN&gt;adc_group0_val&lt;/SPAN&gt;" should be attribute to "no-cacheable area"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;also:&lt;/P&gt;
&lt;P&gt;The usage instructions for Optimize DMA streaming groups are clearly explained in the user manual.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;RTD_ADC_UM.pdf&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Senlent_0-1785915908665.png" style="width: 910px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/393752i34F2576F2464C29D/image-dimensions/910x701?v=v2" width="910" height="701" role="button" title="Senlent_0-1785915908665.png" alt="Senlent_0-1785915908665.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2026 07:46:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-ADC-Optimize-DMA-Streaming/m-p/2402033#M60224</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2026-08-05T07:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: S32K3 ADC Optimize DMA Streaming</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-ADC-Optimize-DMA-Streaming/m-p/2402321#M60249</link>
      <description>&lt;P&gt;Hi@&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/188029" target="_blank" rel="noopener"&gt;&lt;SPAN class=""&gt;Senlent&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Thank you very much for your reply. I have registered a new account using my company email address, and I will use that account after this thread is closed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;I ran your project and found that no hard fault occurred. However, my question still remains. As shown in the screenshot below, the function&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;Adc_Ipw_SetupTcdSingleAdcChannelMajorLink&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;configures the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;DMA_IP_CH_SET_MAJORLOOP_LOGIC_LINK_CH&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;parameter for the DMA channel. When&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;Dma_Ip_ConvertLogicChToHwCh&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is called, the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;LogicCh&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;value is 255.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;Dma_Ip_pxInit-&amp;gt;ppxLogicChannelConfigArray&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;points to the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;Dma_Ip_paxLogicChannelConfigArrayPB&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;array, which has a size of 2. Accessing&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;Dma_Ip_pxInit-&amp;gt;ppxLogicChannelConfigArray[255]&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;should be an out‑of‑bounds access. Although no hard fault occurred, I believe this is not reasonable.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jason07_0-1785979871220.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/393824i42DAC92A38F87706/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jason07_0-1785979871220.png" alt="Jason07_0-1785979871220.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jason07_1-1785979890128.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/393825iCEE1EA37D96AAFEB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jason07_1-1785979890128.png" alt="Jason07_1-1785979890128.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jason07_2-1785979907208.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/393826i062805131EFBCB9C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jason07_2-1785979907208.png" alt="Jason07_2-1785979907208.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;This out‑of‑bounds access is caused by calling&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;Adc_Ipw_SetupTcdSingleAdcChannelMajorLink&lt;SPAN class=""&gt;, which is another question I have. I have reviewed the relevant content in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;RTD_ADC_UM.pdf&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and also checked the driver code. For&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;Optimize DMA Streaming Groups (single channel)&lt;SPAN class=""&gt;, the data is transferred directly from the CDR to the user buffer, unlike the multi‑channel case where data is first moved from the CDR to the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;DmaIntermediateBuffer&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and then from there to the user buffer.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;Optimize DMA Streaming Groups (single channel)&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;does not use a Streaming DMA channel. In the configuration file, the values of&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;AdcIpwConfigPtr-&amp;gt;Mapping.AdcCountingDmaChanLogicId&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;array are indeed&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;ADC_IPW_INVALID_DMA_CHANNEL_ID&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(255). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jason07_3-1785980010767.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/393827i91D21E836BCDAFBA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jason07_3-1785980010767.png" alt="Jason07_3-1785980010767.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;I do not understand why&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;Adc_Ipw_SetupTcdSingleAdcChannelMajorLink&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;still needs to be called. The function that really should call this is&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;Without Interrupt Group (single channel)&lt;SPAN class=""&gt;, but when&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;ADC_ENABLE_GROUP_STREAMING_RESULTS_RORDER&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;or&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;ADC_OPTIMIZE_DMA_STREAMING_GROUPS&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;STD_ON&lt;SPAN class=""&gt;, instead of&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;STD_ON == GroupPtr -&amp;gt;AdcWithoutInterrupt&lt;SPAN class=""&gt;, the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;Adc_Ipw_SetupTcdSingleAdcChannelMajorLink&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;function is called.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jason07_4-1785980037684.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/393828i9A4CC1AF50E853A3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jason07_4-1785980037684.png" alt="Jason07_4-1785980037684.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;I have found the issue in my project: when I uncheck "Data sections", the hard fault no longer occurs. However, I do not think this is the key point of the problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jason07_5-1785980062079.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/393829iAAA356DE2681D5AC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jason07_5-1785980062079.png" alt="Jason07_5-1785980062079.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2026 01:35:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-ADC-Optimize-DMA-Streaming/m-p/2402321#M60249</guid>
      <dc:creator>Jason07</dc:creator>
      <dc:date>2026-08-06T01:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: S32K3 ADC Optimize DMA Streaming</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-ADC-Optimize-DMA-Streaming/m-p/2402322#M60250</link>
      <description>&lt;P&gt;Hi@&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/188029" target="_blank" rel="noopener"&gt;&lt;SPAN class=""&gt;Senlent&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The picture in the last reply is not clear. I have uploaded the picture again in the form of attachment. I numbered the order of the pictures with numbers.&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2026 01:42:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-ADC-Optimize-DMA-Streaming/m-p/2402322#M60250</guid>
      <dc:creator>Jason07</dc:creator>
      <dc:date>2026-08-06T01:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: S32K3 ADC Optimize DMA Streaming</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-ADC-Optimize-DMA-Streaming/m-p/2402426#M60262</link>
      <description>&lt;P&gt;Hi@&lt;SPAN&gt;Jason07&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/248181"&gt;@Jason22&lt;/a&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Please set the optimization build option to -O0 .&lt;/P&gt;
&lt;P&gt;This is the result I observed during single-step debugging.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Senlent_1-1786003373031.png" style="width: 744px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/393856i4351BB21A7A084A0/image-dimensions/744x268?v=v2" width="744" height="268" role="button" title="Senlent_1-1786003373031.png" alt="Senlent_1-1786003373031.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is likely because the build optimization (-Os) prevents the debugger from accurately mapping source code variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2026 08:03:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-ADC-Optimize-DMA-Streaming/m-p/2402426#M60262</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2026-08-06T08:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: S32K3 ADC Optimize DMA Streaming</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-ADC-Optimize-DMA-Streaming/m-p/2402491#M60267</link>
      <description>&lt;P&gt;Hi@&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/188029" target="_blank" rel="noopener"&gt;&lt;SPAN class=""&gt;Senlent&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;The optimization level of my project is&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;-O0&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class=""&gt;, and I ran your project (also with -O0). I found that in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;Adc_Ipw_SetupTcdSingleAdcChannelMajorLink -&amp;gt; ...... -&amp;gt; Dma_Ip_ConvertLogicChToHwCh&lt;SPAN class=""&gt;, the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;LogicCh&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;value is still 255. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/393870iF13DE02B7198933B/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;In your screenshot, was&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;Dma_Ip_ConvertLogicChToHwCh&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;called as a result of&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;Adc_Ipw_SetupTcdSingleAdcChannelMajorLink&lt;SPAN class=""&gt;?&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;Mcl_Init&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;also calls&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;Dma_Ip_ConvertLogicChToHwCh&lt;SPAN class=""&gt;, and in that case&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;LogicCh&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is 0, which seems consistent with your screenshot.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;I ran a test in your project. When&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;Adc_Ipw_SetupTcdSingleAdcChannelMajorLink&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;indirectly calls&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;Dma_Ip_ConvertLogicChToHwCh&lt;SPAN class=""&gt;, I observed that&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;amp;Dma_Ip_pxInit-&amp;gt;ppxLogicChannelConfigArray[LogicCh]&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;0x429F28&lt;SPAN class=""&gt;, which matches&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;amp;Dma_Ip_pxInit-&amp;gt;ppxLogicChannelConfigArray[255]&lt;SPAN class=""&gt;. &lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/393871i5143D0FC4B7D9D93/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;I then modified the value at address&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;0x429F28&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;0x1FFFFFF0&lt;SPAN class=""&gt;, and executed the code at line 348. &lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/393872i1AE791E93ECA6411/image-size/large?v=v2&amp;amp;px=999" role="button" title="3.png" alt="3.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;A hard fault occurred, and the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;BFAR&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;value was&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;0x1FFFFFF6&lt;SPAN class=""&gt;, as expected. &lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/393873iA5DEA01F75427374/image-size/large?v=v2&amp;amp;px=999" role="button" title="4.png" alt="4.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;This confirms that the out‑of‑bounds access does exist. Whether a hard fault occurs depends on the value at&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;Dma_Ip_pxInit-&amp;gt;ppxLogicChannelConfigArray[255]&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2026 09:40:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-ADC-Optimize-DMA-Streaming/m-p/2402491#M60267</guid>
      <dc:creator>Jason22</dc:creator>
      <dc:date>2026-08-06T09:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: S32K3 ADC Optimize DMA Streaming</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-ADC-Optimize-DMA-Streaming/m-p/2402670#M60283</link>
      <description>&lt;P&gt;Hi@&lt;SPAN&gt;Jason22&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;These are my test results. If you are using the project I provided and the optimization level is set to -O0, then our observations should be the same.&lt;/P&gt;
&lt;P&gt;I don't think there's anything wrong here. If the boundary is exceeded, it should definitely enter a hard fault, but the test results didn't, which can only mean that it's due to the compilation optimization level. There's no need to continue analyzing under an error condition.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2026 02:04:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-ADC-Optimize-DMA-Streaming/m-p/2402670#M60283</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2026-08-07T02:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: S32K3 ADC Optimize DMA Streaming</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-ADC-Optimize-DMA-Streaming/m-p/2402681#M60285</link>
      <description>&lt;P&gt;Hi@&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/188029" target="_blank" rel="noopener"&gt;&lt;SPAN class=""&gt;Senlent&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Yes, I used your project without any modifications. In your video, the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;Dma_Ip_ConvertLogicChToHwCh&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;function is called indirectly by&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;Mcl_Init&lt;SPAN class=""&gt;, which is not the intended behavior. The intended behavior is for&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;Adc_Ipw_SetupTcdSingleAdcChannelMajorLink&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to indirectly call&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;Dma_Ip_ConvertLogicChToHwCh&lt;SPAN class=""&gt;. My video demonstrates this: while running&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;Mcl_Init&lt;SPAN class=""&gt;, I skipped all breakpoints, and after&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;Mcl_Init&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;completed, I re‑enabled the breakpoints. At that point,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;Dma_Ip_ConvertLogicChToHwCh&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;was entered again, and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;LogicCh&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;was 255.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;BR,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Jason&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2026 02:33:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-ADC-Optimize-DMA-Streaming/m-p/2402681#M60285</guid>
      <dc:creator>Jason22</dc:creator>
      <dc:date>2026-08-07T02:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: S32K3 ADC Optimize DMA Streaming</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-ADC-Optimize-DMA-Streaming/m-p/2402685#M60288</link>
      <description>&lt;P&gt;Hi@&lt;SPAN&gt;Jason22&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;This is strange; I've tried it multiple times. You can directly debug the ELF file I provided.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2026 02:43:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-ADC-Optimize-DMA-Streaming/m-p/2402685#M60288</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2026-08-07T02:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: S32K3 ADC Optimize DMA Streaming</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-ADC-Optimize-DMA-Streaming/m-p/2402693#M60290</link>
      <description>&lt;P&gt;Hi@&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/188029" target="_blank" rel="noopener"&gt;&lt;SPAN class=""&gt;Senlent&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;I'm not sure if my operation was correct – I tried debugging with your ELF file but it didn't work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/393931i1183752C2147B9D0/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Could you please perform the same steps as shown in my video? I believe you will be able to reproduce the issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Here are the steps:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Set a breakpoint at the line&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;Mcl_Init(NULL_PTR);&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Run the program until it hits the breakpoint at&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;Mcl_Init(NULL_PTR);&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Disable all breakpoints (&lt;STRONG&gt;Click the ‘skip all breakpoints’ button&lt;/STRONG&gt;).&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Step over&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;Mcl_Init(NULL_PTR);(&lt;STRONG&gt;&lt;SPAN class=""&gt;Click the ‘Step All’ button&lt;/SPAN&gt;&lt;/STRONG&gt;)&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Re‑enable breakpoints(&lt;STRONG&gt;Click the ‘skip all breakpoints’ button&lt;/STRONG&gt;) and&amp;nbsp;&lt;STRONG&gt;Click the ‘resume’ button&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;You will see that&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;Dma_Ip_ConvertLogicChToHwCh&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is entered again, and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;LogicCh&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is 255.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;BR,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Jason&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2026 03:24:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-ADC-Optimize-DMA-Streaming/m-p/2402693#M60290</guid>
      <dc:creator>Jason22</dc:creator>
      <dc:date>2026-08-07T03:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: S32K3 ADC Optimize DMA Streaming</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-ADC-Optimize-DMA-Streaming/m-p/2402695#M60291</link>
      <description>Hi@Senlent&lt;BR /&gt;Sorry. Step4 is Click the ‘Step Over’ button.&lt;BR /&gt;BR,&lt;BR /&gt;Jason</description>
      <pubDate>Fri, 07 Aug 2026 03:30:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-ADC-Optimize-DMA-Streaming/m-p/2402695#M60291</guid>
      <dc:creator>Jason22</dc:creator>
      <dc:date>2026-08-07T03:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: S32K3 ADC Optimize DMA Streaming</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-ADC-Optimize-DMA-Streaming/m-p/2402740#M60298</link>
      <description>&lt;P&gt;Hi@&lt;SPAN&gt;Jason22&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I might still not understand your question. I'd like to ask if this project is running as expected? If it is, is there any problem?&lt;/P&gt;
&lt;P&gt;I can see LogicCh is showing 255, but the program is running normally. Is there anything wrong with this?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2026 06:01:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-ADC-Optimize-DMA-Streaming/m-p/2402740#M60298</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2026-08-07T06:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: S32K3 ADC Optimize DMA Streaming</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-ADC-Optimize-DMA-Streaming/m-p/2402758#M60300</link>
      <description>Hi@Senlent&lt;BR /&gt;&lt;BR /&gt;I'm glad you can see that LogicCh is 255. In your project, it does run correctly, but this is an out‑of‑bounds access, right? Regarding your statement: "If the boundary is exceeded, it should definitely enter a hard fault" – I don't fully agree with that. In C language, there is no runtime boundary checking like in C++. For a pointer array, whether a hard fault occurs depends on the value obtained from the out‑of‑bounds access.&lt;BR /&gt;&lt;BR /&gt;Consider a pointer array: uint32* pArr[2] = {0x20400000, 0x20400004}. Suppose the address of pArr is 0x204300A0, then the value of pArr[2] is the value is stored at address 0x204300A8. If 0x204300A8 contains 0x20400008, then *pArr[2] (an out‑of‑bounds access that ultimately reads the value at address 0x20400008) will not cause a hard fault. However, if 0x204300A8 contains 0x1FFFFFF0, then *pArr[2] (which ultimately reads from 0x1FFFFFF0) will cause a hard fault. Both are out‑of‑bounds accesses, but whether a hard fault occurs is a matter of probability.&lt;BR /&gt;&lt;BR /&gt;To be precise, the hard fault is not directly caused by the out‑of‑bounds access itself, but rather because the out‑of‑bounds access to the pointer array got an invalid pointer, and accessing that invalid pointer triggers the hard fault.&lt;BR /&gt;&lt;BR /&gt;This is exactly why, in your project, accessing Dma_Ip_pxInit-&amp;gt;ppxLogicChannelConfigArray[255]-&amp;gt;LogicChId.HwChId does not cause a hard fault, but in my project, it does.&lt;BR /&gt;BR,&lt;BR /&gt;Jason</description>
      <pubDate>Fri, 07 Aug 2026 07:03:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-ADC-Optimize-DMA-Streaming/m-p/2402758#M60300</guid>
      <dc:creator>Jason22</dc:creator>
      <dc:date>2026-08-07T07:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: S32K3 ADC Optimize DMA Streaming</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-ADC-Optimize-DMA-Streaming/m-p/2402760#M60301</link>
      <description>&lt;P&gt;Hi@&lt;SPAN&gt;Jason22&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I can forward this issue to the design team for confirmation.&lt;/P&gt;
&lt;P&gt;Since I wasn't the one who designed the RTD driver, I won't delve into why they designed it this way unless users encounter problems.&lt;/P&gt;
&lt;P&gt;This feedback process might be lengthy, but I will relay the findings to the relevant design team.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2026 07:11:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-ADC-Optimize-DMA-Streaming/m-p/2402760#M60301</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2026-08-07T07:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: S32K3 ADC Optimize DMA Streaming</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-ADC-Optimize-DMA-Streaming/m-p/2402766#M60303</link>
      <description>Hi@Senlent&lt;BR /&gt;&lt;BR /&gt;Thank you very much for reporting this issue to your design team. If there is a final result, where should I check for it? If there is indeed an error, will it be published in a document similar to SW32K3_S32M27x_RTD_R23-11_7.0.0_D2511_ReleaseNotes.pdf?&lt;BR /&gt;&lt;BR /&gt;BR,&lt;BR /&gt;Jason</description>
      <pubDate>Fri, 07 Aug 2026 07:32:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-ADC-Optimize-DMA-Streaming/m-p/2402766#M60303</guid>
      <dc:creator>Jason22</dc:creator>
      <dc:date>2026-08-07T07:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: S32K3 ADC Optimize DMA Streaming</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-ADC-Optimize-DMA-Streaming/m-p/2402767#M60304</link>
      <description>&lt;P&gt;Hi@&lt;SPAN&gt;Jason22&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I will send you the design team's feedback.&lt;/P&gt;
&lt;P&gt;Usually, if it's a bug with significant impact, they will release it in a new version and include it in the release notes.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2026 07:37:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-ADC-Optimize-DMA-Streaming/m-p/2402767#M60304</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2026-08-07T07:37:31Z</dc:date>
    </item>
  </channel>
</rss>

