<?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>NXP DesignsのトピックRe: DMA with UART for MK10DN512VLQ10 with processor Expert 10.4</title>
    <link>https://community.nxp.com/t5/NXP-Designs/DMA-with-UART-for-MK10DN512VLQ10-with-processor-Expert-10-4/m-p/1052090#M438</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aalakh, I hope you're doing well!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have included an example configuration for the DMA using the UART driver in the SDK package for the MK10DN512VLQ10.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This example is made for the TWR-K60D evaluation board, however, the code can be adapted to the MK10D as they share the same SDK version and some functionality.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It can be found in the following path after downloading and extracting the SDK package:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;...\SDK_2.2.0_MK10DN512xxx10\boards\twrk60d100m\driver_examples\uart\edma_transfer&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It configures and initializes the UART and eDMA modules in the device, and it then configures the transfer of an N-size string (contained in the g_tipString array).&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;    &lt;SPAN class="comment token"&gt;/* Send g_tipString out. */&lt;/SPAN&gt;
    xfer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;data &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; g_tipString&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    xfer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;dataSize &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;sizeof&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;g_tipString&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    txOnGoing &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; true&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="token function"&gt;UART_SendEDMA&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;DEMO_UART&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt;g_uartEdmaHandle&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt;xfer&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 &lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Then, the transfer is triggered using the UART_SendEDMA function, and the program waits until this is completed to then start echoing the user's input in a Terminal emulator.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The rest of the configuration can be found in the uart_edma_transfer.c source file of the example project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if you need any more information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Aug 2020 21:45:06 GMT</pubDate>
    <dc:creator>Sebastian_Del_Rio</dc:creator>
    <dc:date>2020-08-05T21:45:06Z</dc:date>
    <item>
      <title>DMA with UART for MK10DN512VLQ10 with processor Expert 10.4</title>
      <link>https://community.nxp.com/t5/NXP-Designs/DMA-with-UART-for-MK10DN512VLQ10-with-processor-Expert-10-4/m-p/1052089#M437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem Statement /Requirements :&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using MK10DN512VLQ10 Controller for simple application as follows:&lt;/P&gt;&lt;P&gt;1) I want to use UART to transmit data with the help of eDMA channel 4 (so that my CPU is free) for my Modbus Application&lt;/P&gt;&lt;P&gt;2) I want to generate interrupt at the end of transmission of last byte&lt;/P&gt;&lt;P&gt;3) Number of bytes to be transfer to UART by DMA will change as per modbus query&lt;/P&gt;&lt;P&gt;4) I want use Process Expert 10.4 for code generation&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Version: 10.4.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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Build: b140319&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want create UART and eDMA configuration using Processor Expert 10.4&lt;/P&gt;&lt;P&gt;Following are the snapshot :&lt;/P&gt;&lt;P&gt;1) Configuration of eDMA (Settings tab)&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/109195i7DB408AB847104B4/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;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/109251i0B7F0F865E7F10DD/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/109291i0EB508A4A9B211BB/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here i have tried to use eDMA Channel 4 for UART:&lt;/P&gt;&lt;P&gt;UART Configuration:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/109329i92260E8E4295DC94/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I cannot see the DMA request link in this....&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/109364i9DEEF2CCD3D15AAE/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_6.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/109415i0A3AE3CFAD27266D/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_6.png" alt="pastedImage_6.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have following question:&lt;/P&gt;&lt;P&gt;1) I cannot find how to link UART and eDMA... Is it possible to link eDMA Channel with UART for K10 series controller&lt;/P&gt;&lt;P&gt;2) With this configuration, UART is not requesting eDMA for data transfer when UART transmit is initiated&lt;/P&gt;&lt;P&gt;3) Is it possible to change the configuration of eDMA to change the number of bytes to be transferred to UART&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot see the link of DMA with UART as it can be seen for ADC :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_7.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/109292iAECAA26FB2E879B3/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_7.png" alt="pastedImage_7.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please let me know if I have missed anything...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Aalakh Devari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Aug 2020 10:28:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NXP-Designs/DMA-with-UART-for-MK10DN512VLQ10-with-processor-Expert-10-4/m-p/1052089#M437</guid>
      <dc:creator>aalakh_devari</dc:creator>
      <dc:date>2020-08-01T10:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: DMA with UART for MK10DN512VLQ10 with processor Expert 10.4</title>
      <link>https://community.nxp.com/t5/NXP-Designs/DMA-with-UART-for-MK10DN512VLQ10-with-processor-Expert-10-4/m-p/1052090#M438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aalakh, I hope you're doing well!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have included an example configuration for the DMA using the UART driver in the SDK package for the MK10DN512VLQ10.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This example is made for the TWR-K60D evaluation board, however, the code can be adapted to the MK10D as they share the same SDK version and some functionality.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It can be found in the following path after downloading and extracting the SDK package:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;...\SDK_2.2.0_MK10DN512xxx10\boards\twrk60d100m\driver_examples\uart\edma_transfer&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It configures and initializes the UART and eDMA modules in the device, and it then configures the transfer of an N-size string (contained in the g_tipString array).&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;    &lt;SPAN class="comment token"&gt;/* Send g_tipString out. */&lt;/SPAN&gt;
    xfer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;data &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; g_tipString&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    xfer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;dataSize &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;sizeof&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;g_tipString&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    txOnGoing &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; true&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="token function"&gt;UART_SendEDMA&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;DEMO_UART&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt;g_uartEdmaHandle&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt;xfer&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 &lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Then, the transfer is triggered using the UART_SendEDMA function, and the program waits until this is completed to then start echoing the user's input in a Terminal emulator.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The rest of the configuration can be found in the uart_edma_transfer.c source file of the example project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if you need any more information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2020 21:45:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NXP-Designs/DMA-with-UART-for-MK10DN512VLQ10-with-processor-Expert-10-4/m-p/1052090#M438</guid>
      <dc:creator>Sebastian_Del_Rio</dc:creator>
      <dc:date>2020-08-05T21:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: DMA with UART for MK10DN512VLQ10 with processor Expert 10.4</title>
      <link>https://community.nxp.com/t5/NXP-Designs/DMA-with-UART-for-MK10DN512VLQ10-with-processor-Expert-10-4/m-p/1052091#M439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sebastian,&lt;/P&gt;&lt;P&gt;Can this configuration be done using processor Expert 10.4 instead of developing or resuing the driver from somewhere else...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Aalakh Devari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2020 04:47:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NXP-Designs/DMA-with-UART-for-MK10DN512VLQ10-with-processor-Expert-10-4/m-p/1052091#M439</guid>
      <dc:creator>aalakh_devari</dc:creator>
      <dc:date>2020-08-10T04:47:00Z</dc:date>
    </item>
  </channel>
</rss>

