<?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>i.MX RT Crossover MCUsのトピックRT685 CTimer0 callBack delayed</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT685-CTimer0-callBack-delayed/m-p/2254174#M35781</link>
    <description>&lt;P&gt;I modified the mimxrt685audevk_lpadc_dma_cm33 example from SDK 25.9 for MIMXRT685-AUD-EVK to create this chain:&lt;BR /&gt;CTIMER0 -&amp;gt; ADC -&amp;gt; DAC -&amp;gt; PingPongBuffer in RAM.&lt;BR /&gt;CTIMER0: 32kHz; ToggleBit on Match_CH_3&lt;BR /&gt;ADC0: Start on Trigger 5; Create interrupt for DMA every 16 samples (FIFO watermark = 15)&lt;BR /&gt;DMA0: PingPong; Start on Hardware trigger 24&lt;/P&gt;&lt;P&gt;I added Set/Clear pins to the callbacks for debugging.&lt;/P&gt;&lt;P&gt;From the pin log, it appears that the CTimer0 callback is delayed when the DMA is triggered, even though the DMA is executed at a time that does not overlap with the CTimer timing.&lt;/P&gt;&lt;P&gt;Can anyone tell me why this happens?&lt;/P&gt;</description>
    <pubDate>Wed, 03 Dec 2025 10:55:16 GMT</pubDate>
    <dc:creator>katte82</dc:creator>
    <dc:date>2025-12-03T10:55:16Z</dc:date>
    <item>
      <title>RT685 CTimer0 callBack delayed</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT685-CTimer0-callBack-delayed/m-p/2254174#M35781</link>
      <description>&lt;P&gt;I modified the mimxrt685audevk_lpadc_dma_cm33 example from SDK 25.9 for MIMXRT685-AUD-EVK to create this chain:&lt;BR /&gt;CTIMER0 -&amp;gt; ADC -&amp;gt; DAC -&amp;gt; PingPongBuffer in RAM.&lt;BR /&gt;CTIMER0: 32kHz; ToggleBit on Match_CH_3&lt;BR /&gt;ADC0: Start on Trigger 5; Create interrupt for DMA every 16 samples (FIFO watermark = 15)&lt;BR /&gt;DMA0: PingPong; Start on Hardware trigger 24&lt;/P&gt;&lt;P&gt;I added Set/Clear pins to the callbacks for debugging.&lt;/P&gt;&lt;P&gt;From the pin log, it appears that the CTimer0 callback is delayed when the DMA is triggered, even though the DMA is executed at a time that does not overlap with the CTimer timing.&lt;/P&gt;&lt;P&gt;Can anyone tell me why this happens?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Dec 2025 10:55:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT685-CTimer0-callBack-delayed/m-p/2254174#M35781</guid>
      <dc:creator>katte82</dc:creator>
      <dc:date>2025-12-03T10:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: RT685 CTimer0 callBack delayed</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT685-CTimer0-callBack-delayed/m-p/2254902#M35792</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/256644"&gt;@katte82&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thank you so much for your interest in our products and for using our community.&lt;/P&gt;
&lt;DIV&gt;
&lt;P&gt;I suggest double checking the following points:&lt;/P&gt;
&lt;P&gt;1：Set the NVIC priorities and try to assign a higher priority to CTIMER0 than DMA and ADC, then test again.&lt;/P&gt;
&lt;P&gt;2：Verify that the transfer type is set to kDMA_PeripheralToMemory.&lt;/P&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mayliu1_0-1764831075550.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/368552i042D29DD200F8EBA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mayliu1_0-1764831075550.png" alt="mayliu1_0-1764831075550.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;mayliu1_0-1764831075550.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;MayLiu&lt;/P&gt;</description>
      <pubDate>Thu, 04 Dec 2025 07:04:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT685-CTimer0-callBack-delayed/m-p/2254902#M35792</guid>
      <dc:creator>mayliu1</dc:creator>
      <dc:date>2025-12-04T07:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: RT685 CTimer0 callBack delayed</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT685-CTimer0-callBack-delayed/m-p/2255027#M35794</link>
      <description>1) Setting the priority solves the problem. But I don't understand why it's necessary. In theory, the hardware has all the time it needs to handle the DMA callback.&lt;BR /&gt;2) I've tried many times, but if I switch to PeripheralToMemory, strange things happen and nothing works. The ADC still remain in interrupt and DMA never calls the callback. Maybe PeripheralToMemory don't handle correctly the watermark set to 15? Could using DMA in MemoryToMemory be a problem?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;Regards.</description>
      <pubDate>Thu, 04 Dec 2025 08:03:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT685-CTimer0-callBack-delayed/m-p/2255027#M35794</guid>
      <dc:creator>katte82</dc:creator>
      <dc:date>2025-12-04T08:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: RT685 CTimer0 callBack delayed</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT685-CTimer0-callBack-delayed/m-p/2256091#M35803</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/256644"&gt;@katte82&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for your updated information.&lt;/P&gt;
&lt;P&gt;A1: It is necessary, because the callback runs in the interrupt service routine (ISR),&amp;nbsp; and NVIC priority decides who runs first.&amp;nbsp;DMA/ADC ISR preempted CTIMER0, so the CTIMER0 callback was delayed.&lt;/P&gt;
&lt;P&gt;A2: I suggest you can refer to SDK demo "evkmimxrt685_lpadc_dma_cm33"&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;MayLiu&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Dec 2025 10:39:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT685-CTimer0-callBack-delayed/m-p/2256091#M35803</guid>
      <dc:creator>mayliu1</dc:creator>
      <dc:date>2025-12-05T10:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: RT685 CTimer0 callBack delayed</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT685-CTimer0-callBack-delayed/m-p/2258844#M35823</link>
      <description>Thanks for the hint.&lt;BR /&gt;1) I continue not understand why the ctimer interrupt need a greater priority. There are many "free usec" after DMA callback.&lt;BR /&gt;&lt;BR /&gt;2) In example, the data flow is handled by the software.&lt;BR /&gt;I'm trying to configure the cpu to do all the hard work by itself.&lt;BR /&gt;&lt;BR /&gt;Thanks and Best regards.</description>
      <pubDate>Wed, 10 Dec 2025 09:17:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT685-CTimer0-callBack-delayed/m-p/2258844#M35823</guid>
      <dc:creator>katte82</dc:creator>
      <dc:date>2025-12-10T09:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: RT685 CTimer0 callBack delayed</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT685-CTimer0-callBack-delayed/m-p/2259801#M35834</link>
      <description>&lt;P&gt;I think if the &lt;SPAN&gt;ctimer&amp;nbsp;&lt;/SPAN&gt;has a lower priority, its execution could be delayed, affecting timing precision and real time performance.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Dec 2025 08:54:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT685-CTimer0-callBack-delayed/m-p/2259801#M35834</guid>
      <dc:creator>mayliu1</dc:creator>
      <dc:date>2025-12-11T08:54:54Z</dc:date>
    </item>
  </channel>
</rss>

