<?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>MQX Software Solutions中的主题 Printf redirection in MQX</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Printf-redirection-in-MQX/m-p/463989#M15508</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; I am using TWR-K65F180M with MQX in IAR workbench. The MQX takes over the IO and redirects it to Serial port. I would like to display it in the IDE using JTAG. How do I disable this default MQX redirection ? &lt;/P&gt;&lt;P&gt;or Remove the MQX terminal i/o code to use the standard IO ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Mar 2016 19:19:19 GMT</pubDate>
    <dc:creator>hariharasuthanc</dc:creator>
    <dc:date>2016-03-09T19:19:19Z</dc:date>
    <item>
      <title>Printf redirection in MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Printf-redirection-in-MQX/m-p/463989#M15508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; I am using TWR-K65F180M with MQX in IAR workbench. The MQX takes over the IO and redirects it to Serial port. I would like to display it in the IDE using JTAG. How do I disable this default MQX redirection ? &lt;/P&gt;&lt;P&gt;or Remove the MQX terminal i/o code to use the standard IO ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2016 19:19:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Printf-redirection-in-MQX/m-p/463989#M15508</guid>
      <dc:creator>hariharasuthanc</dc:creator>
      <dc:date>2016-03-09T19:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: Printf redirection in MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Printf-redirection-in-MQX/m-p/463990#M15509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class="j-post-author"&gt;&lt;STRONG&gt;&lt;A _jive_internal="true" data-avatarid="-1" data-content-finding="Community" data-userid="274507" data-username="hariharasuthanchulliparambil" href="https://community.nxp.com/people/hariharasuthanchulliparambil"&gt;Hariharasuthan&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using MQX 4.x you can fin in twrk65f180m.h the definitions shown in code below. You may change the default io channel to iodebug and rebuild MQX libraries. This file is located in the following path:&lt;/P&gt;&lt;P&gt;C:\Freescale\Freescale_MQX_4_2\mqx\source\bsp\twrk65f180m&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;/*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;* Other Serial console options:(do not forget to enable BSPCFG_ENABLE_TTY define if changed)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ttyc:"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OSJTAG-COM, TWR_SER&amp;nbsp; polled mode&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ittyc:"&amp;nbsp;&amp;nbsp;&amp;nbsp; TWR-SER&amp;nbsp;&amp;nbsp;&amp;nbsp; interrupt mode&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: #e23d39;"&gt; "iodebug:" &lt;/STRONG&gt; IDE debug console&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;** MGCT: &amp;lt;option type="string" maxsize="256" quoted="false" allowempty="false"/&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;#ifndef BSP_DEFAULT_IO_CHANNEL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #if BSPCFG_ENABLE_TTYC&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #e23d39;"&gt; &lt;STRONG&gt; #define BSP_DEFAULT_IO_CHANNEL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ttyc:" &lt;/STRONG&gt;&amp;nbsp; &lt;SPAN style="color: #303030;"&gt;/* OpenSDA-COM&amp;nbsp; polled mode&amp;nbsp; */&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #define BSP_DEFAULT_IO_CHANNEL_DEFINED&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #else&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #define BSP_DEFAULT_IO_CHANNEL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NULL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #endif&lt;/P&gt;&lt;P&gt;#else&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* undef is for backward compatibility with user_configh.h files which have already had it defined */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #undef&amp;nbsp; BSP_DEFAULT_IO_CHANNEL_DEFINED&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #define BSP_DEFAULT_IO_CHANNEL_DEFINED&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Carlos&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>Thu, 10 Mar 2016 16:32:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Printf-redirection-in-MQX/m-p/463990#M15509</guid>
      <dc:creator>Carlos_Musich</dc:creator>
      <dc:date>2016-03-10T16:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Printf redirection in MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Printf-redirection-in-MQX/m-p/463991#M15510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Calos,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks for the reply.&amp;nbsp; I am using the MQX which comes with KSDK_1.3.0.&amp;nbsp; that is&amp;nbsp; MQX RTOS version 3.0.&lt;/P&gt;&lt;P&gt;I tried what you suggested in the message, it is raising an exception in Init_Bsp.c&amp;nbsp; on the line _bsp_nio_stdio_install();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#if BSPCFG_ENABLE_IO_SUBSYSTEM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _bsp_nio_stdio_install();&lt;/P&gt;&lt;P&gt;#else /* BSPCFG_ENABLE_IO_SUBSYSTEM */&lt;/P&gt;&lt;P&gt;#if&amp;nbsp; !defined(PEX_MQX_KSDK)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dbg_uart_init();&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;#endif /* BSPCFG_ENABLE_IO_SUBSYSTEM */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by the way I inserted the code in the bsp.h , since I did not see &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;twrk65f180m in the specified folder.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I can see a file "system_MK65F18.c", inside C:\Freescale\KSDK_1.3.0\platform\devices\MK65F18\startup folder.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Hari&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2016 18:05:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Printf-redirection-in-MQX/m-p/463991#M15510</guid>
      <dc:creator>hariharasuthanc</dc:creator>
      <dc:date>2016-03-10T18:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Printf redirection in MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Printf-redirection-in-MQX/m-p/463992#M15511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hari,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this functionality is not implemented in MQX for KSDK and implementing may not be easy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you may know classic MQX uses POSIX peripheral drivers, MQX for KSDK does not, it uses the KSDK drivers. You may need to create a NIO (New IO) POSIX wrapper and replicate the original iodebug driver from classic MQX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here you can find a guide to create New IO driver from &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/isaacavila"&gt;isaacavila&lt;/A&gt;​&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-330036"&gt;Installing NIO driver in MQX for KSDK&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The original iodebug driver code in classic MQX can be found in classic MQX installation.&lt;/P&gt;&lt;P&gt;C:\Freescale\Freescale_MQX_4_2\mqx\source\io\debug&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 17:05:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Printf-redirection-in-MQX/m-p/463992#M15511</guid>
      <dc:creator>Carlos_Musich</dc:creator>
      <dc:date>2016-03-11T17:05:14Z</dc:date>
    </item>
  </channel>
</rss>

