<?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: mixing UART and UART DMA driver KSDK 2.4 ? in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/mixing-UART-and-UART-DMA-driver-KSDK-2-4/m-p/782674#M47659</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/mjbcswitzerland"&gt;mjbcswitzerland&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your answer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried µTasker and added a source file with some functions/tasks. I followed (i think) all the steps to add a task to the OS. I tried to initialise a PIT timer and to toggle a led of the FRDM-KV31F when an interrupt occurs. But my program doesn't work and is reset by the watchdog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even by compiling the last version of the project (where you added the FRDM-KV31F target) and without modification (only config.h, change the makefile for the target with the KV_512_96.ld and link the compiler), the MCU is reset by the watchdog. Did i miss something ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS : compiling by using the Makefile from the GNU_Kinetis folder with gcc-arm-none-eabi-7-2018-q2-update and KBOOT on the board.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your answer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Oct 2018 15:12:05 GMT</pubDate>
    <dc:creator>thomas_kopp</dc:creator>
    <dc:date>2018-10-01T15:12:05Z</dc:date>
    <item>
      <title>mixing UART and UART DMA driver KSDK 2.4 ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/mixing-UART-and-UART-DMA-driver-KSDK-2-4/m-p/782670#M47655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to configure an UART by mixing the UART and UART DMA driver in order to activate DMA only for transfering datas and receiving without DMA ? (with KSDK 2.4). Can someone give an example ? Or should i do it without using KSDK ? If someone did it can he send the code used ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also in the UART example it seems that there is only one callback function for both RX and TX ?&amp;nbsp; Isn't it possible to install callback for RX and TX ? (Replacing of UART_DRV_InstallCallback function in KSDK 1.3).Also now i don't see how to specify that i want an interrupt for every bytes Received. How should i proceed for that ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for your answer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2018 09:31:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/mixing-UART-and-UART-DMA-driver-KSDK-2-4/m-p/782670#M47655</guid>
      <dc:creator>thomas_kopp</dc:creator>
      <dc:date>2018-09-21T09:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: mixing UART and UART DMA driver KSDK 2.4 ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/mixing-UART-and-UART-DMA-driver-KSDK-2-4/m-p/782671#M47656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi thomas kopp&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What MCU are you using? there should not be any problem to use UART_Tx with DMA and UART_Rx without it as long as the DMA supports independent DMA requests, for example in K64F&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/69905iCAB37F17554E5143/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;The UART_DMA example that is in the SDK uses only one callback because it manages both RX and TX with DMA, but if you remove the code that enables the DMA_Rx channel, then the driver should only create a handler for the Tx part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&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: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2018 00:34:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/mixing-UART-and-UART-DMA-driver-KSDK-2-4/m-p/782671#M47656</guid>
      <dc:creator>jorge_a_vazquez</dc:creator>
      <dc:date>2018-09-26T00:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: mixing UART and UART DMA driver KSDK 2.4 ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/mixing-UART-and-UART-DMA-driver-KSDK-2-4/m-p/782672#M47657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jorge, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently working on a FRDM_KV31F board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't make it work with using the examples in the KSDK path (2.4). I tried many things but i think i miss a step.&lt;/P&gt;&lt;P&gt;I need to use RX with an interrupt every byte,&amp;nbsp; and the tx with the dma to send datas (all in non blocking mode).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you see how to do it can you send me an example ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2018 09:20:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/mixing-UART-and-UART-DMA-driver-KSDK-2-4/m-p/782672#M47657</guid>
      <dc:creator>thomas_kopp</dc:creator>
      <dc:date>2018-09-28T09:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: mixing UART and UART DMA driver KSDK 2.4 ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/mixing-UART-and-UART-DMA-driver-KSDK-2-4/m-p/782673#M47658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rx DMA and Rx interrupt modes are very similar so if you just clear the RDMAS flag in UARTx_C5 it will switch a RX DMA setup to use interrupt instead. Then you just need to handle the interrupt in the interrupt routine (the DMA part may be set up will not do anything).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;Kinetis: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis.html&lt;/A&gt;&lt;BR /&gt;Kinetis KV31:&lt;BR /&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FTWR-KV31F120M.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/TWR-KV31F120M.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FFRDM-KV31F.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/FRDM-KV31F.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;UART user's guide: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fdocs%2FuTasker%2FuTaskerUART.PDF" rel="nofollow" target="_blank"&gt;http://www.utasker.com/docs/uTasker/uTaskerUART.PDF&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;For less questions and faster, cheaper developments: try uTasker for Kinetis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2018 11:45:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/mixing-UART-and-UART-DMA-driver-KSDK-2-4/m-p/782673#M47658</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2018-09-28T11:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: mixing UART and UART DMA driver KSDK 2.4 ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/mixing-UART-and-UART-DMA-driver-KSDK-2-4/m-p/782674#M47659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/mjbcswitzerland"&gt;mjbcswitzerland&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your answer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried µTasker and added a source file with some functions/tasks. I followed (i think) all the steps to add a task to the OS. I tried to initialise a PIT timer and to toggle a led of the FRDM-KV31F when an interrupt occurs. But my program doesn't work and is reset by the watchdog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even by compiling the last version of the project (where you added the FRDM-KV31F target) and without modification (only config.h, change the makefile for the target with the KV_512_96.ld and link the compiler), the MCU is reset by the watchdog. Did i miss something ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS : compiling by using the Makefile from the GNU_Kinetis folder with gcc-arm-none-eabi-7-2018-q2-update and KBOOT on the board.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your answer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2018 15:12:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/mixing-UART-and-UART-DMA-driver-KSDK-2-4/m-p/782674#M47659</guid>
      <dc:creator>thomas_kopp</dc:creator>
      <dc:date>2018-10-01T15:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: mixing UART and UART DMA driver KSDK 2.4 ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/mixing-UART-and-UART-DMA-driver-KSDK-2-4/m-p/782675#M47660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You write that you have KBOOT installed on the board. Since the KV31 doesn't have KBOOT in ROM I am assuming that you mean that you have installed a KBOOT version in Flash and you use it to load new binary files with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is the case you will need to use the linker script file &lt;STRONG&gt;KV_512_96_BM.ld&lt;/STRONG&gt; instead and possibly/probably adjust the start address in it to match the one that your KBOOT version uses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case of complications please contact me directly and I can step through the process with you on a Skype remote desktop session and resolve anything that is standing in the way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2018 16:41:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/mixing-UART-and-UART-DMA-driver-KSDK-2-4/m-p/782675#M47660</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2018-10-01T16:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: mixing UART and UART DMA driver KSDK 2.4 ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/mixing-UART-and-UART-DMA-driver-KSDK-2-4/m-p/782676#M47661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mark, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sorry i made a mistake, i don't use the KBOOT but the OpenSDA interface which allow me to flash the uTasker_XXX.bin file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2018 06:42:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/mixing-UART-and-UART-DMA-driver-KSDK-2-4/m-p/782676#M47661</guid>
      <dc:creator>thomas_kopp</dc:creator>
      <dc:date>2018-10-02T06:42:34Z</dc:date>
    </item>
  </channel>
</rss>

