<?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 Software Development Kit中的主题 Re: KDS Redirect printf to debug_printf</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KDS-Redirect-printf-to-debug-printf/m-p/401385#M1497</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Audi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you want to use debug_printf or printf ?&lt;/P&gt;&lt;P&gt;If you want to use print , you can&lt;/P&gt;&lt;P&gt;#define debug_printf printf&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;then have a test.&lt;/P&gt;&lt;P&gt;Or you can directly use debug_printf .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Oct 2015 03:27:12 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2015-10-16T03:27:12Z</dc:date>
    <item>
      <title>KDS Redirect printf to debug_printf</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KDS-Redirect-printf-to-debug-printf/m-p/401384#M1496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm missing something subtle here.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I originally created a project with KDS 3.0 and KSDK 1.2 (and PEx) which included a fsl_debug_console brought out on UART0.&amp;nbsp; I had plenty of printf() calls sprinkled throughout my code, and everything worked great.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Today I migrated the project to KSDK 1.3.&amp;nbsp; I cleaned up all of the PEx issues, regenerated the code, and surprisingly enough, compiled with zero errors.&amp;nbsp; However, my printf() calls are now broke (cause an unhandled interrupt?).&amp;nbsp; On a whim, I changed the first printf() to debug_printf(), and that line works!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What do I have to do to redirect printf() to debug_printf()?&lt;/P&gt;&lt;P&gt;- Audi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 19:31:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KDS-Redirect-printf-to-debug-printf/m-p/401384#M1496</guid>
      <dc:creator>audi_mcavoy</dc:creator>
      <dc:date>2015-10-15T19:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: KDS Redirect printf to debug_printf</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KDS-Redirect-printf-to-debug-printf/m-p/401385#M1497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Audi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you want to use debug_printf or printf ?&lt;/P&gt;&lt;P&gt;If you want to use print , you can&lt;/P&gt;&lt;P&gt;#define debug_printf printf&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;then have a test.&lt;/P&gt;&lt;P&gt;Or you can directly use debug_printf .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2015 03:27:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KDS-Redirect-printf-to-debug-printf/m-p/401385#M1497</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-10-16T03:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: KDS Redirect printf to debug_printf</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KDS-Redirect-printf-to-debug-printf/m-p/401386#M1498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the "subtle" thing that I am missing might be that I forgot to build the 1.3 libraries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I imported the dev_hid_keyboard_bm_frdmk64f project set, which also pulled in ksdk_platform_lib_K64F12 and usbd_sdk_bm_lib_MK64F12.&amp;nbsp; The two libraries built with no problem, but the example project is giving me an invalid project path warning.&amp;nbsp; It says the include path is not found, and references "C:\Freescale\KSDK_1.3.0\usb\usb_core\host\sources\classes\printer"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Audi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 18:27:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KDS-Redirect-printf-to-debug-printf/m-p/401386#M1498</guid>
      <dc:creator>audi_mcavoy</dc:creator>
      <dc:date>2015-10-19T18:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: KDS Redirect printf to debug_printf</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KDS-Redirect-printf-to-debug-printf/m-p/401387#M1499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Audi,&lt;/P&gt;&lt;P&gt;Quick peek around the KSDK_1.3 source indicates that the printer class is not present where is was in KSDK_1.2.&lt;/P&gt;&lt;P&gt;The project Properties for your example has the path to the printer class still present so you get the warning.&lt;/P&gt;&lt;P&gt;Remove it from the project to get rid of the warning (Properties-&amp;gt;C/C++ Build-&amp;gt;Tool Setting-&amp;gt; Cross ARM C Compiler-&amp;gt;Includes):&lt;/P&gt;&lt;P&gt;Delete the "../../../../../../../../../../usb/usb_core/host/sources/classes/printer" entry.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 18:50:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KDS-Redirect-printf-to-debug-printf/m-p/401387#M1499</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2015-10-19T18:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: KDS Redirect printf to debug_printf</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KDS-Redirect-printf-to-debug-printf/m-p/401388#M1500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep, that took care of it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;P&gt;- Audi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 20:46:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KDS-Redirect-printf-to-debug-printf/m-p/401388#M1500</guid>
      <dc:creator>audi_mcavoy</dc:creator>
      <dc:date>2015-10-19T20:46:48Z</dc:date>
    </item>
  </channel>
</rss>

