<?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: DMA channel unexpectedly set active in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/DMA-channel-unexpectedly-set-active/m-p/594667#M22679</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joseph,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apologies for the delay, are you still having problems with the DMA?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks in advance for your response!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Carlos Mendoza&lt;BR /&gt;Technical Support Engineer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Sep 2016 20:31:45 GMT</pubDate>
    <dc:creator>Carlos_Mendoza</dc:creator>
    <dc:date>2016-09-14T20:31:45Z</dc:date>
    <item>
      <title>DMA channel unexpectedly set active</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/DMA-channel-unexpectedly-set-active/m-p/594666#M22678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm following the UART DMA example in LPCOpen for the LPC15xx.&lt;/P&gt;&lt;P&gt;I have a descriptor that looks like this:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;/* Descriptor for the channels we need */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;dmaRXDesc[0].source = DMA_ADDR(&amp;amp;LPC_USART0-&amp;gt;RXDATA);&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;dmaRXDesc[0].dest = DMA_ADDR(&amp;amp;RxBuf[0] + RX_BUF_SIZE - 1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;dmaRXDesc[0].next = DMA_ADDR(NULL);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;dmaRXDesc[0].xfercfg = DMA_XFERCFG_SETINTA&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; | DMA_XFERCFG_WIDTH_8&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;| DMA_XFERCFG_SRCINC_0&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; | DMA_XFERCFG_DSTINC_1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;| DMA_XFERCFG_XFERCOUNT(RX_BUF_SIZE);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: symbol;"&gt;&lt;SPAN&gt;When I call&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Chip_DMA_SetupChannelTransfer(LPC_DMA, DMAREQ_USART0_RX, dmaRXDesc[StartDescIdx].xfercfg);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: symbol;"&gt;the active flag for the channel gets set immediately.&amp;nbsp; I don't understand this.&amp;nbsp; If I haven't set DMA_XFERCFG_CFGVALID, shouldn't I have to do something else to make the channel active?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: symbol;"&gt;I want to do all the DMA configuration in advance, and then have the UART ISR trigger the pre-configured DMA transfer to start. (I'm monitoring RXBRK and RXDELTABRK in the UART ISR to control when the DMA transfer should start.)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2016 21:02:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/DMA-channel-unexpectedly-set-active/m-p/594666#M22678</guid>
      <dc:creator>jdupre</dc:creator>
      <dc:date>2016-08-11T21:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: DMA channel unexpectedly set active</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/DMA-channel-unexpectedly-set-active/m-p/594667#M22679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joseph,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apologies for the delay, are you still having problems with the DMA?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks in advance for your response!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Carlos Mendoza&lt;BR /&gt;Technical Support Engineer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2016 20:31:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/DMA-channel-unexpectedly-set-active/m-p/594667#M22679</guid>
      <dc:creator>Carlos_Mendoza</dc:creator>
      <dc:date>2016-09-14T20:31:45Z</dc:date>
    </item>
  </channel>
</rss>

