<?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 How to control UART0 with no printf or semiHosting in MCUXpresso General</title>
    <link>https://community.nxp.com/t5/MCUXpresso-General/How-to-control-UART0-with-no-printf-or-semiHosting/m-p/859778#M1342</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Regarding UART0 and how to control it in MCUXpresso IDE&lt;/P&gt;&lt;P&gt;Using MKE04, and both UART0 and UART1, UART1 is working but can't control UART0.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Preprocessor:&lt;/P&gt;&lt;P&gt;__REDLIB__&lt;BR /&gt;SDK_OS_BAREMETAL&lt;BR /&gt;FSL_RTOS_BM&lt;BR /&gt;SDK_DEBUGCONSOLE=0&lt;BR /&gt;CR_INTEGER_PRINTF&lt;BR /&gt;PRINTF_FLOAT_ENABLE=0&lt;BR /&gt;CPU_MKE04Z64VLD4&lt;BR /&gt;CPU_MKE04Z64VLD4_cm0plus&lt;BR /&gt;__MCUXPRESSO&lt;BR /&gt;__USE_CMSIS&lt;BR /&gt;DEBUG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached a screendump from the project.&lt;/P&gt;&lt;P&gt;Any sugesstions ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Claes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Jan 2019 16:57:06 GMT</pubDate>
    <dc:creator>claeskjellstrom</dc:creator>
    <dc:date>2019-01-08T16:57:06Z</dc:date>
    <item>
      <title>How to control UART0 with no printf or semiHosting</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/How-to-control-UART0-with-no-printf-or-semiHosting/m-p/859778#M1342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Regarding UART0 and how to control it in MCUXpresso IDE&lt;/P&gt;&lt;P&gt;Using MKE04, and both UART0 and UART1, UART1 is working but can't control UART0.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Preprocessor:&lt;/P&gt;&lt;P&gt;__REDLIB__&lt;BR /&gt;SDK_OS_BAREMETAL&lt;BR /&gt;FSL_RTOS_BM&lt;BR /&gt;SDK_DEBUGCONSOLE=0&lt;BR /&gt;CR_INTEGER_PRINTF&lt;BR /&gt;PRINTF_FLOAT_ENABLE=0&lt;BR /&gt;CPU_MKE04Z64VLD4&lt;BR /&gt;CPU_MKE04Z64VLD4_cm0plus&lt;BR /&gt;__MCUXPRESSO&lt;BR /&gt;__USE_CMSIS&lt;BR /&gt;DEBUG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached a screendump from the project.&lt;/P&gt;&lt;P&gt;Any sugesstions ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Claes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2019 16:57:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/How-to-control-UART0-with-no-printf-or-semiHosting/m-p/859778#M1342</guid>
      <dc:creator>claeskjellstrom</dc:creator>
      <dc:date>2019-01-08T16:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to control UART0 with no printf or semiHosting</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/How-to-control-UART0-with-no-printf-or-semiHosting/m-p/859779#M1343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-content-finding="Community" data-userid="333593" data-username="claeskjellstrom" href="https://community.nxp.com/people/claeskjellstrom"&gt;claes&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do not need printf or semihosting, please change the SDK debug console from semihost console&amp;nbsp; to UART console.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Quick settings -&amp;gt; SDK Debug Console&amp;nbsp; -&amp;gt; UART console&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/76785i41DCE543E5E5B49D/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Daniel&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 Jan 2019 08:05:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/How-to-control-UART0-with-no-printf-or-semiHosting/m-p/859779#M1343</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2019-01-10T08:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to control UART0 with no printf or semiHosting</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/How-to-control-UART0-with-no-printf-or-semiHosting/m-p/859780#M1344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;From what I can see now the situation is like this:&lt;/P&gt;&lt;P&gt;using redlib(none), initiating UART0 and UART1, I can control UART1 , regarding&lt;/P&gt;&lt;P&gt;UART0 I can read a char from UART0-&amp;gt;D, but I can't send anything on Tx, I have checked that Tx and Rx are active.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* UART0&amp;amp;1 init */&lt;BR /&gt; SIM-&amp;gt;SCGC |= SIM_SCGC_UART0_MASK;&lt;BR /&gt; SIM-&amp;gt;SCGC |= SIM_SCGC_UART1_MASK;&lt;/P&gt;&lt;P&gt;uart_config_t uart_config;&lt;BR /&gt; uart_config.baudRate_Bps = 19200U;&lt;BR /&gt; uart_config.parityMode = kUART_ParityDisabled;&lt;BR /&gt; uart_config.stopBitCount = kUART_OneStopBit;&lt;BR /&gt; uart_config.enableRx = true;&lt;BR /&gt; uart_config.enableTx = true;&lt;/P&gt;&lt;P&gt;UART_Init(UART0, &amp;amp;uart_config, 20000000U);&lt;BR /&gt; UART_Init(UART1, &amp;amp;uart_config, 20000000U);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When compiling for release I use None (-O0) and debug level(none) etc.......&lt;/P&gt;&lt;P&gt;When I simply changed through "quick setting" and UART Consol, the code size just increased but still same problem with UART0&lt;/P&gt;&lt;P&gt;From the pin_mux.c you can see&lt;/P&gt;&lt;P&gt;/* pin 23,24 is configured as UART0_TX, UART0_RX */&lt;BR /&gt; PORT_SetPinSelect(kPORT_UART0, kPORT_UART0_RXPTB0_TXPTB1);&lt;BR /&gt; /* pin 36,37 is configured as UART1_TX, UART1_RX */&lt;BR /&gt; PORT_SetPinSelect(kPORT_UART1, kPORT_UART1_RXPTC7_TXPTC6);&lt;BR /&gt; /* pin 43 is configured as RESET_b */&lt;BR /&gt; PORT_SetPinSelect(kPORT_RESET, kPORT_RST_RSTPE);&lt;BR /&gt; /* pin 44,42 is configured as SWD_DIO, SWD_CLK */&lt;BR /&gt; PORT_SetPinSelect(kPORT_SWDE, kPORT_SWDE_SWDE);&lt;/P&gt;&lt;P&gt;SIM-&amp;gt;SOPT0 = ((SIM-&amp;gt;SOPT0 &amp;amp;&lt;BR /&gt; /* Mask bits to zero which are setting */&lt;BR /&gt; (~(SIM_SOPT0_RXDFE_MASK | SIM_SOPT0_CLKOE_MASK)))&lt;/P&gt;&lt;P&gt;/* UART0 RxD Filter Select: 0x00u. */&lt;BR /&gt; | SIM_SOPT0_RXDFE(0x00u)&lt;/P&gt;&lt;P&gt;/* Bus Clock Output Enable: 0x00u. */&lt;BR /&gt; | SIM_SOPT0_CLKOE(0x00u));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other Ideas ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Claes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2019 17:31:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/How-to-control-UART0-with-no-printf-or-semiHosting/m-p/859780#M1344</guid>
      <dc:creator>claeskjellstrom</dc:creator>
      <dc:date>2019-01-14T17:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to control UART0 with no printf or semiHosting</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/How-to-control-UART0-with-no-printf-or-semiHosting/m-p/859781#M1345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Claes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest you refer to below link for information about printing with semihosting and printing with UART terminal&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-334074"&gt;https://community.nxp.com/docs/DOC-334074&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2019 06:47:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/How-to-control-UART0-with-no-printf-or-semiHosting/m-p/859781#M1345</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2019-02-28T06:47:00Z</dc:date>
    </item>
  </channel>
</rss>

