<?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: frdm kv31f UART Rx in MCUXpresso SDK</title>
    <link>https://community.nxp.com/t5/MCUXpresso-SDK/frdm-kv31f-UART-Rx/m-p/773886#M799</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To configure a UART there are a number of steps.&amp;nbsp; Some of the better explanations&amp;nbsp;are in the &lt;A href="https://www.nxp.com/docs/en/reference-manual/KV31P100M120SF7RM.pdf"&gt;reference manual(see Functional Description sections of the UART)&amp;nbsp;&lt;/A&gt;and the &lt;A href="https://www.nxp.com/docs/en/quick-reference-guide/KQRUG.pdf?fsrch=1&amp;amp;sr=1&amp;amp;pageNum=1"&gt;KQRUG(&lt;/A&gt;Look in chapter 12).&lt;/P&gt;&lt;P&gt;1)&amp;nbsp;&amp;nbsp;Unfortunately there was no UART support built into this project.&amp;nbsp; If I were you I would look at the project Hello World and copy what they did for the UART. Or Option 2 (MCRSP_PMSM_V1.2.0)&amp;nbsp;below which has full freemaster interface control built in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So When you create the hello_world project in MCUXpresso IDE&amp;nbsp;check the UART in the SDK Debug Console?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="uart_sdk.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/12617i0F376EB5B8CBCB3B/image-size/large?v=v2&amp;amp;px=999" role="button" title="uart_sdk.png" alt="uart_sdk.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2) As you tried, use the Pins Config Tool to&amp;nbsp;change the pins to be used for the UART both TX and RX. Soon there will be a peripheral tool that will aid you to do all of the setup for the various peripherals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="select pins_tool.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/13171i9A3F6EEF3C13E8CB/image-size/large?v=v2&amp;amp;px=999" role="button" title="select pins_tool.png" alt="select pins_tool.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Options:&lt;/P&gt;&lt;P&gt;1) If you are wanting to control a motor and do not have experience with motor control can I suggest using Kinetis Motor Suite.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) The PMSM demo project in the sdk is a base example that is not outfitted with a freemaster control.&lt;/P&gt;&lt;P&gt;The other place to get a demo and a full motor control reference design is &lt;A href="https://www.nxp.com/webapp/Download?colCode=MCRSP-PMSM&amp;amp;amp;location=null&amp;amp;fsrch=1&amp;amp;sr=5&amp;amp;pageNum=1&amp;amp;Parent_nodeId=&amp;amp;Parent_pageType=&amp;amp;Parent_nodeId=&amp;amp;Parent_pageType=&amp;amp;Parent_nodeId=&amp;amp;Parent_pageType="&gt;here: MCRSP_PMSM_V1.2.0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) &lt;A href="http://www.nxp.com/kinetisvtraining"&gt;Motor control Training&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;PhilipPhilip Drake&lt;/P&gt;&lt;TABLE border="0" cellpadding="1" cellspacing="3" style="color: #4a4a4d; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Arial, sans-serif; font-size: 16px; font-style: normal; font-weight: 400; margin-top: 0px; margin-bottom: 1em; word-spacing: 0px; white-space: normal; border-collapse: collapse; max-width: 100%; box-sizing: border-box; border-spacing: 0px; orphans: 2; widows: 2; background-color: #ffffff; text-decoration-color: initial; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial;"&gt;&lt;TBODY style="box-sizing: border-box;"&gt;&lt;TR style="box-sizing: border-box;"&gt;&lt;TD style="padding: 0px; box-sizing: border-box;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Apr 2018 14:40:58 GMT</pubDate>
    <dc:creator>philip_drake</dc:creator>
    <dc:date>2018-04-27T14:40:58Z</dc:date>
    <item>
      <title>frdm kv31f UART Rx</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/frdm-kv31f-UART-Rx/m-p/773885#M798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/pdrake"&gt;pdrake&lt;/A&gt;‌ : Please help, I am a student &amp;amp; working on KV31F UART1 Rx.&lt;/P&gt;&lt;P&gt;I am using the base code from MCUExpresso SDK for frdmkv31f_demo_app_mc_pmsm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keeping most of code&amp;nbsp;same I changed following things :&lt;/P&gt;&lt;P&gt;1. Configured UART1 Rx to PTE1 - using Pin configuration.&lt;/P&gt;&lt;P&gt;2. UART1 config&lt;/P&gt;&lt;P&gt;3. reading data using&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ui8UARTRead = UART_ReadByte(UART1);&lt;/P&gt;&lt;P&gt;4. taking action if&amp;nbsp;ui8UARTRead has certain value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know where I am going wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hereby I am attaching main.c&lt;/P&gt;&lt;P&gt;Please help it will be highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/tag/frdm-kv31/tg-p"&gt;#frdm-kv31&lt;/A&gt;‌ &lt;A href="https://community.nxp.com/t5/tag/uart_polling/tg-p"&gt;#uart_polling&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2018 13:04:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/frdm-kv31f-UART-Rx/m-p/773885#M798</guid>
      <dc:creator>onkarpatil</dc:creator>
      <dc:date>2018-04-26T13:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: frdm kv31f UART Rx</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/frdm-kv31f-UART-Rx/m-p/773886#M799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To configure a UART there are a number of steps.&amp;nbsp; Some of the better explanations&amp;nbsp;are in the &lt;A href="https://www.nxp.com/docs/en/reference-manual/KV31P100M120SF7RM.pdf"&gt;reference manual(see Functional Description sections of the UART)&amp;nbsp;&lt;/A&gt;and the &lt;A href="https://www.nxp.com/docs/en/quick-reference-guide/KQRUG.pdf?fsrch=1&amp;amp;sr=1&amp;amp;pageNum=1"&gt;KQRUG(&lt;/A&gt;Look in chapter 12).&lt;/P&gt;&lt;P&gt;1)&amp;nbsp;&amp;nbsp;Unfortunately there was no UART support built into this project.&amp;nbsp; If I were you I would look at the project Hello World and copy what they did for the UART. Or Option 2 (MCRSP_PMSM_V1.2.0)&amp;nbsp;below which has full freemaster interface control built in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So When you create the hello_world project in MCUXpresso IDE&amp;nbsp;check the UART in the SDK Debug Console?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="uart_sdk.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/12617i0F376EB5B8CBCB3B/image-size/large?v=v2&amp;amp;px=999" role="button" title="uart_sdk.png" alt="uart_sdk.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2) As you tried, use the Pins Config Tool to&amp;nbsp;change the pins to be used for the UART both TX and RX. Soon there will be a peripheral tool that will aid you to do all of the setup for the various peripherals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="select pins_tool.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/13171i9A3F6EEF3C13E8CB/image-size/large?v=v2&amp;amp;px=999" role="button" title="select pins_tool.png" alt="select pins_tool.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Options:&lt;/P&gt;&lt;P&gt;1) If you are wanting to control a motor and do not have experience with motor control can I suggest using Kinetis Motor Suite.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) The PMSM demo project in the sdk is a base example that is not outfitted with a freemaster control.&lt;/P&gt;&lt;P&gt;The other place to get a demo and a full motor control reference design is &lt;A href="https://www.nxp.com/webapp/Download?colCode=MCRSP-PMSM&amp;amp;amp;location=null&amp;amp;fsrch=1&amp;amp;sr=5&amp;amp;pageNum=1&amp;amp;Parent_nodeId=&amp;amp;Parent_pageType=&amp;amp;Parent_nodeId=&amp;amp;Parent_pageType=&amp;amp;Parent_nodeId=&amp;amp;Parent_pageType="&gt;here: MCRSP_PMSM_V1.2.0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) &lt;A href="http://www.nxp.com/kinetisvtraining"&gt;Motor control Training&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;PhilipPhilip Drake&lt;/P&gt;&lt;TABLE border="0" cellpadding="1" cellspacing="3" style="color: #4a4a4d; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Arial, sans-serif; font-size: 16px; font-style: normal; font-weight: 400; margin-top: 0px; margin-bottom: 1em; word-spacing: 0px; white-space: normal; border-collapse: collapse; max-width: 100%; box-sizing: border-box; border-spacing: 0px; orphans: 2; widows: 2; background-color: #ffffff; text-decoration-color: initial; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial;"&gt;&lt;TBODY style="box-sizing: border-box;"&gt;&lt;TR style="box-sizing: border-box;"&gt;&lt;TD style="padding: 0px; box-sizing: border-box;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2018 14:40:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/frdm-kv31f-UART-Rx/m-p/773886#M799</guid>
      <dc:creator>philip_drake</dc:creator>
      <dc:date>2018-04-27T14:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: frdm kv31f UART Rx</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/frdm-kv31f-UART-Rx/m-p/773887#M800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your ans.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could able to make the motor work / control as per my needs. but what I&lt;/P&gt;&lt;P&gt;am trying to achieve is KV31F should receive input on UART and then it&lt;/P&gt;&lt;P&gt;should operate the motor based on received speed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I am not able to receive data on UART.&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;&lt;/P&gt;&lt;P&gt;Onkar Patil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2018 18:24:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/frdm-kv31f-UART-Rx/m-p/773887#M800</guid>
      <dc:creator>onkarpatil</dc:creator>
      <dc:date>2018-04-27T18:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: frdm kv31f UART Rx</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/frdm-kv31f-UART-Rx/m-p/773888#M801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then definitely look at and duplicate the UART set up in hello world or other UART SDK demo code, coping it to the motor project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Philip&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2018 19:55:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/frdm-kv31f-UART-Rx/m-p/773888#M801</guid>
      <dc:creator>philip_drake</dc:creator>
      <dc:date>2018-04-30T19:55:31Z</dc:date>
    </item>
  </channel>
</rss>

