<?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: Trouble using printf/debug_printf using MQX/KSDK/PEx with FRDM-K22F in Processor Expert Software</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/Trouble-using-printf-debug-printf-using-MQX-KSDK-PEx-with-FRDM/m-p/394844#M3102</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dave:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is for the K20 MCU (OpenSDA interface).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually the pins used from the K64 MCU correspond to UART0 module. Check the next image:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="K64_UART.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/49864iABBF1632CFC208B3/image-size/large?v=v2&amp;amp;px=999" role="button" title="K64_UART.png" alt="K64_UART.png" /&gt;&lt;/span&gt;&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>Wed, 22 Apr 2015 02:03:21 GMT</pubDate>
    <dc:creator>Jorge_Gonzalez</dc:creator>
    <dc:date>2015-04-22T02:03:21Z</dc:date>
    <item>
      <title>Trouble using printf/debug_printf using MQX/KSDK/PEx with FRDM-K22F</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Trouble-using-printf-debug-printf-using-MQX-KSDK-PEx-with-FRDM/m-p/394840#M3098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I still haven't got a good understanding of how determining what pins are used for the UART that eventually sends its data to the virtual COM port when using the Segger jlink firmware.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a bare metal project where printf goes to the console window in KDS, which is pretty nice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a FRDM-K64F project that connects fsl_debug_console to UART0, and output from debug_printf goes to the virtual COM port.&amp;nbsp; I have to open a terminal program to see the output, but that's fine.&amp;nbsp; Rx goes to UART1_RX_TGTMCU and Tx goes to UART1_TX_TGTMCU.&amp;nbsp; The issue for me here is that I wouldn't have known how to determine those are the right pins, if I hadn't read someone else's tutorial.&amp;nbsp; :smileysad:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a FRDM-K22F project that connects fsl_debug_console to UART0, and I have assigned Tx to PTB17, but none of the options are free or make sense.&amp;nbsp; For example, here are the available options:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;PTB17 - available, assigned, but not working with debug_printf&lt;/LI&gt;&lt;LI&gt;PTA2/UART0_TX/FTM0_CH7/JTAG_TDO/TRACE_SWO/EZP_DO - in conflict&lt;/LI&gt;&lt;LI&gt;PTD7/UART0_TX/FTM0_CH7/FTM0_FLT1/SPI1_SIN - in conflict with SPI&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rx has no available options:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;PTB16 - in use, but if it's the one that *must* be used, that's fine, I can change to another GPIO&lt;/LI&gt;&lt;LI&gt;CMP0_Output - not available with the CPU package&lt;/LI&gt;&lt;LI&gt;CMP1_Output - also not available&lt;/LI&gt;&lt;LI&gt;PTD6 - in conflict with SPI&lt;/LI&gt;&lt;LI&gt;PTA1/UART0_RX/FTM0_CH6/JTAG_TDI/ESP_DI - in conflict with other property, though it's not one that I set up&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So how does one determine what pins should be assigned to the UART that will go to the virtual COM port or the console window?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At this point, I really only need Tx working so I can output to the terminal, but I can't even get that to work when set to PTB17, which is the only available option...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 02:10:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Trouble-using-printf-debug-printf-using-MQX-KSDK-PEx-with-FRDM/m-p/394840#M3098</guid>
      <dc:creator>dave408</dc:creator>
      <dc:date>2015-04-10T02:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble using printf/debug_printf using MQX/KSDK/PEx with FRDM-K22F</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Trouble-using-printf-debug-printf-using-MQX-KSDK-PEx-with-FRDM/m-p/394841#M3099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dave:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The correct interface for the FRDM-K22F virtual COM (via OpenSDA) is &lt;STRONG&gt;UART1&lt;/STRONG&gt;,&amp;nbsp; pins PTE0/PTE1. Usual ways to determine this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1)&lt;/STRONG&gt; From the board &lt;A href="http://cache.freescale.com/files/microcontrollers/doc/user_guide/FRDMK22FUG.pdf"&gt;&lt;STRONG&gt;user guide&lt;/STRONG&gt;&lt;/A&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_7.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/51346i008D2285102A296D/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_7.png" alt="pastedImage_7.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2)&lt;/STRONG&gt; The board &lt;A href="http://www.freescale.com/files/microcontrollers/hardware_tools/schematics/FRDM-K22F-SCH.pdf"&gt;&lt;STRONG&gt;schematics&lt;/STRONG&gt;&lt;/A&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_12.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/50775i137341F0229D9EAE/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_12.png" alt="pastedImage_12.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;:smileyalert: IMPORTANT: A bug has been identified with the &lt;STRONG&gt;fsl_debug_console&lt;/STRONG&gt; component for FRDM-K22F. It generates an erroneous UART index in the file &lt;STRONG&gt;DbgCs1.h&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define BOARD_DEBUG_UART_INSTANCE &lt;STRONG style="color: #ff0000;"&gt;2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Please change it to 1 and disable code generation only for that component:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_11.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/51518i909C9FE390E0DBD1/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_11.png" alt="pastedImage_11.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;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, 10 Apr 2015 03:46:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Trouble-using-printf-debug-printf-using-MQX-KSDK-PEx-with-FRDM/m-p/394841#M3099</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2015-04-10T03:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble using printf/debug_printf using MQX/KSDK/PEx with FRDM-K22F</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Trouble-using-printf-debug-printf-using-MQX-KSDK-PEx-with-FRDM/m-p/394842#M3100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, thank you, I will give that a try!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT -- Yup, that did the trick!!!&amp;nbsp; Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 04:16:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Trouble-using-printf-debug-printf-using-MQX-KSDK-PEx-with-FRDM/m-p/394842#M3100</guid>
      <dc:creator>dave408</dc:creator>
      <dc:date>2015-04-10T04:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble using printf/debug_printf using MQX/KSDK/PEx with FRDM-K22F</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Trouble-using-printf-debug-printf-using-MQX-KSDK-PEx-with-FRDM/m-p/394843#M3101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jorge, I'm currently revisiting my K64F project, and figured I'd close the loop and see how your explanation matches up.&amp;nbsp; Can you please explain one more thing?&amp;nbsp; I'm looking at the K64F schematic right now, and this is what I see:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/49368iE314BB289755B117/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Normally, I believe I have the osa1 UART device set to UART0, and RxD and TxD are UART1_RX_TGTMCU and UART1_TX_TGTMCU.&amp;nbsp; Is this a bug in PEx?&amp;nbsp; I'm jumping between so many projects right now I can't remember if this is the one where printf to the virtual COM port isn't working, but if not, maybe this is why.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I select UART1 from Device, then I can't assign the RxD and TxD signals in PEx as they appear in the schematic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 23:35:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Trouble-using-printf-debug-printf-using-MQX-KSDK-PEx-with-FRDM/m-p/394843#M3101</guid>
      <dc:creator>dave408</dc:creator>
      <dc:date>2015-04-21T23:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble using printf/debug_printf using MQX/KSDK/PEx with FRDM-K22F</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Trouble-using-printf-debug-printf-using-MQX-KSDK-PEx-with-FRDM/m-p/394844#M3102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dave:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is for the K20 MCU (OpenSDA interface).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually the pins used from the K64 MCU correspond to UART0 module. Check the next image:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="K64_UART.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/49864iABBF1632CFC208B3/image-size/large?v=v2&amp;amp;px=999" role="button" title="K64_UART.png" alt="K64_UART.png" /&gt;&lt;/span&gt;&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>Wed, 22 Apr 2015 02:03:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Trouble-using-printf-debug-printf-using-MQX-KSDK-PEx-with-FRDM/m-p/394844#M3102</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2015-04-22T02:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble using printf/debug_printf using MQX/KSDK/PEx with FRDM-K22F</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Trouble-using-printf-debug-printf-using-MQX-KSDK-PEx-with-FRDM/m-p/394845#M3103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AH!&amp;nbsp; Such a dumb mistake on my end.&amp;nbsp; Thank you for the clarification.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 06:03:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Trouble-using-printf-debug-printf-using-MQX-KSDK-PEx-with-FRDM/m-p/394845#M3103</guid>
      <dc:creator>dave408</dc:creator>
      <dc:date>2015-04-22T06:03:06Z</dc:date>
    </item>
  </channel>
</rss>

