<?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: Possible conflict between ENET and UART3 on K64? in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Possible-conflict-between-ENET-and-UART3-on-K64/m-p/326537#M38</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm okay with "confusing".&amp;nbsp; :smileyhappy:&amp;nbsp; Thanks for confirming the "optionality" of using ENET 1588!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Mar 2015 20:56:20 GMT</pubDate>
    <dc:creator>dave408</dc:creator>
    <dc:date>2015-03-24T20:56:20Z</dc:date>
    <item>
      <title>Possible conflict between ENET and UART3 on K64?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Possible-conflict-between-ENET-and-UART3-on-K64/m-p/326531#M32</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have some prototype hardware that I currently have running on an FRDM-K64F, programmed using the mbed environment.&amp;nbsp; As you can see below, the FRDM-K64F shows that UART3 is using PTC16 and PTC17.&amp;nbsp; Obviously, there's also ethernet available, which I use.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://developer.mbed.org/media/uploads/sam_grove/xk64f_page2.jpg.pagespeed.ic.-N9pOX1f7f.jpg"&gt;&lt;IMG alt="K64F Pinmap" class="jiveImage" height="425" src="http://developer.mbed.org/media/uploads/sam_grove/xk64f_page2.jpg.pagespeed.ic.-N9pOX1f7f.jpg" style="height: 425.25px; width: 567px;" title="K64F Pinmap" width="567" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I want to move away from mbed and have been evaluating bits and pieces of KDS/KSDK/MQX/RTCS for the past month.&amp;nbsp; I want to ensure that I can get my prototype running this toolchain on the FRDM-K64F before I move on to a custom PCB.&amp;nbsp; I am looking over the datasheet for the K64F processor to reconcile all of the pins used, and possibly pins I'll want to add to the new PCB.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question here is related to &lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;pin_mux.c&lt;/STRONG&gt;&lt;/SPAN&gt;, which provides several helper functions for configuring the peripherals on the K64F.&amp;nbsp; Specifically, &lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;configure_enet_pins&lt;/STRONG&gt;&lt;/SPAN&gt; sets up several pins, two of which are PTC16 and PTC17 (as ENET0_1588_TMR0 and ENET0_1588_TMR1).&amp;nbsp; So it would seem that there's an inherent conflict between using ethernet and UART3, but the mbed docs clearly show that UART3 is on those same pins!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What's really interesting is that &lt;STRONG style="font-family: courier new,courier;"&gt;pin_mux.c&lt;/STRONG&gt; does not have a case in &lt;STRONG style="font-family: courier new,courier;"&gt;configure_uart_pins&lt;/STRONG&gt; that handles &lt;STRONG style="font-family: courier new,courier;"&gt;HW_UART3&lt;/STRONG&gt;, so it almost seems that the KSDK team is aware that there might be a conflict.&amp;nbsp; I ended up adding a case for UART3, but this might be a problem.&amp;nbsp; Or is this actually just an oversight in the KSDK?&amp;nbsp; I am still learning how to use the UART, so I haven't been able to write any test code yet.&amp;nbsp; However, after &lt;STRONG style="font-family: courier new,courier;"&gt;configure_enet_pins&lt;/STRONG&gt; is called by &lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;_bsp_pre_init&lt;/STRONG&gt;&lt;/SPAN&gt;, my main task calls &lt;STRONG style="font-family: courier new,courier;"&gt;configure_uart_pins( 3)&lt;/STRONG&gt;, which I imagine will prevent ethernet from working properly.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any insight into this would be really appreciated!&amp;nbsp; Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 14:56:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Possible-conflict-between-ENET-and-UART3-on-K64/m-p/326531#M32</guid>
      <dc:creator>dave408</dc:creator>
      <dc:date>2015-03-18T14:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Possible conflict between ENET and UART3 on K64?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Possible-conflict-between-ENET-and-UART3-on-K64/m-p/326532#M33</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well if you check out k64's datasheet you will notice UART3 is routed to multiple pins, not just PTE16 and 17, and what you mentioned is true; you cannot use both UART3 and ENET at the same time if they share pins. My suggestion is: use another UART port if possible or use a different pin mux for UART3.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 18:54:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Possible-conflict-between-ENET-and-UART3-on-K64/m-p/326532#M33</guid>
      <dc:creator>apanecatl</dc:creator>
      <dc:date>2015-03-19T18:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Possible conflict between ENET and UART3 on K64?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Possible-conflict-between-ENET-and-UART3-on-K64/m-p/326533#M34</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pedro, thank you for your response.&amp;nbsp; Let me explain a little more of my thought process so you can tell me where I went wrong.&amp;nbsp; While UART3 uses PTC16 and PTC17 according to the FRDM-K64F design, I noticed that those pins are used for ENET0_1588_TMR0 and ENET0_1588_TMR1.&amp;nbsp; Yes, there is another location for the ENET0* pins, and the ones in question are PTB2 and PTB3.&amp;nbsp; The K64F design has those allocated for analog inputs already.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the K64F has working ethernet, UART3, and analog inputs, it doesn't seem possible for the ENET0 to be used by the ethernet module because there is no set of pins available for them.&amp;nbsp; I don't know what those pins do, but since the KSDK configures them, I can only assume that they are required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please clarify this for me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 19:22:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Possible-conflict-between-ENET-and-UART3-on-K64/m-p/326533#M34</guid>
      <dc:creator>dave408</dc:creator>
      <dc:date>2015-03-19T19:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Possible conflict between ENET and UART3 on K64?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Possible-conflict-between-ENET-and-UART3-on-K64/m-p/326534#M35</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since it was easy enough to do, I modified my existing application to use UART3 configured on PTC16 and PTC17, &lt;EM&gt;in addition to&lt;/EM&gt; ENET0_1588_TMR0 and ENET0_1588_TMR0. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I modified &lt;STRONG&gt;configure_uart_pins&lt;/STRONG&gt; in &lt;STRONG&gt;pin_mux_c&lt;/STRONG&gt; by adding a case for &lt;STRONG&gt;HW_UART3&lt;/STRONG&gt;, like so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also confirmed that &lt;STRONG&gt;configure_enet_pins&lt;/STRONG&gt; was being called before &lt;STRONG&gt;configure_uart_pins(3)&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to connect to my K64F via ethernet, as well as execute my loopback tests on UART3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any information about what&lt;STRONG&gt; ENET0_1588_TMR*&lt;/STRONG&gt; is all about would be appreciated.&amp;nbsp; I can't find anything about it online.&amp;nbsp; I only found this in the sub-family manual, which makes it sound important, but I don't know if it's actually required to get ethernet functional.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_8.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/51707i7FA59EB658E298A4/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_8.png" alt="pastedImage_8.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 20:58:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Possible-conflict-between-ENET-and-UART3-on-K64/m-p/326534#M35</guid>
      <dc:creator>dave408</dc:creator>
      <dc:date>2015-03-19T20:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Possible conflict between ENET and UART3 on K64?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Possible-conflict-between-ENET-and-UART3-on-K64/m-p/326535#M36</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yay, I spoke with my colleague who knew offhand what ENET0_1588_TMR0 is related to.&amp;nbsp; My google-fu failed me, but he told me right away that it has something to do with precision timing over ethernet.&amp;nbsp; Looking at a random datasheet for a chip that is IEEE 1588 compliant, it sure sounds like this functionality is *not* required to get ethernet working on the K64F.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore, my conclusion is that the KSDK is slightly misleading in that:&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; in &lt;STRONG&gt;configure_enet_pins()&lt;/STRONG&gt;, it sets up the ENET functionality for PTC16-19 and&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; in &lt;STRONG&gt;configure_uart_pins()&lt;/STRONG&gt;, a case for HW_UART3 is conspicuously missing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which implies that the FRDM-K64F is wired this way, yet none of the ENET pins are routed to the ethernet page in the schematics.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phew!&amp;nbsp; I'm glad that there is finally an explanation of what's going on.&amp;nbsp; I'll just remove those function calls from configure_enet_pins and continue on with development.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 21:32:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Possible-conflict-between-ENET-and-UART3-on-K64/m-p/326535#M36</guid>
      <dc:creator>dave408</dc:creator>
      <dc:date>2015-03-19T21:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: Possible conflict between ENET and UART3 on K64?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Possible-conflict-between-ENET-and-UART3-on-K64/m-p/326536#M37</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're right, the ENET0_1588TMRn registers are related to a function called timestamp, it latches a specific time to an specific event triggered by the Ethernet module, however that function is optional, it does not need to be active for the Ethernet to work correctly. And I partially agree with you on the misleading, though I would rather mention it as confusing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 19:51:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Possible-conflict-between-ENET-and-UART3-on-K64/m-p/326536#M37</guid>
      <dc:creator>apanecatl</dc:creator>
      <dc:date>2015-03-24T19:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: Possible conflict between ENET and UART3 on K64?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Possible-conflict-between-ENET-and-UART3-on-K64/m-p/326537#M38</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm okay with "confusing".&amp;nbsp; :smileyhappy:&amp;nbsp; Thanks for confirming the "optionality" of using ENET 1588!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 20:56:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Possible-conflict-between-ENET-and-UART3-on-K64/m-p/326537#M38</guid>
      <dc:creator>dave408</dc:creator>
      <dc:date>2015-03-24T20:56:20Z</dc:date>
    </item>
  </channel>
</rss>

