<?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: S32K144   LPUART0 EDMA in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K144-LPUART0-EDMA/m-p/751353#M2096</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You&amp;nbsp;must configure all necessary channels in EDMA_DRV_Init and after that you call LPUART_DRV_Init. Please be sure that dma configurations initializes the same channels as the channels used in LPUART initialization and LPUART is in DMA mode.&lt;/P&gt;&lt;P&gt;Please take a look at LPSI - DMA example because is a similar usecase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Razvan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Nov 2017 15:37:15 GMT</pubDate>
    <dc:creator>razva_tilimpea</dc:creator>
    <dc:date>2017-11-23T15:37:15Z</dc:date>
    <item>
      <title>S32K144   LPUART0 EDMA</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-LPUART0-EDMA/m-p/751352#M2095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;SPAN style="-webkit-text-stroke-width: 0px; word-wrap: break-word; z-index: auto; color: #222222; white-space: normal; font-weight: 400; letter-spacing: normal; text-decoration: none; font-size: 24px; min-height: 0px; font-style: normal; background-color: transparent; text-transform: none; word-spacing: 0px; font-variant: normal; text-indent: 0px; font-family: arial,sans-serif; position: static; orphans: 2; text-align: left;"&gt;Program source is as follows&lt;/SPAN&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;uint8_t&amp;nbsp; uarttxBuff[8]={0,};&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;uarttxBuff[0]=0x2f;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; uarttxBuff[1]=1;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; uarttxBuff[2]=2;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; uarttxBuff[3]=3;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; uarttxBuff[4]=4;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; uarttxBuff[5]=5;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; uarttxBuff[6]=6;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; uarttxBuff[7]=7;&lt;/P&gt;&lt;P&gt;EDMA_DRV_Init(&amp;amp;dmaController1_State, &amp;amp;dmaController1_InitConfig0,edmaChnStateArray, edmaChnConfigArray, EDMA_CONFIGURED_CHANNELS_COUNT);&lt;/P&gt;&lt;P&gt;EDMA_DRV_ConfigSingleBlockTransfer(0,EDMA_TRANSFER_MEM2PERIPH,(uint32_t)DMA_TCD_SADDR_SADDR(&amp;amp;uarttxBuff), 0x4006A01C,EDMA_TRANSFER_SIZE_1B,4);&lt;/P&gt;&lt;P&gt;EDMA_DRV_TriggerSwRequest(0);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="-webkit-text-stroke-width: 0px; word-wrap: break-word; z-index: auto; color: #222222; white-space: normal; font-weight: 400; letter-spacing: normal; text-decoration: none; font-size: 24px; min-height: 0px; font-style: normal; background-color: transparent; text-transform: none; word-spacing: 0px; font-variant: normal; text-indent: 0px; font-family: arial,sans-serif; position: static; orphans: 2; text-align: left;"&gt;LPUART0 can only send the first data:0x2f;Can not send the first four data(&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt;uarttxBuff[0]&lt;/SPAN&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #222222; font-family: arial,sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt;~&lt;/SPAN&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt;uarttxBuff[3]&lt;/SPAN&gt;).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="-webkit-text-stroke-width: 0px; word-wrap: break-word; z-index: auto; color: #222222; white-space: normal; font-weight: 400; letter-spacing: normal; text-decoration: none; font-size: 24px; min-height: 0px; font-style: normal; background-color: transparent; text-transform: none; word-spacing: 0px; font-variant: normal; text-indent: 0px; font-family: arial,sans-serif; position: static; orphans: 2; text-align: left;"&gt;If changed to bulk transmission:EDMA_DRV_ConfigMultiBlockTransfer(0,EDMA_TRANSFER_MEM2PERIPH,(uint32_t)&amp;amp;uarttxBuff[0], 0x4006A01C,EDMA_TRANSFER_SIZE_1B,4,2,1)&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV style="background-color: transparent; color: #777777; float: right; font-family: arial,sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; position: relative; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; width: 640px; word-spacing: 0px; zoom: 1; margin: 0px;"&gt;&lt;DIV style="margin-left: 4px; padding-bottom: 20px;"&gt;&lt;DIV style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: #777777; font-family: arial,sans-serif; font-size: 13px; font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: 400; line-height: normal; padding: 0px; margin: 0px;"&gt;&lt;DIV style="background-attachment: scroll; background-clip: border-box; background-color: #f5f5f5; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; margin: 0px 0px 8px 0px; border: 1px solid #f5f5f5;"&gt;&lt;DIV style="position: relative;"&gt;&lt;DIV dir="ltr" style="min-height: 89px; zoom: 1; padding: 8px;"&gt;&lt;SPAN style="word-wrap: break-word; z-index: auto; color: #222222; font-size: 24px; min-height: 0px; position: static;"&gt;It is the same, sending only the first data&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2017 05:38:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-LPUART0-EDMA/m-p/751352#M2095</guid>
      <dc:creator>海雄周</dc:creator>
      <dc:date>2017-11-07T05:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144   LPUART0 EDMA</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-LPUART0-EDMA/m-p/751353#M2096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You&amp;nbsp;must configure all necessary channels in EDMA_DRV_Init and after that you call LPUART_DRV_Init. Please be sure that dma configurations initializes the same channels as the channels used in LPUART initialization and LPUART is in DMA mode.&lt;/P&gt;&lt;P&gt;Please take a look at LPSI - DMA example because is a similar usecase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Razvan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2017 15:37:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-LPUART0-EDMA/m-p/751353#M2096</guid>
      <dc:creator>razva_tilimpea</dc:creator>
      <dc:date>2017-11-23T15:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144   LPUART0 EDMA</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-LPUART0-EDMA/m-p/751354#M2097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you checked this thread?&lt;/P&gt;&lt;P&gt;I think there was same issue and she/he could debug it. Check the answers.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/478599"&gt;LPUART - eDMA configuration&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Solution:&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I solved the problem by changing the priority of the DMA channel 0 (the one connected to the LPUART1_RX) to 2 instead of 0.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2020 13:29:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-LPUART0-EDMA/m-p/751354#M2097</guid>
      <dc:creator>c_joshi</dc:creator>
      <dc:date>2020-01-20T13:29:55Z</dc:date>
    </item>
  </channel>
</rss>

