<?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 Re: FRDM-KE06Z UART0 code is not working in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE06Z-UART0-code-is-not-working/m-p/686814#M42271</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lajitha CS,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Thank you for your root problem sharing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If your problem is solved, please mark the correct answer to close this question, thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&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>Mon, 31 Jul 2017 07:50:29 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2017-07-31T07:50:29Z</dc:date>
    <item>
      <title>FRDM-KE06Z UART0 code is not working</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE06Z-UART0-code-is-not-working/m-p/686811#M42268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kindly help me in testing UART0 of FRDM-KE06Z in transmitting a character. When the code is run no signal is coming out of UART0 transmit pin. code is attached.&amp;nbsp;&lt;/P&gt;&lt;P&gt;main.c&lt;/P&gt;&lt;P&gt;int main(void)&lt;BR /&gt;/*lint -restore Enable MISRA rule (6.3) checking. */&lt;BR /&gt;{&lt;BR /&gt; /* Write your local variable definition here */&lt;BR /&gt; uint8_t data;&lt;BR /&gt; uint8_t tx_array[]={0x06,0x02,0x03,0x04,0x05};&lt;BR /&gt; /*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/&lt;BR /&gt; PE_low_level_init();&lt;BR /&gt; /*** End of Processor Expert internal initialization. ***/&lt;BR /&gt; /* Initialization of SS1 component */&lt;BR /&gt; // Error = SS1_ReceiveBlock(MySPIPtr, InpData, BLOCK_SIZE); /* Request data block reception */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UART0_Init();&lt;BR /&gt; //SPI0_mstrInit();&lt;BR /&gt; for(;;)&lt;BR /&gt; {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UART_tx(0x55);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;uart.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void UART0_Init()&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;SIM_PINSEL0 |= SIM_PINSEL_UART0PS_MASK; //uart0 pin select&lt;BR /&gt; SIM_SCGC |= SIM_SCGC_UART0_MASK ; //Bus clock to the UART0 module is enabled&lt;BR /&gt; UART0_BDH =0x00;&lt;BR /&gt; UART0_BDL =0x4E; //Baud rate reg. value SBR[12:0]=0x004E&amp;nbsp;&lt;BR /&gt; //UART0_C1 =UART_C1_LOOPS_MASK|UART_C1_RSRC_MASK ; // Loop back enabled and single wire uart mode&lt;/P&gt;&lt;P&gt;UART0_C2 |=UART_C2_TE_MASK ; //Tx enabled&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;void UART_tx(uint8_t value)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; // while (!(UART0_S1 &amp;amp; UART_S1_TDRE_MASK));&lt;BR /&gt; while ((UART0_S1 &amp;amp; UART_S1_TDRE_MASK) == 0);// wait if tx buf is full&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UART0_D = value;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2017 11:53:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE06Z-UART0-code-is-not-working/m-p/686811#M42268</guid>
      <dc:creator>lajithacs</dc:creator>
      <dc:date>2017-07-28T11:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-KE06Z UART0 code is not working</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE06Z-UART0-code-is-not-working/m-p/686812#M42269</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;I don't see an error with the UART code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As reference I have attached three firmware versions for the FRDM-KE06Z which you can load as reference to check the HW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;uTaskerV1.4.12_FRDM-KE06Z_UART1-115kB.bin&lt;/EM&gt; - this uses the OpenSDA VCOM UART (PTC7 for Tx and PTC6 for Rx) connection to deliver a command line menu shell. After a reset there will be a message sent at 115200 Baud and later it will respond to inputs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;uTaskerV1.4.12_FRDM-KE06Z_UART0-PTB-115kB.bin&lt;/EM&gt; - same but using UART0 (instead of UART1) and the pins are multiplexed to PTB1 for Tx and PTB0 for Rx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;uTaskerV1.4.12_FRDM-KE06Z_UART0-PTA-115kB.bin&lt;/EM&gt; - same but using UART0 (instead of UART1) and the pins are multiplexed to PTA3 for Tx and PTA2 for Rx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I build these with the uTasker project using the defines&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#define FRDM_KE06Z&lt;BR /&gt;#define DEMO_UART&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#define FRDM_KE06Z&lt;BR /&gt;#define DEMO_UART&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;#define UART0_ON_A&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#define FRDM_KE06Z&lt;BR /&gt;#define DEMO_UART&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;respectively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Beware that on the FRDM-KE06Z board the UART0 UART pins are not connected to the connectors by default since they are used by other peripheral connections. There are zero-Ohm resistors to modify this if needed, therefore measure the Tx output directly at the processor pins to be sure that it is not a measurement issue.&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;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FFRDM-KE06Z.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/FRDM-KE06Z.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2017 13:38:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE06Z-UART0-code-is-not-working/m-p/686812#M42269</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2017-07-28T13:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-KE06Z UART0 code is not working</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE06Z-UART0-code-is-not-working/m-p/686813#M42270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Mark. It was a hardware issue. UART0 tx signal i checked at the connector, which was not coming there as you have mentioned. Now its working .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jul 2017 05:37:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE06Z-UART0-code-is-not-working/m-p/686813#M42270</guid>
      <dc:creator>lajithacs</dc:creator>
      <dc:date>2017-07-31T05:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-KE06Z UART0 code is not working</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE06Z-UART0-code-is-not-working/m-p/686814#M42271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lajitha CS,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Thank you for your root problem sharing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If your problem is solved, please mark the correct answer to close this question, thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&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>Mon, 31 Jul 2017 07:50:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE06Z-UART0-code-is-not-working/m-p/686814#M42271</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-07-31T07:50:29Z</dc:date>
    </item>
  </channel>
</rss>

