<?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中的主题 What is the debug console used for (fsl_debug_console)?</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/What-is-the-debug-console-used-for-fsl-debug-console/m-p/374560#M823</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've looked online for more information on this, but have come up short.&amp;nbsp; I'm interested because every time I use PEx, as soon as I add MQX this component gets added and it has to be configured.&amp;nbsp; Until now, I've just selected a random UART and configured it to make the errors go away, but now I actually need to use one of the UARTs and want to understand what fsl_debug_console is all about.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to figure it out by temporarily fixing the PEx errors, generating the code, and then searching for references to fsl_uart* and DbgCs1.&amp;nbsp; The generated code files are empty.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So what is this actually used for?&amp;nbsp; I'd like to remove it if possible, but I recall reading a post from another user here that had some execution problems when the files were removed from his project.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Apr 2015 15:56:33 GMT</pubDate>
    <dc:creator>dave408</dc:creator>
    <dc:date>2015-04-02T15:56:33Z</dc:date>
    <item>
      <title>What is the debug console used for (fsl_debug_console)?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/What-is-the-debug-console-used-for-fsl-debug-console/m-p/374560#M823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've looked online for more information on this, but have come up short.&amp;nbsp; I'm interested because every time I use PEx, as soon as I add MQX this component gets added and it has to be configured.&amp;nbsp; Until now, I've just selected a random UART and configured it to make the errors go away, but now I actually need to use one of the UARTs and want to understand what fsl_debug_console is all about.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to figure it out by temporarily fixing the PEx errors, generating the code, and then searching for references to fsl_uart* and DbgCs1.&amp;nbsp; The generated code files are empty.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So what is this actually used for?&amp;nbsp; I'd like to remove it if possible, but I recall reading a post from another user here that had some execution problems when the files were removed from his project.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 15:56:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/What-is-the-debug-console-used-for-fsl-debug-console/m-p/374560#M823</guid>
      <dc:creator>dave408</dc:creator>
      <dc:date>2015-04-02T15:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: What is the debug console used for (fsl_debug_console)?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/What-is-the-debug-console-used-for-fsl-debug-console/m-p/374561#M824</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;Short answer is fsl_debug_console() is reduced functionality IO calls in source code for replacing bulky library calls printf/scantf/putchar/getchar.&amp;nbsp; The fsl_debug_console.h has following:&lt;/P&gt;&lt;P&gt;int debug_printf(const char&amp;nbsp; *fmt_s, ...);&lt;/P&gt;&lt;P&gt;int debug_putchar(int ch);&lt;/P&gt;&lt;P&gt;int debug_scanf(const char&amp;nbsp; *fmt_ptr, ...);&lt;/P&gt;&lt;P&gt;int debug_getchar(void);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So once you configure the Component for a particular UARTx, then the above function calls will use that UARTx.&lt;/P&gt;&lt;P&gt;ex: debug_printf("\nHello World");&lt;/P&gt;&lt;P&gt;unsigned char single_char=1;&lt;/P&gt;&lt;P&gt;debug_printf("%d", single_char);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Slightly old (but not too old) document to show how it is configured into a KSD/KSDK/PE/MQX project:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-103429"&gt;How To: Create an MQX RTOS for KSDK project with Processor Expert in Kinetis Design Studio IDE&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&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>Thu, 02 Apr 2015 20:53:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/What-is-the-debug-console-used-for-fsl-debug-console/m-p/374561#M824</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2015-04-02T20:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: What is the debug console used for (fsl_debug_console)?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/What-is-the-debug-console-used-for-fsl-debug-console/m-p/374562#M825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, David!&amp;nbsp; I had read that post before, but had already forgotten some of the information there.&amp;nbsp; :smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2015 03:43:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/What-is-the-debug-console-used-for-fsl-debug-console/m-p/374562#M825</guid>
      <dc:creator>dave408</dc:creator>
      <dc:date>2015-04-03T03:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: What is the debug console used for (fsl_debug_console)?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/What-is-the-debug-console-used-for-fsl-debug-console/m-p/1568151#M8150</link>
      <description>Hi there,&lt;BR /&gt;How can I download the file for adding "fsl_debug_console.h" into my main source code as a header in keil uvision5? I cannot find any libraries to download from.</description>
      <pubDate>Mon, 12 Dec 2022 09:11:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/What-is-the-debug-console-used-for-fsl-debug-console/m-p/1568151#M8150</guid>
      <dc:creator>gloom35</dc:creator>
      <dc:date>2022-12-12T09:11:48Z</dc:date>
    </item>
  </channel>
</rss>

