<?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 Re: USART + CRC with ping-pong DMA in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/USART-CRC-with-ping-pong-DMA/m-p/1335423#M46409</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;As you said that the DMA channel chain requires to set the CLRTRIG in the&lt;BR /&gt;channel's transfer configuration in the descriptor, but DMA ping-pong mode requires to clear the CLRTRIG bit, so I think you can not use the same DMA channel to set up both channel chain and ping-pong mode.&lt;/P&gt;
&lt;P&gt;Hope it can help you&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;</description>
    <pubDate>Mon, 06 Sep 2021 09:44:31 GMT</pubDate>
    <dc:creator>xiangjun_rong</dc:creator>
    <dc:date>2021-09-06T09:44:31Z</dc:date>
    <item>
      <title>USART + CRC with ping-pong DMA</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USART-CRC-with-ping-pong-DMA/m-p/1334309#M46387</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;I would like to do ping-pong DMA with CRC, ie.,&lt;BR /&gt;USART6 -&amp;gt; buffer1 -&amp;gt; CRC -&amp;gt; USART6 -&amp;gt; buffer0 -&amp;gt;CRC.&lt;BR /&gt;UM11126 user manual chapter has provided instruction on how to do chain DMA.&lt;BR /&gt;Nonetheless, I followed the instructions and demo codes from LPC55S69 but I am not able to configure to the ping-pong USART6 with CRC&lt;/P&gt;&lt;P&gt;The reason that I am not able to do the ping-pong DMA with USART + CRC is that&lt;BR /&gt;in order to do ping-pong config, dma_xfercfg_t needs reload=true, clrtrig=false, whereas for&lt;BR /&gt;chain DMA to work, clrtrig=true, but this breaks ping-pong config.&lt;BR /&gt;Can someone help to see if this is something that is fundamental limitation to the LPC55S66 MCU. If not, can I get help in how to configure it properly?&lt;/P&gt;&lt;P&gt;I have attached the code. The macro definition #define TRY_CRC 1 will work for single uart+crc transfer but not in ping-pong config. Setting TRY_CRC&amp;nbsp; 0 will do ping-pong but not CRC transfer.&lt;/P&gt;&lt;P&gt;Thank you in advance for all the help.&lt;/P&gt;&lt;P&gt;Ping.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Sep 2021 19:11:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USART-CRC-with-ping-pong-DMA/m-p/1334309#M46387</guid>
      <dc:creator>pck20</dc:creator>
      <dc:date>2021-09-02T19:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: USART + CRC with ping-pong DMA</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USART-CRC-with-ping-pong-DMA/m-p/1335423#M46409</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;As you said that the DMA channel chain requires to set the CLRTRIG in the&lt;BR /&gt;channel's transfer configuration in the descriptor, but DMA ping-pong mode requires to clear the CLRTRIG bit, so I think you can not use the same DMA channel to set up both channel chain and ping-pong mode.&lt;/P&gt;
&lt;P&gt;Hope it can help you&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;</description>
      <pubDate>Mon, 06 Sep 2021 09:44:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USART-CRC-with-ping-pong-DMA/m-p/1335423#M46409</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2021-09-06T09:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: USART + CRC with ping-pong DMA</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USART-CRC-with-ping-pong-DMA/m-p/1347049#M46590</link>
      <description>&lt;P&gt;Hi XiangJun,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your response. Can I assume that then the documentation from UM11126.pdf which I did a screen capture below is not correct then?&lt;/P&gt;&lt;P&gt;The user guide explicitly use a UART + CRC DMA as an example.&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;Regards&lt;BR /&gt;Ping&lt;/P&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="pck20_0-1632769115224.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/157589iCA79314DF76A92FE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pck20_0-1632769115224.png" alt="pck20_0-1632769115224.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 19:00:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USART-CRC-with-ping-pong-DMA/m-p/1347049#M46590</guid>
      <dc:creator>pck20</dc:creator>
      <dc:date>2021-09-27T19:00:31Z</dc:date>
    </item>
  </channel>
</rss>

