<?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: uart dma lpc54 in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/uart-dma-lpc54/m-p/882673#M35330</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice,&lt;/P&gt;&lt;P&gt;Thanks for pointing that out for me. I had already come across it and in fact I've been comparing that code with mine. I'm doing the same settings, apart not using the FIFO and using the "Chip_" API.&lt;/P&gt;&lt;P&gt;Still I don't see what's missing in my code that prevents the DMA to work. If I SW trigger the transfer while debugging the code on the IDE, the transfer takes place and the data end up in my buffer. However, if I leave the UART peripheral to send a request to the DMA, the transfer never gets kicked off. Would appreciate any help on this!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Luca&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Apr 2019 14:44:51 GMT</pubDate>
    <dc:creator>nluca</dc:creator>
    <dc:date>2019-04-09T14:44:51Z</dc:date>
    <item>
      <title>uart dma lpc54</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/uart-dma-lpc54/m-p/882671#M35328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to set up the DMA to automatically transfer the data received by UART1 on a memory buffer. The processor is the LPC54102. Here is the code I'm using to set up the UART and the DMA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any idea on what's wrong or missing here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chip_UART_Disable(LPC_USART1);&lt;/P&gt;&lt;P&gt;Chip_IOCON_PinMux(LPC_IOCON, 0, 5, IOCON_MODE_INACT | IOCON_DIGITAL_EN, IOCON_FUNC1);&lt;/P&gt;&lt;P&gt;Chip_IOCON_PinMux(LPC_IOCON, 0, 6, IOCON_MODE_INACT | IOCON_DIGITAL_EN, IOCON_FUNC1);&lt;/P&gt;&lt;P&gt;Chip_UART_special_SetBaud(GPS_USART, 115200);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;usart_config = ( UART_CFG_DATALEN_8 | UART_CFG_PARITY_NONE | UART_CFG_STOPLEN_1 );&lt;BR /&gt; Chip_UART_ConfigData(&lt;SPAN&gt;LPC_USART1&lt;/SPAN&gt;, usart_config);&lt;BR /&gt; Chip_UART_TXEnable(&lt;SPAN&gt;LPC_USART1&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; Chip_DMA_DeInit(LPC_DMA);&lt;BR /&gt; Chip_DMA_Init(LPC_DMA);&lt;BR /&gt; Chip_DMA_Disable(LPC_DMA);&lt;BR /&gt; Chip_DMA_Enable(LPC_DMA);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chip_DMA_DisableChannel(LPC_DMA, &lt;SPAN&gt;DMAREQ_UART1_RX&lt;/SPAN&gt;);&lt;BR /&gt; Chip_DMA_ClearErrorIntChannel(LPC_DMA, &lt;SPAN&gt;DMAREQ_UART1_RX&lt;/SPAN&gt;);30&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tDmaUartRxDesc.source = DMA_ADDR(&amp;amp;LPC_USART1-&amp;gt;RXDAT);&lt;BR /&gt; tDmaUartRxDesc.dest = DMA_ADDR(&lt;SPAN&gt;pabDataBuffer&amp;nbsp;&lt;/SPAN&gt;);&lt;BR /&gt; tDmaUartRxDesc.next = DMA_ADDR(0);&lt;BR /&gt; tDmaUartRxDesc.xfercfg = DMA_XFERCFG_CFGVALID |&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DMA_XFERCFG_SETINTA |&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DMA_XFERCFG_WIDTH_8 |&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DMA_XFERCFG_SRCINC_0 |&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DMA_XFERCFG_DSTINC_1 |&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DMA_XFERCFG_XFERCOUNT(230);&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while (!Chip_DMA_SetupTranChannel(LPC_DMA, &lt;SPAN&gt;DMAREQ_UART1_RX&lt;/SPAN&gt;, &amp;amp;tDmaUartRxDesc)) {}&lt;BR /&gt; Chip_DMA_SetupChannelTransfer(LPC_DMA, &lt;SPAN&gt;DMAREQ_UART1_RX&lt;/SPAN&gt;, tDmaUartRxDesc.xfercfg);&lt;BR /&gt; &lt;BR /&gt; Chip_DMA_SetupChannelConfig(LPC_DMA, &lt;SPAN&gt;DMAREQ_UART1_RX&lt;/SPAN&gt;, (DMA_CFG_PERIPHREQEN | DMA_CFG_TRIGBURST_SNGL | DMA_CFG_CHPRIORITY(0)));&lt;BR /&gt; Chip_DMA_EnableIntChannel(LPC_DMA, &lt;SPAN&gt;DMAREQ_UART1_RX&lt;/SPAN&gt;);&lt;BR /&gt; &lt;BR /&gt; NVIC_EnableIRQ(DMA_IRQn);&lt;BR /&gt; &lt;BR /&gt; Chip_DMA_EnableChannel(LPC_DMA, &lt;SPAN&gt;DMAREQ_UART1_RX&lt;/SPAN&gt;);&lt;BR /&gt; &lt;BR /&gt; Chip_UART_Enable(&lt;SPAN&gt;LPC_USART1&lt;/SPAN&gt;);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Apr 2019 15:48:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/uart-dma-lpc54/m-p/882671#M35328</guid>
      <dc:creator>nluca</dc:creator>
      <dc:date>2019-04-05T15:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: uart dma lpc54</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/uart-dma-lpc54/m-p/882672#M35329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="235740" data-username="nluca" href="https://community.nxp.com/people/nluca"&gt;Luca N&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is UART DMA demo under SDK demo , you can refer to it :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/67360i207AEE774334E3EA/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&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>Mon, 08 Apr 2019 07:41:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/uart-dma-lpc54/m-p/882672#M35329</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2019-04-08T07:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: uart dma lpc54</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/uart-dma-lpc54/m-p/882673#M35330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice,&lt;/P&gt;&lt;P&gt;Thanks for pointing that out for me. I had already come across it and in fact I've been comparing that code with mine. I'm doing the same settings, apart not using the FIFO and using the "Chip_" API.&lt;/P&gt;&lt;P&gt;Still I don't see what's missing in my code that prevents the DMA to work. If I SW trigger the transfer while debugging the code on the IDE, the transfer takes place and the data end up in my buffer. However, if I leave the UART peripheral to send a request to the DMA, the transfer never gets kicked off. Would appreciate any help on this!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Luca&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2019 14:44:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/uart-dma-lpc54/m-p/882673#M35330</guid>
      <dc:creator>nluca</dc:creator>
      <dc:date>2019-04-09T14:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: uart dma lpc54</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/uart-dma-lpc54/m-p/882674#M35331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Luca,&lt;/P&gt;&lt;P&gt;I recommend you first test the demo, then change it to your own code based on it .&lt;/P&gt;&lt;P&gt;Check at place you change that can't work.&lt;/P&gt;&lt;P&gt;If still can't work, you can send your whole project to me,&amp;nbsp; I help you check it on my side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Apr 2019 02:13:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/uart-dma-lpc54/m-p/882674#M35331</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2019-04-13T02:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: uart dma lpc54</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/uart-dma-lpc54/m-p/882675#M35332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm still having troubles on this task. Could you kindly have a look at my code and see what's missing, please?&lt;/P&gt;&lt;P&gt;I cannot share the whole project as there are protected code in there. I can assure the code I posted above works well if I kick off the transaction manually by enabling the SW trigger. However I want the DMA to be kicked off by the UART peripheral request instead, without the needing of a manual trigger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Apr 2019 11:21:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/uart-dma-lpc54/m-p/882675#M35332</guid>
      <dc:creator>nluca</dc:creator>
      <dc:date>2019-04-18T11:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: uart dma lpc54</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/uart-dma-lpc54/m-p/882676#M35333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Luca,&lt;/P&gt;&lt;P&gt;Sorry only through the part of code, I also haven't find the problem,&lt;/P&gt;&lt;P&gt;you can compare the DMA config registers between example&amp;nbsp; code with yours,&lt;/P&gt;&lt;P&gt;especially the Channel configuration registers:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80171i3277C6D1127A8C86/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also can delete your other codes, only includes the UART-DMA , I can help you check.&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>Tue, 23 Apr 2019 02:58:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/uart-dma-lpc54/m-p/882676#M35333</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2019-04-23T02:58:46Z</dc:date>
    </item>
  </channel>
</rss>

