<?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: TWR-K64F120(KDS) UART5 ISSUE</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/TWR-K64F120-KDS-UART5-ISSUE/m-p/492173#M4474</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jorge,&lt;/P&gt;&lt;P&gt;I got it working, Just played with those jumpers and used a scope to see what connects to what.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for&amp;nbsp; all the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Koorosh Hajiani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Feb 2016 22:27:59 GMT</pubDate>
    <dc:creator>kooroshhajiani</dc:creator>
    <dc:date>2016-02-08T22:27:59Z</dc:date>
    <item>
      <title>TWR-K64F120(KDS) UART5 ISSUE</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/TWR-K64F120-KDS-UART5-ISSUE/m-p/492165#M4466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can run the Hello World demo on TWR-k64f120 board(KDS) using UART1&amp;nbsp; as debug port and it works and communicates to PC&amp;nbsp; using Virtual COM port.&lt;/P&gt;&lt;P&gt;When I try to switch to UART5 , by doing the following:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Port_HAL_SetMuxMode(PORTE,9u,&lt;/SPAN&gt;kPortMuxAlt3);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Port_HAL_SetMuxMode(PORTE,8u,&lt;/SPAN&gt;kPortMuxAlt3);&lt;/P&gt;&lt;P&gt;AS I step through the code, when it gets to &lt;SPAN style="font-size: 10pt;"&gt;Port_HAL_SetMuxMode&lt;/SPAN&gt;&amp;nbsp; it hangs in some ISR that basically just spins forever (default ISR).&lt;/P&gt;&lt;P&gt;I can't tell which ISR it is in.&lt;/P&gt;&lt;P&gt;Actually this demo seems to work only for UART1 , I TRIED THIS FOR ANYOTHER UART and it does the same thing.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm running out of ideas and need help with this.&lt;/P&gt;&lt;P&gt;Please advice.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&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;Koorosh Hajiani&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2016 16:39:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/TWR-K64F120-KDS-UART5-ISSUE/m-p/492165#M4466</guid>
      <dc:creator>kooroshhajiani</dc:creator>
      <dc:date>2016-02-05T16:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K64F120(KDS) UART5 ISSUE</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/TWR-K64F120-KDS-UART5-ISSUE/m-p/492166#M4467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Koorosh Hajiani:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Most peripheral modules require a clock gate to be enabled first, otherwise any access to the related registers triggers a hardfault. In your case you are most probably missing the clock gate for &lt;STRONG&gt;PORTE&lt;/STRONG&gt;, like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLOCK_SYS_EnablePortClock(PORTE_IDX)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best Regards!&lt;BR /&gt;Jorge Gonzalez&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>Fri, 05 Feb 2016 17:43:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/TWR-K64F120-KDS-UART5-ISSUE/m-p/492166#M4467</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2016-02-05T17:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K64F120(KDS) UART5 ISSUE</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/TWR-K64F120-KDS-UART5-ISSUE/m-p/492167#M4468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Jorge ,&lt;/P&gt;&lt;P&gt;You are correct.&lt;/P&gt;&lt;P&gt;The code is not hanging anymore.&lt;/P&gt;&lt;P&gt;I'm trying to communicate using&amp;nbsp; the DB9&amp;nbsp; Connector on TWR-SER2 board instead of the virtual com port (open cds), That's why I needed to configure UART5 on TWR-K64F120 instead of UART1&amp;nbsp; which is the default UART for the demo as suggested by Robin_Shen earlier which makes sense.&lt;/P&gt;&lt;P&gt;I configured UART5 and connected DB9 to a Serial_USB&amp;nbsp; jack&amp;nbsp; to the PC (DEVICE MANAGER ASSIGNS A COM PORT FOR THE JACK) and there is nothing on the terminal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Ideas what is missing here. Jumpers setting ? Configuration?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Koorosh Hajiani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2016 19:31:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/TWR-K64F120-KDS-UART5-ISSUE/m-p/492167#M4468</guid>
      <dc:creator>kooroshhajiani</dc:creator>
      <dc:date>2016-02-05T19:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K64F120(KDS) UART5 ISSUE</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/TWR-K64F120-KDS-UART5-ISSUE/m-p/492168#M4469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Koorosh,&lt;/P&gt;&lt;P&gt;I'm assuming you are using the KDS_3.1+KSDK_1.3 and the hello world for C:\Freescale\KSDK_1.3.0\examples\twrk64f120m\demo_apps\hello_world\kds .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had to do the following modifications to get the TWR-K64F+TWR-SER working for UART5 to the DB-9 connector.&lt;/P&gt;&lt;P&gt;hardware_init.c&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14547006933393445 jive_text_macro" data-renderedposition="113_8_1105_176" jivemacro_uid="_14547006933393445"&gt;&lt;P&gt;void hardware_init(void) {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* enable clock for PORTs */&lt;/P&gt;&lt;P&gt;&amp;nbsp; CLOCK_SYS_EnablePortClock(PORTA_IDX);&lt;/P&gt;&lt;P&gt;&amp;nbsp; CLOCK_SYS_EnablePortClock(PORTC_IDX);&lt;/P&gt;&lt;P&gt;#if 1 //DES 1=needed when UART5 of TWR-K64F used with TWR-SER card, 0=default code&lt;/P&gt;&lt;P&gt;&amp;nbsp; CLOCK_SYS_EnablePortClock(PORTE_IDX);&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* Init board clock */&lt;/P&gt;&lt;P&gt;&amp;nbsp; BOARD_ClockInit();&lt;/P&gt;&lt;P&gt;&amp;nbsp; dbg_uart_init();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;board.h&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14547007539371346 jive_text_macro" data-renderedposition="331_8_1105_160" jivemacro_uid="_14547007539371346"&gt;&lt;P&gt;/* The UART to use for debug messages. */&lt;/P&gt;&lt;P&gt;#ifndef BOARD_DEBUG_UART_INSTANCE&lt;/P&gt;&lt;P&gt;#if 0 //DES 1=UART1 (VCOM)...default code, 0=UART5(TWR-SER)...test code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #define BOARD_DEBUG_UART_INSTANCE&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #define BOARD_DEBUG_UART_BASEADDR&amp;nbsp;&amp;nbsp; UART1&lt;/P&gt;&lt;P&gt;#else&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #define BOARD_DEBUG_UART_INSTANCE&amp;nbsp;&amp;nbsp; 5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #define BOARD_DEBUG_UART_BASEADDR&amp;nbsp;&amp;nbsp; UART5&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2016 19:46:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/TWR-K64F120-KDS-UART5-ISSUE/m-p/492168#M4469</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2016-02-05T19:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K64F120(KDS) UART5 ISSUE</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/TWR-K64F120-KDS-UART5-ISSUE/m-p/492169#M4470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;Thanks for your response,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture1.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/60595iDA39F57C2D95E028/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture1.PNG" alt="Capture1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2016 20:23:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/TWR-K64F120-KDS-UART5-ISSUE/m-p/492169#M4470</guid>
      <dc:creator>kooroshhajiani</dc:creator>
      <dc:date>2016-02-05T20:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K64F120(KDS) UART5 ISSUE</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/TWR-K64F120-KDS-UART5-ISSUE/m-p/492170#M4471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry forgot the other capture. So I too have the same code, yet&amp;nbsp; terminal is mute.I'll scope it and see if anything coming out of the DB9 connector&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;board.h&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture2.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/60609i4388A82F2D8FB635/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture2.PNG" alt="Capture2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;There are some jumpers J10/J15 I've removed them but I don't believe they've anything to do with it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2016 20:33:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/TWR-K64F120-KDS-UART5-ISSUE/m-p/492170#M4471</guid>
      <dc:creator>kooroshhajiani</dc:creator>
      <dc:date>2016-02-05T20:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K64F120(KDS) UART5 ISSUE</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/TWR-K64F120-KDS-UART5-ISSUE/m-p/492171#M4472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry forgot the other capture. So I too have the same code, yet&amp;nbsp; terminal is mute.I'll scope it and see if anything coming out of the DB9 connector&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;board.h&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="137134_137134.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/121052iE59687BB13867C4F/image-size/large?v=v2&amp;amp;px=999" role="button" title="137134_137134.PNG" alt="137134_137134.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture2.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/36663iEE09336A422E0D51/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture2.PNG" alt="Capture2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;There are some jumpers J10/J15 I've removed them but I don't believe they've anything to do with it&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-outcome-helpful-counts-container-default js-outcome-helpful-counts-container j-outcome-helpful-counts-container font-color-okay" data-display-overall="true" data-helpful-count="0" data-object-id="612273" data-object-type="2" data-overall-count="0"&gt;&lt;/SPAN&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; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2016 20:35:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/TWR-K64F120-KDS-UART5-ISSUE/m-p/492171#M4472</guid>
      <dc:creator>kooroshhajiani</dc:creator>
      <dc:date>2016-02-05T20:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K64F120(KDS) UART5 ISSUE</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/TWR-K64F120-KDS-UART5-ISSUE/m-p/492172#M4473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Koorosh:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you get this working?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried &lt;STRONG&gt;TWR-SER2&lt;/STRONG&gt; with the same changes as David and it worked. In the serial board there are just 3 jumpers you need to check:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;J13:&lt;/STRONG&gt; 1-2&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;J1:&lt;/STRONG&gt; 2-3&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;J2:&lt;/STRONG&gt; 2-3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Jorge Gonzalez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 22:20:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/TWR-K64F120-KDS-UART5-ISSUE/m-p/492172#M4473</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2016-02-08T22:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K64F120(KDS) UART5 ISSUE</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/TWR-K64F120-KDS-UART5-ISSUE/m-p/492173#M4474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jorge,&lt;/P&gt;&lt;P&gt;I got it working, Just played with those jumpers and used a scope to see what connects to what.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for&amp;nbsp; all the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Koorosh Hajiani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 22:27:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/TWR-K64F120-KDS-UART5-ISSUE/m-p/492173#M4474</guid>
      <dc:creator>kooroshhajiani</dc:creator>
      <dc:date>2016-02-08T22:27:59Z</dc:date>
    </item>
  </channel>
</rss>

