<?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: Kinetis K64 UART0 Baud Issue ? in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K64-UART0-Baud-Issue/m-p/719286#M44085</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, i just tested a baremetal metal code for transmit data via UART0 without using Project Expert generated code and that confirm my fear as mentioned in the above thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any suggestions ?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 13 Jan 2018 00:33:56 GMT</pubDate>
    <dc:creator>Designer11</dc:creator>
    <dc:date>2018-01-13T00:33:56Z</dc:date>
    <item>
      <title>Kinetis K64 UART0 Baud Issue ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K64-UART0-Baud-Issue/m-p/719285#M44084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm facing with a really bizarre issue related to UART0 on the K64 microcontroller, and i don't know whether the issue is related to baud rate being shifted after letting UART0 idle (no Tx/Rx command).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue only happened after letting UART0 idle for a minute or 2, but doesn't happen on power up or after a reset.&amp;nbsp; It will send the correct commands after the initial junk command is sent to the target receiver.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance, if i&amp;nbsp;tell &amp;nbsp;UART0 to send the following command string&amp;nbsp;&lt;SPAN&gt;81 01 04 07 25 FF to a target system&amp;nbsp;&lt;/SPAN&gt;after letting UART0 idle (without sending any command) for a minute or two, it will send out this string of command 60 40 D0 50 D2 to the target system instead.&amp;nbsp; After the junk command is sent,&amp;nbsp; it will send the correct command if i tell it to send the same command.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've looked at memory location where the data is held, and the&amp;nbsp;data content is valid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using processor expert to generate the UART0 Tx code&lt;/P&gt;&lt;P&gt;Setting: polling 8N1&lt;/P&gt;&lt;P&gt;baud: 9600&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much in advance.&lt;/P&gt;&lt;P&gt;Vu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jan 2018 20:55:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K64-UART0-Baud-Issue/m-p/719285#M44084</guid>
      <dc:creator>Designer11</dc:creator>
      <dc:date>2018-01-12T20:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis K64 UART0 Baud Issue ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K64-UART0-Baud-Issue/m-p/719286#M44085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, i just tested a baremetal metal code for transmit data via UART0 without using Project Expert generated code and that confirm my fear as mentioned in the above thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any suggestions ?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Jan 2018 00:33:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K64-UART0-Baud-Issue/m-p/719286#M44085</guid>
      <dc:creator>Designer11</dc:creator>
      <dc:date>2018-01-13T00:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis K64 UART0 Baud Issue ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K64-UART0-Baud-Issue/m-p/719287#M44086</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;When you write that it confirmed your fear, do you mean that you worried it would work with bare metal code (ie. problem with PE generated code) or that it also wouldn't (ie. a general problem)? Does it now work or not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used the K64 in dozens of product developments on all UARTs in DMA and interrupt driven modes and in ombination with various low power modes and never experienced any transmission difficulties:&lt;BR /&gt;Therefore&lt;BR /&gt;a) - measure the baud rate with an oscilloscope or logic analyser to see whether it is wrong after the idle time and then this can be excluded or not&lt;BR /&gt;b) - set a break point on the TXD write of the first byte after a pause to see what value is actually being written in order to distinguish between a code problem or a peripheral problem.&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;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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 K64:&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-K64F.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/FRDM-K64F.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%2FTWR-K64F120M.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/TWR-K64F120M.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%2FTEENSY_3.5.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/TEENSY_3.5.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%2FHexiwear-K64F.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/Hexiwear-K64F.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;UART: &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;BR /&gt;&lt;SPAN&gt;Low power with UARTs: &lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2019" data-containertype="14" data-objectid="327741" data-objecttype="1" href="https://community.nxp.com/thread/327741#421247"&gt;https://community.nxp.com/message/421247#421247&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;Free Open Source solution: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fgithub.com%2FuTasker%2FuTasker-Kinetis" rel="nofollow" target="_blank"&gt;https://github.com/uTasker/uTasker-Kinetis&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Working project in 15 minutes video: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fyoutu.be%2FK8ScSgpgQ6M" rel="nofollow" target="_blank"&gt;https://youtu.be/K8ScSgpgQ6M&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Professional Kinetis support, one-on-one training and complete fast-track project solutions: &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%2Fsupport.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/support.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Jan 2018 00:57:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K64-UART0-Baud-Issue/m-p/719287#M44086</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2018-01-13T00:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis K64 UART0 Baud Issue ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K64-UART0-Baud-Issue/m-p/719288#M44087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;Thank you for your reply. The fear is that the &amp;nbsp;baremetal codes would yield the same result as the generated codes. Which it did.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im using Realterm and a hardware cable to spy on the serial communication between the two systems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven’t used the logic analyzer to capture the UART data . However, I did checked the memory content and they are not corrupted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My&amp;nbsp;baremetal code is based on the below link&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-102540"&gt;https://community.nxp.com/docs/DOC-102540&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;vu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Jan 2018 04:58:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K64-UART0-Baud-Issue/m-p/719288#M44087</guid>
      <dc:creator>Designer11</dc:creator>
      <dc:date>2018-01-13T04:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis K64 UART0 Baud Issue ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K64-UART0-Baud-Issue/m-p/719289#M44088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;vu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this problem on a reference board or on your own HW?&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>Sun, 14 Jan 2018 01:50:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K64-UART0-Baud-Issue/m-p/719289#M44088</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2018-01-14T01:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis K64 UART0 Baud Issue ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K64-UART0-Baud-Issue/m-p/719290#M44089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is on my own hardware. I haven’t tested on the reference board. My problem is very similar to the problem mentioned in the following thread&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.nxp.com/message/976985?commentID=976985#comment-976985" title="https://community.nxp.com/message/976985?commentID=976985#comment-976985"&gt;https://community.nxp.com/message/976985?commentID=976985#comment-976985&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 04:27:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K64-UART0-Baud-Issue/m-p/719290#M44089</guid>
      <dc:creator>Designer11</dc:creator>
      <dc:date>2018-01-15T04:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis K64 UART0 Baud Issue ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K64-UART0-Baud-Issue/m-p/719291#M44090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your suggestion on using a logic analyzer, I found out what caused the issue. The serial chip i'm using has an auto shutdown feature, after 30 seconds of inactivity the serial chip will go into shutdown mode. It will wait until a valid tx signal is received, then it will turn on. I found out about the issue by using a logic analyzer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vu&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 16:38:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K64-UART0-Baud-Issue/m-p/719291#M44090</guid>
      <dc:creator>Designer11</dc:creator>
      <dc:date>2018-01-15T16:38:24Z</dc:date>
    </item>
  </channel>
</rss>

