<?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>Kinetis Software Development KitのトピックRe: FRDM-K64F - UART3 Issues With KSDK 2.0</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64F-UART3-Issues-With-KSDK-2-0/m-p/627054#M6624</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xiangjun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the response. Unfortunately, I seem to be having the same issue even when I strip the setup down to only the FRDM-K64F. Here is my procedure:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Scope hooked up to TX and RX of UART3 (PTC16/PTC17) on the FRDM-K64F&lt;/LI&gt;&lt;LI&gt;Download a simple UART test firmware I made on mbed using their Serial class.&lt;/LI&gt;&lt;LI&gt;Run the mbed firmware, and I see the UART signals show up on the scope as expected.&lt;/LI&gt;&lt;LI&gt;Unplug USB cable from J26 plug on the FRDM-K64F (the USB port on the left), and switch over to J22 plug (the USB port on the right). I also then plug in my J-Link programmer into the JTAG pins J9.&lt;/LI&gt;&lt;LI&gt;Flash the Kinetis SDK based firmware I shared in my last message.&amp;nbsp;&lt;EM&gt;(I occasionally receive a Hard Fault when I attempt to flash with this method, seemingly randomly. Perhaps it is related to this noise issue).&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;Step through the J-Link debugger until I get to the UART_WriteBlocking() command.&lt;/LI&gt;&lt;LI&gt;Watch the scope, but no UART signals seen on the scope.&lt;/LI&gt;&lt;LI&gt;I even then tried switching the USB cable back over to J26 in attempt to run the firmware without J-Link connected, but still didn't catch any signals on the scope.&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is my procedure for connecting and flashing with a J-link programmer correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my earlier test I had the RS485 transceiver, etc. connected and all seemed to work fine when flashed with mbed. So I don't believe the issue is directly related to those other boards. I suspect something may be wrong with my setup or procedure when attempting to use the J-Link programmer with the FRDM-K64F board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Apr 2017 08:42:56 GMT</pubDate>
    <dc:creator>thunderfoot</dc:creator>
    <dc:date>2017-04-21T08:42:56Z</dc:date>
    <item>
      <title>FRDM-K64F - UART3 Issues With KSDK 2.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64F-UART3-Issues-With-KSDK-2-0/m-p/627052#M6622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the FRDM-K64F for evaluation of the K64 for possible use in a commercial&amp;nbsp;project. I am fairly new to KDS and the SDK 2.0 so please bare with me! I am able to get UART3 working via pins PTC16/PTC17 no problem with a simple mbed program, however when I try to do the same within Kinetis Design Studio using SDK 2.0 I can't get UART3 to work. I have UART3 connect to an RS485 transceiver, and when monitoring on a scope here is what I see when using mbed firmware:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="182113_182113.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/122973iE910B64E2CABC4A0/image-size/large?v=v2&amp;amp;px=999" role="button" title="182113_182113.png" alt="182113_182113.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="RS485_Scope_GOOD.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11140i3F186CE798966FCC/image-size/large?v=v2&amp;amp;px=999" role="button" title="RS485_Scope_GOOD.png" alt="RS485_Scope_GOOD.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I receive the message as expected. However, here is what I see when I attempt to use UART3 with firmware created with KDS and SDK 2.0:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="182123_182123.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/122974iE296066CFD054469/image-size/large?v=v2&amp;amp;px=999" role="button" title="182123_182123.png" alt="182123_182123.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="RS485_Scope_BAD.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11083i13C784D4AFBF345F/image-size/large?v=v2&amp;amp;px=999" role="button" title="RS485_Scope_BAD.png" alt="RS485_Scope_BAD.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am assuming I must just not be muxing or initializing something correctly but haven't been able to figure it out. In my firmware, I am beginning with the Hello World demo app from the SDK2.0, and only adding minimal code to attempt to get basic functionality from UART3.&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've attached my entire hello_world.c and pin_mux.c files.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is urgent so any help would be much appreciated!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338790"&gt;hello_world.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338790"&gt;pin_mux.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Apr 2017 18:28:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64F-UART3-Issues-With-KSDK-2-0/m-p/627052#M6622</guid>
      <dc:creator>thunderfoot</dc:creator>
      <dc:date>2017-04-20T18:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K64F - UART3 Issues With KSDK 2.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64F-UART3-Issues-With-KSDK-2-0/m-p/627053#M6623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Michael, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think your code is okay, especially, the pin assignment part.&lt;/P&gt;&lt;P&gt;Regarding your issue that the noise is large, I suppose that you connect two board together, especially, the two boards ground together via float wire, which leads to the noise.&lt;/P&gt;&lt;P&gt;If you dismantle all the float wires, test only the FRDM-K64F board,&amp;nbsp; test the uart3 TX pin with scope, does the issue exist?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Hope it can help you&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Xiangjun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Apr 2017 07:02:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64F-UART3-Issues-With-KSDK-2-0/m-p/627053#M6623</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2017-04-21T07:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K64F - UART3 Issues With KSDK 2.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64F-UART3-Issues-With-KSDK-2-0/m-p/627054#M6624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xiangjun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the response. Unfortunately, I seem to be having the same issue even when I strip the setup down to only the FRDM-K64F. Here is my procedure:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Scope hooked up to TX and RX of UART3 (PTC16/PTC17) on the FRDM-K64F&lt;/LI&gt;&lt;LI&gt;Download a simple UART test firmware I made on mbed using their Serial class.&lt;/LI&gt;&lt;LI&gt;Run the mbed firmware, and I see the UART signals show up on the scope as expected.&lt;/LI&gt;&lt;LI&gt;Unplug USB cable from J26 plug on the FRDM-K64F (the USB port on the left), and switch over to J22 plug (the USB port on the right). I also then plug in my J-Link programmer into the JTAG pins J9.&lt;/LI&gt;&lt;LI&gt;Flash the Kinetis SDK based firmware I shared in my last message.&amp;nbsp;&lt;EM&gt;(I occasionally receive a Hard Fault when I attempt to flash with this method, seemingly randomly. Perhaps it is related to this noise issue).&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;Step through the J-Link debugger until I get to the UART_WriteBlocking() command.&lt;/LI&gt;&lt;LI&gt;Watch the scope, but no UART signals seen on the scope.&lt;/LI&gt;&lt;LI&gt;I even then tried switching the USB cable back over to J26 in attempt to run the firmware without J-Link connected, but still didn't catch any signals on the scope.&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is my procedure for connecting and flashing with a J-link programmer correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my earlier test I had the RS485 transceiver, etc. connected and all seemed to work fine when flashed with mbed. So I don't believe the issue is directly related to those other boards. I suspect something may be wrong with my setup or procedure when attempting to use the J-Link programmer with the FRDM-K64F board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Apr 2017 08:42:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64F-UART3-Issues-With-KSDK-2-0/m-p/627054#M6624</guid>
      <dc:creator>thunderfoot</dc:creator>
      <dc:date>2017-04-21T08:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K64F - UART3 Issues With KSDK 2.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64F-UART3-Issues-With-KSDK-2-0/m-p/627055#M6625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xiangjun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As another update, I have now also tried using the OpenSDA bootloader instead but am still having the same results...&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Using only the FRDM-K64 board (no other boards connected) and scope hooked up to UART3&lt;/LI&gt;&lt;LI&gt;Downloaded mbed bootloader and simple Serial mbed program, UART signals seen on scope as expected.&lt;/LI&gt;&lt;LI&gt;Replaced bootloader with OpenSDA, run my Hello World program from above. I am able to smoothly step through debugging from KDS, no faults or code hanging, but as the UART_WriteBlocking() command runs I see no UART signals on the scope!&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I'm really scratching my head on this. You said my code and pin muxing looks okay. I most likely am just missing something simple, but have an important show coming up in just a couple days so any help as to why I can't seem to get UART3 working when debugging through KDS would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Apr 2017 19:17:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64F-UART3-Issues-With-KSDK-2-0/m-p/627055#M6625</guid>
      <dc:creator>thunderfoot</dc:creator>
      <dc:date>2017-04-21T19:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K64F - UART3 Issues With KSDK 2.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64F-UART3-Issues-With-KSDK-2-0/m-p/627056#M6626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;How about trying to connect different GND of the board with the probe GND of scope, what is the result?&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Xiangjun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Apr 2017 08:50:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64F-UART3-Issues-With-KSDK-2-0/m-p/627056#M6626</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2017-04-24T08:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K64F - UART3 Issues With KSDK 2.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64F-UART3-Issues-With-KSDK-2-0/m-p/627057#M6627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xiangjun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the reply, however I am not exactly sure what you mean by "try to connect different GND". As I mentioned, I don't change anything about my scope setup between trying UART3 with mbed code versus KDS code. When I run the mbed code I see the UART signals on the scope, but when I run the KDS code I don't see any UART signals showing up. So I'm pretty sure the issue isn't with how the scope is connected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are there any working KDS code examples I can see which use UART3 on the FRDM-K64F board? Just seeing one working example would probably help me a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 18:35:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64F-UART3-Issues-With-KSDK-2-0/m-p/627057#M6627</guid>
      <dc:creator>thunderfoot</dc:creator>
      <dc:date>2017-05-04T18:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K64F - UART3 Issues With KSDK 2.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64F-UART3-Issues-With-KSDK-2-0/m-p/627058#M6628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xiangjun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I seem to have gotten UART3 working now by following the tips from this thread:&amp;nbsp;&lt;A href="https://community.nxp.com/thread/387282"&gt;https://community.nxp.com/thread/387282&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To be honest I'm not exactly sure why this is working and my previous tests were not. The code and pin muxing is very similar, I just started with a different SDK example (selecting the one mentioned in that thread) and swapped UART3 in place of UART0. If I discover the specific problem from before I will share it here, but otherwise at least now I can push forward with some working code!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 23:46:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64F-UART3-Issues-With-KSDK-2-0/m-p/627058#M6628</guid>
      <dc:creator>thunderfoot</dc:creator>
      <dc:date>2017-05-04T23:46:48Z</dc:date>
    </item>
  </channel>
</rss>

