<?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: both Chip_GPDMA_PrepareDescriptor and Chip_GPDMA_SGTransfer call  Chip_GPDMA_InitChannelCfg  in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/both-Chip-GPDMA-PrepareDescriptor-and-Chip-GPDMA-SGTransfer-call/m-p/913884#M36528</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;1) " In that case calling Chip_GPDMA_InitChannelCfg in both functions looks like an error. Is it?"&lt;/P&gt;&lt;P&gt;-&amp;gt; No, there is no error.&lt;/P&gt;&lt;P&gt;2)&amp;nbsp; "when to use descriptors and when to use&amp;nbsp;Chip_GPDMA_Transfer"&lt;/P&gt;&lt;P&gt;-&amp;gt; You can have a look at the demo "periph_uart" under LPCopen.&lt;/P&gt;&lt;P&gt;3)" how to receive a unknown packet size "&lt;/P&gt;&lt;P&gt;-&amp;gt; For this&amp;nbsp; question, I think the size of DMA transfer is define by yourself. For example, the&lt;/P&gt;&lt;P&gt;receive packet is 150, you set the DMA transfer number is 100, thus, after DMA transfer 100 bytes,&lt;/P&gt;&lt;P&gt;DMA run into interrupt, in interrupt function, config DMA, start the second transfer, this time, it only&lt;/P&gt;&lt;P&gt;transfer 50bytes, so it won't interrupt, while the 50 bytes have also been transfered to memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Jun 2019 09:22:31 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2019-06-28T09:22:31Z</dc:date>
    <item>
      <title>both Chip_GPDMA_PrepareDescriptor and Chip_GPDMA_SGTransfer call  Chip_GPDMA_InitChannelCfg</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/both-Chip-GPDMA-PrepareDescriptor-and-Chip-GPDMA-SGTransfer-call/m-p/913883#M36527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Both &amp;nbsp;Chip_GPDMA_PrepareDescriptor and &amp;nbsp;&amp;nbsp;Chip_GPDMA_SGTransfer functions call &amp;nbsp;Chip_GPDMA_InitChannelCfg. According to few posts we need to use descriptor we need to call both these functions. In that case calling Chip_GPDMA_InitChannelCfg in both functions looks like an error. Is it?&lt;/P&gt;&lt;P&gt;Also do have a better documents explaining&amp;nbsp; how to receive a unknown packet size using DMA and when to use descriptors and when to use&amp;nbsp;Chip_GPDMA_Transfer?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2019 12:45:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/both-Chip-GPDMA-PrepareDescriptor-and-Chip-GPDMA-SGTransfer-call/m-p/913883#M36527</guid>
      <dc:creator>ssudhir</dc:creator>
      <dc:date>2019-06-27T12:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: both Chip_GPDMA_PrepareDescriptor and Chip_GPDMA_SGTransfer call  Chip_GPDMA_InitChannelCfg</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/both-Chip-GPDMA-PrepareDescriptor-and-Chip-GPDMA-SGTransfer-call/m-p/913884#M36528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;1) " In that case calling Chip_GPDMA_InitChannelCfg in both functions looks like an error. Is it?"&lt;/P&gt;&lt;P&gt;-&amp;gt; No, there is no error.&lt;/P&gt;&lt;P&gt;2)&amp;nbsp; "when to use descriptors and when to use&amp;nbsp;Chip_GPDMA_Transfer"&lt;/P&gt;&lt;P&gt;-&amp;gt; You can have a look at the demo "periph_uart" under LPCopen.&lt;/P&gt;&lt;P&gt;3)" how to receive a unknown packet size "&lt;/P&gt;&lt;P&gt;-&amp;gt; For this&amp;nbsp; question, I think the size of DMA transfer is define by yourself. For example, the&lt;/P&gt;&lt;P&gt;receive packet is 150, you set the DMA transfer number is 100, thus, after DMA transfer 100 bytes,&lt;/P&gt;&lt;P&gt;DMA run into interrupt, in interrupt function, config DMA, start the second transfer, this time, it only&lt;/P&gt;&lt;P&gt;transfer 50bytes, so it won't interrupt, while the 50 bytes have also been transfered to memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jun 2019 09:22:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/both-Chip-GPDMA-PrepareDescriptor-and-Chip-GPDMA-SGTransfer-call/m-p/913884#M36528</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2019-06-28T09:22:31Z</dc:date>
    </item>
  </channel>
</rss>

