<?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: Non-blocking printf</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Non-blocking-printf/m-p/368496#M697</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Asbjorn Fadum,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The configuration of IRQ/Polled device ("ittya:" / "ttya:") is a way used by MQX. It seems that your KSK-1.0.0 project is a MQX project.&lt;/P&gt;&lt;P&gt;For KSDK, the DbgConsole is configured by calling DbgConsole_Init() (this is done in hardware_init.c) which will pass the user configuration structure and then stdout and stdin will be connected to the seleted UART/LPUART.&lt;/P&gt;&lt;P&gt;In fsl_debug_console.c which is located in {KSDK}\platform\utilities\src, you will see that printf() will finally call UART_HAL_SendDataPolling() to output string.&lt;/P&gt;&lt;P&gt;Changing UART_HAL_SendDataPolling() to UART_DRV_SendData() will cause printf() not to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Jan 2015 17:37:35 GMT</pubDate>
    <dc:creator>Rick_Li</dc:creator>
    <dc:date>2015-01-23T17:37:35Z</dc:date>
    <item>
      <title>Non-blocking printf</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Non-blocking-printf/m-p/368495#M696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm running KSDK-1.1.0 and made a bad discovery today.&lt;/P&gt;&lt;P&gt;printf() via many calls ends up in UART_DRV_SendDataBlocking() &lt;SPAN aria-label="Alert" class="emoticon_alert emoticon-inline" style="height:16px;width:16px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;How could I configure my system so that UART_DRV_SendData() is used instead.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In KSDK-1.0.0 it was user configurable to have IRQ/Polled devices ("ittya:" / "ttya:"),&lt;/P&gt;&lt;P&gt;from what I could figure out from GDB this is no longer the case, it seems that the&lt;/P&gt;&lt;P&gt;device is IRQ-driven, but what is the point if it's still waiting to get the TX done???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2015 10:06:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Non-blocking-printf/m-p/368495#M696</guid>
      <dc:creator>oaf</dc:creator>
      <dc:date>2015-01-22T10:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: Non-blocking printf</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Non-blocking-printf/m-p/368496#M697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Asbjorn Fadum,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The configuration of IRQ/Polled device ("ittya:" / "ttya:") is a way used by MQX. It seems that your KSK-1.0.0 project is a MQX project.&lt;/P&gt;&lt;P&gt;For KSDK, the DbgConsole is configured by calling DbgConsole_Init() (this is done in hardware_init.c) which will pass the user configuration structure and then stdout and stdin will be connected to the seleted UART/LPUART.&lt;/P&gt;&lt;P&gt;In fsl_debug_console.c which is located in {KSDK}\platform\utilities\src, you will see that printf() will finally call UART_HAL_SendDataPolling() to output string.&lt;/P&gt;&lt;P&gt;Changing UART_HAL_SendDataPolling() to UART_DRV_SendData() will cause printf() not to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2015 17:37:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Non-blocking-printf/m-p/368496#M697</guid>
      <dc:creator>Rick_Li</dc:creator>
      <dc:date>2015-01-23T17:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: Non-blocking printf</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Non-blocking-printf/m-p/368497#M698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well my problem is that it seems that printf is sending one character at a time to the UART device, then despite the fact that the UART in itself is IRQ-driven doesn't help as printf will stall my task.&lt;/P&gt;&lt;P&gt;When I'm using PEx for HC12 the printf sends all bytes to a buffer controlled by the UART device-driver, and the driver will then output the characters on IRQ. Is this possible to configure some how&lt;/P&gt;&lt;P&gt;on Kinetis, using PEx?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 07:36:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Non-blocking-printf/m-p/368497#M698</guid>
      <dc:creator>oaf</dc:creator>
      <dc:date>2015-01-26T07:36:43Z</dc:date>
    </item>
  </channel>
</rss>

