<?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: DMA CHn_ES Bit Assertion Issue on S32K312 Development Board</title>
    <link>https://community.nxp.com/t5/S32K/DMA-CHn-ES-Bit-Assertion-Issue-on-S32K312-Development-Board/m-p/2110509#M49588</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/247897"&gt;@dongxun&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I see there is a bus error on the source.&lt;/P&gt;
&lt;P&gt;And the source address is not configured:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1749047438674.png" style="width: 958px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/341405i80F1A5B67E4EAA11/image-dimensions/958x249?v=v2" width="958" height="249" role="button" title="danielmartynek_0-1749047438674.png" alt="danielmartynek_0-1749047438674.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Double check the DMA configuration in EB tresos.&lt;/P&gt;
&lt;P&gt;Can you share the project or the configuration .xdm files?&lt;/P&gt;
&lt;P&gt;Which RTD revision do you use?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 14:34:41 GMT</pubDate>
    <dc:creator>danielmartynek</dc:creator>
    <dc:date>2025-06-04T14:34:41Z</dc:date>
    <item>
      <title>DMA CHn_ES Bit Assertion Issue on S32K312 Development Board</title>
      <link>https://community.nxp.com/t5/S32K/DMA-CHn-ES-Bit-Assertion-Issue-on-S32K312-Development-Board/m-p/2110329#M49571</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Dear Technical Support Team,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; We are facing a critical issue with the DMA module on the S32K312 development board where the &lt;STRONG&gt;CHn_ES (Channel Error Status)&lt;/STRONG&gt; bit is being unexpectedly set, leading to program freezes. Here are the details:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Configuration&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Toolchain&lt;/STRONG&gt;: EB Tresos (EB 28) for peripheral configuration.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;ADC Setup&lt;/STRONG&gt;: ADC0 and ADC1 configured with&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;ADC_DMA interrupts&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;for data transfer.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;DMAMUX&lt;/STRONG&gt;: Configured in the MCL to route ADC triggers to DMA channels.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Issue&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;After initializing the MCL and running the code (see snippet below), the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;CHn_ES&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;bit asserts immediately, halting the system.&lt;/LI&gt;&lt;LI&gt;The error persists despite correct DMA transfer configurations.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Power cycling&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is required to clear the error. Software reset cannot solve the problem.&lt;/LI&gt;&lt;LI&gt;A similar unresolved case was referenced here: &lt;A href="https://community.nxp.com/t5/S32K/Dma-transfer-on-S32K310/m-p/1938347" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/S32K/Dma-transfer-on-S32K310/m-p/1938347.&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Code Snippet:&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;LI-CODE lang="markup"&gt;void IoHwAdc_SetupInit(void)
{
   Adc_Calibrate(0U, &amp;amp;iohwadc_hw_uint0_calib_status);
   while(E_OK != iohwadc_hw_uint0_calib_status.AdcUnitSelfTestStatus) {};
   Adc_Calibrate(1U, &amp;amp;iohwadc_hw_uint1_calib_status);
   while(E_OK != iohwadc_hw_uint1_calib_status.AdcUnitSelfTestStatus) {};

   Mcl_SetDmaChannelTransferList(DMA_LOGIC_CH_4, DmaCh_TransferList, IOHWADC_DMA_CH0_CONFIG_LIST_DIMENSION);
   Mcl_SetDmaChannelTransferList(DMA_LOGIC_CH_3, DmaCh_TransferList, IOHWADC_DMA_CH0_CONFIG_LIST_DIMENSION);

}​&lt;/LI-CODE&gt;&lt;P&gt;4. &lt;STRONG&gt;EB configuration&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dongxun_0-1749030396825.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/341356iEBC96234477F46B3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dongxun_0-1749030396825.png" alt="dongxun_0-1749030396825.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dongxun_1-1749030435519.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/341357iC5624B53D91B7D74/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dongxun_1-1749030435519.png" alt="dongxun_1-1749030435519.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dongxun_2-1749030473652.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/341358i1ABAADDDD0C66ED6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dongxun_2-1749030473652.png" alt="dongxun_2-1749030473652.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;5.&amp;nbsp;&amp;nbsp;Read Register&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dongxun_3-1749030528090.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/341359i56B17B5A558C3A01/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dongxun_3-1749030528090.png" alt="dongxun_3-1749030528090.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;STRONG&gt;Request for Assistance&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Could this be caused by DMAMUX/DMA channel misconfiguration or a known hardware/software defect?&lt;/LI&gt;&lt;LI&gt;Are there specific initialization sequences or errata patches for the S32K312 DMA subsystem?&lt;/LI&gt;&lt;LI&gt;How can we reliably prevent CHn_ES assertion during startup?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;dongxun.&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 09:52:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/DMA-CHn-ES-Bit-Assertion-Issue-on-S32K312-Development-Board/m-p/2110329#M49571</guid>
      <dc:creator>dongxun</dc:creator>
      <dc:date>2025-06-04T09:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: DMA CHn_ES Bit Assertion Issue on S32K312 Development Board</title>
      <link>https://community.nxp.com/t5/S32K/DMA-CHn-ES-Bit-Assertion-Issue-on-S32K312-Development-Board/m-p/2110509#M49588</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/247897"&gt;@dongxun&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I see there is a bus error on the source.&lt;/P&gt;
&lt;P&gt;And the source address is not configured:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1749047438674.png" style="width: 958px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/341405i80F1A5B67E4EAA11/image-dimensions/958x249?v=v2" width="958" height="249" role="button" title="danielmartynek_0-1749047438674.png" alt="danielmartynek_0-1749047438674.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Double check the DMA configuration in EB tresos.&lt;/P&gt;
&lt;P&gt;Can you share the project or the configuration .xdm files?&lt;/P&gt;
&lt;P&gt;Which RTD revision do you use?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 14:34:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/DMA-CHn-ES-Bit-Assertion-Issue-on-S32K312-Development-Board/m-p/2110509#M49588</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2025-06-04T14:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: DMA CHn_ES Bit Assertion Issue on S32K312 Development Board</title>
      <link>https://community.nxp.com/t5/S32K/DMA-CHn-ES-Bit-Assertion-Issue-on-S32K312-Development-Board/m-p/2110757#M49598</link>
      <description>&lt;P&gt;Hi Daniel Martynek,&lt;/P&gt;&lt;P&gt;Thank you for your reply. I've attached the xdm files. We are using RTD version "SW32K3_RTD_4.4_2.0.2_D2211".&lt;/P&gt;&lt;P&gt;I want to mention that this issue is intermittent. Two of my colleagues frequently encounter it, while others do not experience it at all. Personally, the program runs fine in the evening before I leave work, but when I reopen the debugger and upload it in the morning, it goes into ErrorHook. Additionally, the problematic DMA channels are Channel 3 and Channel 4, which are designated for ADC services.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;dongxun&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 00:53:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/DMA-CHn-ES-Bit-Assertion-Issue-on-S32K312-Development-Board/m-p/2110757#M49598</guid>
      <dc:creator>dongxun</dc:creator>
      <dc:date>2025-06-05T00:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: DMA CHn_ES Bit Assertion Issue on S32K312 Development Board</title>
      <link>https://community.nxp.com/t5/S32K/DMA-CHn-ES-Bit-Assertion-Issue-on-S32K312-Development-Board/m-p/2111166#M49613</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/247897"&gt;@dongxun&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;The clock configuration in the MCU driver is incorrect.&lt;/P&gt;
&lt;P&gt;You selected 120MHz for the core:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1749113285963.png" style="width: 658px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/341588iE3E995515D595174/image-dimensions/658x314?v=v2" width="658" height="314" role="button" title="danielmartynek_0-1749113285963.png" alt="danielmartynek_0-1749113285963.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Which means you have&amp;nbsp;Option B - Reduced Speed mode (CORE_CLK @ 120 MHz) RM rev10,&amp;nbsp;Table 158.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, both AIPS clocks are set to 40MHz.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_2-1749113438861.png" style="width: 660px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/341590iEB34C626A0293555/image-dimensions/660x254?v=v2" width="660" height="254" role="button" title="danielmartynek_2-1749113438861.png" alt="danielmartynek_2-1749113438861.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;It should be set to 60MHz (PLAT) and 30MHz (SLOW).&lt;/P&gt;
&lt;P&gt;Otherwise we cannot guarantee the functionality of the MCU, it can behave unpredictable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The clock configuration does not have to follow the options precisely (Option B, in this case), but the ratios between the clocks must.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_3-1749113643866.png" style="width: 618px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/341591i6EA117730278BAAB/image-dimensions/618x195?v=v2" width="618" height="195" role="button" title="danielmartynek_3-1749113643866.png" alt="danielmartynek_3-1749113643866.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 08:56:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/DMA-CHn-ES-Bit-Assertion-Issue-on-S32K312-Development-Board/m-p/2111166#M49613</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2025-06-05T08:56:04Z</dc:date>
    </item>
  </channel>
</rss>

