<?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: kinetis frdm-k22f printf redirection in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/kinetis-frdm-k22f-printf-redirection/m-p/903862#M53115</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SWO pin not connected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think if this pin is connected, it may be operate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;j-link connector&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="j-link.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/72118iBEB4C2ADC327FE86/image-size/large?v=v2&amp;amp;px=999" role="button" title="j-link.png" alt="j-link.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FRDM-K22F connector&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="frdm-k22f.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/72161iB56D013DBB293B69/image-size/large?v=v2&amp;amp;px=999" role="button" title="frdm-k22f.png" alt="frdm-k22f.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Apr 2019 02:25:39 GMT</pubDate>
    <dc:creator>shkim9</dc:creator>
    <dc:date>2019-04-30T02:25:39Z</dc:date>
    <item>
      <title>kinetis frdm-k22f printf redirection</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/kinetis-frdm-k22f-printf-redirection/m-p/903859#M53112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when i download kinetis sdk (via sdk generator), there is demo apps.&lt;/P&gt;&lt;P&gt;and default printf function in demo app's output is directed to &lt;STRONG&gt;UART1.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to redirect printf function to&lt;STRONG&gt; SWO output (j-link).&lt;/STRONG&gt; but i can't find it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MCUXpresso configtool has no SWO feature (peripherals)&lt;/P&gt;&lt;P&gt;and&amp;nbsp;also SDK generator&amp;nbsp;does not have it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so, for redirect printf output to SWO,&lt;/P&gt;&lt;DIV&gt;&lt;SPAN lang="en"&gt;&lt;SPAN title=""&gt;Is there a way to generate code using the tool (MCUXpresso, SDK generator, .... ) ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN lang="en"&gt;&lt;SPAN title=""&gt;or&amp;nbsp;is there any&amp;nbsp;sample project using SWO ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN lang="en"&gt;&lt;SPAN title=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN lang="en"&gt;&lt;SPAN title=""&gt;** IDE : IAR embedded workbench&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN lang="en"&gt;&lt;SPAN title=""&gt;** Debugger : J-Link SWD connection&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN lang="en"&gt;&lt;SPAN title=""&gt;** target board : FRDM-K22F&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN lang="en"&gt;&lt;SPAN title=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2019 07:03:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/kinetis-frdm-k22f-printf-redirection/m-p/903859#M53112</guid>
      <dc:creator>shkim9</dc:creator>
      <dc:date>2019-04-22T07:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: kinetis frdm-k22f printf redirection</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/kinetis-frdm-k22f-printf-redirection/m-p/903860#M53113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That very much depends on your standard I/O library implementation.&lt;/P&gt;&lt;P&gt;I'm using MCUXpresso IDE 10.3.1 and it has an option to redirect printf() to SWO, see section "SWO (Single Wire Output" in &lt;A class="link-titled" href="https://mcuoneclipse.com/2018/12/16/new-nxp-mcuxpresseo-ide-v10-3-0-release/" title="https://mcuoneclipse.com/2018/12/16/new-nxp-mcuxpresseo-ide-v10-3-0-release/"&gt;New NXP MCUXpresso IDE V10.3.0 Release | MCU on Eclipse&lt;/A&gt;. &lt;/P&gt;&lt;P&gt;For IAR you could copy that code or you might use the code snippets from &lt;A class="link-titled" href="https://mcuoneclipse.com/2016/10/17/tutorial-using-single-wire-output-swo-with-arm-cortex-m-and-eclipse/" title="https://mcuoneclipse.com/2016/10/17/tutorial-using-single-wire-output-swo-with-arm-cortex-m-and-eclipse/"&gt;Tutorial: Using Single Wire Output SWO with ARM Cortex-M and Eclipse | MCU on Eclipse&lt;/A&gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2019 10:06:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/kinetis-frdm-k22f-printf-redirection/m-p/903860#M53113</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2019-04-22T10:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: kinetis frdm-k22f printf redirection</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/kinetis-frdm-k22f-printf-redirection/m-p/903861#M53114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Erich Styger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i try build project on MCUXpresso IDE.&lt;/P&gt;&lt;P&gt;as you mentioned, check redirect option and create new project.&lt;/P&gt;&lt;P&gt;(but, there is no "SWO" related options)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="check redirect.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/66960i6F088622E267F248/image-size/large?v=v2&amp;amp;px=999" role="button" title="check redirect.PNG" alt="check redirect.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and printf still not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think the macro defined in "serial_manager.h" is wrong.&lt;/P&gt;&lt;P&gt;"SERIAL_PORT_TYPE_SWO" should be "1".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="serial_manager.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/67270iB161D950C6116CA9/image-size/large?v=v2&amp;amp;px=999" role="button" title="serial_manager.PNG" alt="serial_manager.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;but if i change this value to "1" (and "SERIAL_PORT_TYPE_UART" are "0" ), build error occurs.&lt;/P&gt;&lt;P&gt;fatal error: serial_port_swo.h: No such file or directory&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i can't find "serial_port_swo.h" anywhere.&lt;/P&gt;&lt;P&gt;it seems to be generated by MCUXpresso IDE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN lang="en"&gt;&lt;SPAN title=""&gt;Is there a better way?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;** additionally, Kinetis SDK has no "serial_port_swo.h" file.&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN lang="en"&gt;&lt;SPAN title=""&gt;The figure below shows the sdk directory.&lt;/SPAN&gt; &lt;SPAN title=""&gt;There is no "serial_port_swo.h".&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN lang="en"&gt;&lt;SPAN title=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="kinetis sdk.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/68625iC0E13A678BC4179C/image-size/large?v=v2&amp;amp;px=999" role="button" title="kinetis sdk.png" alt="kinetis sdk.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;thanks.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2019 05:55:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/kinetis-frdm-k22f-printf-redirection/m-p/903861#M53114</guid>
      <dc:creator>shkim9</dc:creator>
      <dc:date>2019-04-29T05:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: kinetis frdm-k22f printf redirection</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/kinetis-frdm-k22f-printf-redirection/m-p/903862#M53115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SWO pin not connected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think if this pin is connected, it may be operate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;j-link connector&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="j-link.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/72118iBEB4C2ADC327FE86/image-size/large?v=v2&amp;amp;px=999" role="button" title="j-link.png" alt="j-link.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FRDM-K22F connector&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="frdm-k22f.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/72161iB56D013DBB293B69/image-size/large?v=v2&amp;amp;px=999" role="button" title="frdm-k22f.png" alt="frdm-k22f.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2019 02:25:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/kinetis-frdm-k22f-printf-redirection/m-p/903862#M53115</guid>
      <dc:creator>shkim9</dc:creator>
      <dc:date>2019-04-30T02:25:39Z</dc:date>
    </item>
  </channel>
</rss>

