<?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 Switch SDK Debug Console to UART in MCUXpresso SDK</title>
    <link>https://community.nxp.com/t5/MCUXpresso-SDK/Switch-SDK-Debug-Console-to-UART/m-p/764097#M657</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Environment:&amp;nbsp; MCUXpresso, K81 target, Segger J-Link debug probe,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reference:&amp;nbsp;&lt;A href="https://community.nxp.com/docs/DOC-334074"&gt;MCUXpresso IDE and Semihosting&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Semihosting the printf output appears in the MCUXpresso Console, as expected.&amp;nbsp; However, when I switch to UART (Quick Settings -&amp;gt; SDK Debug Console -&amp;gt; UART Console) no output is seen on the LPUART.&amp;nbsp; &amp;nbsp;With UART selected, no output is sent to the MCUXpresso Console, as expected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have checked that the&amp;nbsp; SDK_DEBUGCONSOLE define is correctly set (&lt;SPAN&gt;Quick Settings -&amp;gt; Defined Symbols).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have also checked that the LPUART settings (In my case this is LPUART2 on PTD2/3.) are good.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BTW, LPUART Debug output works just fine with my projects on IAR EWARM, so I know the physical HW is OK.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Jan 2018 22:05:46 GMT</pubDate>
    <dc:creator>deniscollis</dc:creator>
    <dc:date>2018-01-04T22:05:46Z</dc:date>
    <item>
      <title>Switch SDK Debug Console to UART</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/Switch-SDK-Debug-Console-to-UART/m-p/764097#M657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Environment:&amp;nbsp; MCUXpresso, K81 target, Segger J-Link debug probe,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reference:&amp;nbsp;&lt;A href="https://community.nxp.com/docs/DOC-334074"&gt;MCUXpresso IDE and Semihosting&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Semihosting the printf output appears in the MCUXpresso Console, as expected.&amp;nbsp; However, when I switch to UART (Quick Settings -&amp;gt; SDK Debug Console -&amp;gt; UART Console) no output is seen on the LPUART.&amp;nbsp; &amp;nbsp;With UART selected, no output is sent to the MCUXpresso Console, as expected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have checked that the&amp;nbsp; SDK_DEBUGCONSOLE define is correctly set (&lt;SPAN&gt;Quick Settings -&amp;gt; Defined Symbols).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have also checked that the LPUART settings (In my case this is LPUART2 on PTD2/3.) are good.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BTW, LPUART Debug output works just fine with my projects on IAR EWARM, so I know the physical HW is OK.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jan 2018 22:05:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/Switch-SDK-Debug-Console-to-UART/m-p/764097#M657</guid>
      <dc:creator>deniscollis</dc:creator>
      <dc:date>2018-01-04T22:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: Switch SDK Debug Console to UART</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/Switch-SDK-Debug-Console-to-UART/m-p/764098#M658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oops!&amp;nbsp; Found the problem, it is not directly related to the routing of the debug console.&amp;nbsp; It's about printf().&amp;nbsp; The code uses DEBUG_PRINT(),&amp;nbsp;defined as follows:&lt;/P&gt;&lt;PRE&gt;define DEBUG_PRINT(fmt, ...) printf("%s: " fmt, __FUNCTION__, ##__VA_ARGS__)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I.e. it uses &lt;STRONG&gt;&lt;EM&gt;printf&lt;/EM&gt; &lt;/STRONG&gt;instead of &lt;STRONG&gt;&lt;EM&gt;PRINTF&lt;/EM&gt;&lt;/STRONG&gt;.&amp;nbsp; (Only PRINTF will work as it's defined as&amp;nbsp;DbgConsole_Printf)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jan 2018 22:58:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/Switch-SDK-Debug-Console-to-UART/m-p/764098#M658</guid>
      <dc:creator>deniscollis</dc:creator>
      <dc:date>2018-01-04T22:58:12Z</dc:date>
    </item>
  </channel>
</rss>

