<?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 Microcontrollers中的主题 Re: K61 - UART4 - transmitted character being &amp;quot;echoed&amp;quot; onto the receive pin</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K61-UART4-transmitted-character-being-quot-echoed-quot-onto-the/m-p/264880#M8437</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;I too have the same problem but on the K70.&lt;/P&gt;&lt;P&gt;I tried to comment the lines you suggested.&lt;/P&gt;&lt;P&gt;But to me it does not work.&lt;/P&gt;&lt;P&gt;Should I do anything else?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maurizio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 May 2013 12:46:29 GMT</pubDate>
    <dc:creator>Microfelix</dc:creator>
    <dc:date>2013-05-02T12:46:29Z</dc:date>
    <item>
      <title>K61 - UART4 - transmitted character being "echoed" onto the receive pin</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K61-UART4-transmitted-character-being-quot-echoed-quot-onto-the/m-p/264878#M8435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using CodeWarrior 10.3 and MQX 4.0.&amp;nbsp; K61FN1M0VJ12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a simple test program running - it transmits an "A" every 400ms on UART4.&amp;nbsp; The output looks good - either by looking at it with a scope or viewing on a terminal program on a PC. But, checking RX4 with a scope shows the same transmitted character is present there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our BSP and program use the UARTs in interrupt mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have eliminated the possibility that the echo is happening externally to the K61. A bare metal program written with the Keil tools does not have this problem - characters transmitted on TX4 do not show up on RX4. Also, the trace connecting RX4 to the rest of the system was cut as a test as well. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a register setting that can put the UART into a loopback mode but register UART4_C1 is 0x00 and this has been verified using the debugger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not seeing this behavior on the two other UARTs being used - UART2 and UART5.&amp;nbsp; I've compared UART4 and UART5 registers that have anything to do with UARTs but have not found any major differences.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any suggestions on where else to look?&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2013 18:18:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K61-UART4-transmitted-character-being-quot-echoed-quot-onto-the/m-p/264878#M8435</guid>
      <dc:creator>gorakk</dc:creator>
      <dc:date>2013-04-12T18:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: K61 - UART4 - transmitted character being "echoed" onto the receive pin</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K61-UART4-transmitted-character-being-quot-echoed-quot-onto-the/m-p/264879#M8436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It turned out that in our BSP for our custom board we had missed these lines in __pe_initialize_hardware() - they change the MUX for the pins to EXTAL1 and XTAL1:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* PORTE_PCR24: ISF=0,MUX=0 */&lt;/P&gt;&lt;P&gt;PORTE_PCR24 &amp;amp;= (uint32_t)~0x01000700UL;&lt;/P&gt;&lt;P&gt;/* PORTE_PCR25: ISF=0,MUX=0 */&lt;/P&gt;&lt;P&gt;PORTE_PCR25 &amp;amp;= (uint32_t)~0x01000700UL;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our oscillator is connected to EXTAL0 (PTA18) and XTAL0 (PTA19).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even though our application project was subsequently changing the pin MUX to UART4 TX and RX we still had the problem described above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After commenting out the above lines UART4 is working properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to Mike and David from Freescale for their help with this!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 15:32:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K61-UART4-transmitted-character-being-quot-echoed-quot-onto-the/m-p/264879#M8436</guid>
      <dc:creator>gorakk</dc:creator>
      <dc:date>2013-04-23T15:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: K61 - UART4 - transmitted character being "echoed" onto the receive pin</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K61-UART4-transmitted-character-being-quot-echoed-quot-onto-the/m-p/264880#M8437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;I too have the same problem but on the K70.&lt;/P&gt;&lt;P&gt;I tried to comment the lines you suggested.&lt;/P&gt;&lt;P&gt;But to me it does not work.&lt;/P&gt;&lt;P&gt;Should I do anything else?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maurizio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2013 12:46:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K61-UART4-transmitted-character-being-quot-echoed-quot-onto-the/m-p/264880#M8437</guid>
      <dc:creator>Microfelix</dc:creator>
      <dc:date>2013-05-02T12:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: K61 - UART4 - transmitted character being "echoed" onto the receive pin</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K61-UART4-transmitted-character-being-quot-echoed-quot-onto-the/m-p/264881#M8438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maurizio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had also commented out another line in &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt; __pe_initialize_hardware()&lt;/SPAN&gt; - I wasn't sure that it mattered so I didn't include it the fix that I posted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//OSC1_CR = (uint8_t)0x80U;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does commenting out this line and then rebuilding your BSP make a difference for your project?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Allen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2013 13:40:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K61-UART4-transmitted-character-being-quot-echoed-quot-onto-the/m-p/264881#M8438</guid>
      <dc:creator>gorakk</dc:creator>
      <dc:date>2013-05-02T13:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: K61 - UART4 - transmitted character being "echoed" onto the receive pin</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K61-UART4-transmitted-character-being-quot-echoed-quot-onto-the/m-p/264882#M8439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you very much. Now it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maurizio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2013 14:00:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K61-UART4-transmitted-character-being-quot-echoed-quot-onto-the/m-p/264882#M8439</guid>
      <dc:creator>Microfelix</dc:creator>
      <dc:date>2013-05-02T14:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: K61 - UART4 - transmitted character being "echoed" onto the receive pin</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K61-UART4-transmitted-character-being-quot-echoed-quot-onto-the/m-p/264883#M8440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Section 5.2 of application note 4526 explains why disabling OSC1 fixes the problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5.2 Oscillator (OSC)&lt;/P&gt;&lt;P&gt;A second oscillator has been added (OSC1). The new OSC pin functions are muxed over PTE24 and PTE25, so if the second&lt;/P&gt;&lt;P&gt;OSC is used it will impact hardware if any of the functions on PTE24 and PTE25 were being used.&lt;/P&gt;&lt;P&gt;OSC1 can be used as an input to the MCG, so the addition of the second OSC does affect the MCG module. Refer to the&lt;/P&gt;&lt;P&gt;MCG section for more information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Feb 2014 19:47:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K61-UART4-transmitted-character-being-quot-echoed-quot-onto-the/m-p/264883#M8440</guid>
      <dc:creator>georgerouse</dc:creator>
      <dc:date>2014-02-21T19:47:39Z</dc:date>
    </item>
  </channel>
</rss>

