<?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: Some help with a simple UART program in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Some-help-with-a-simple-UART-program/m-p/925145#M53891</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much Mark, echo was indeed turned on on the ESP.&lt;/P&gt;&lt;P&gt;I had no idea that was even an option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Jul 2019 18:05:59 GMT</pubDate>
    <dc:creator>vincent_kenbeek</dc:creator>
    <dc:date>2019-07-16T18:05:59Z</dc:date>
    <item>
      <title>Some help with a simple UART program</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Some-help-with-a-simple-UART-program/m-p/925142#M53888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a FRDM-KL25Z connected to an ESP 01 through UART1.&lt;/P&gt;&lt;P&gt;The polling example provided with the SDK seems pretty simple, however when I adjust it to print the received data instead of echoing it, it prints the data I sent to the ESP 01 instead of the data I should have received from it.&lt;/P&gt;&lt;P&gt;My code look as follows:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;uint8_t txbuff[] = "AT+GMR\r\n";&lt;BR /&gt;uint8_t rxbuff[20] = {0};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int main(void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint8_t ch;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; uart_config_t config;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BOARD_InitPins();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BOARD_BootClockRUN();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; UART_GetDefaultConfig(&amp;amp;config);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; config.baudRate_Bps = BOARD_DEBUG_UART_BAUDRATE;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; config.enableTx = true;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; config.enableRx = true;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; UART_Init(DEMO_UART, &amp;amp;config, DEMO_UART_CLK_FREQ);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; UART_WriteBlocking(DEMO_UART, txbuff, sizeof(txbuff) - 1);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; UART_ReadBlocking(DEMO_UART, &amp;amp;rxbuff, 6);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("%s\n", rxbuff);&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The printf all the way at the bottom prints "AT+GMR" which is the string that I sent to the ESP 01.&lt;/P&gt;&lt;P&gt;The response should be something along the lines of "00170901".&lt;/P&gt;&lt;P&gt;How can I see what the response from the ESP 01?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2019 12:56:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Some-help-with-a-simple-UART-program/m-p/925142#M53888</guid>
      <dc:creator>vincent_kenbeek</dc:creator>
      <dc:date>2019-07-16T12:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: Some help with a simple UART program</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Some-help-with-a-simple-UART-program/m-p/925143#M53889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vincent,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you debug your project, if you place your cursor over the "rxbuff" variable (when you receive a new character) you will see the values stored inside the array. In the following example I've sent the "b" character to my board (which is highlighted as the new value added to the rxbuff array).&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/73681i791DBA0927294099/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;By the way, please make sure that your connections between your board and the ESP-01 are correct (TX from board is connected to RX of ESP-01 and vice versa).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ricardo Delsordo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2019 16:22:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Some-help-with-a-simple-UART-program/m-p/925143#M53889</guid>
      <dc:creator>nxf51211</dc:creator>
      <dc:date>2019-07-16T16:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Some help with a simple UART program</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Some-help-with-a-simple-UART-program/m-p/925144#M53890</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;It sounds as though the ESP-01 has echo enabled (typical default for AT interfaces) and so you will receive the string that you send to it.&lt;BR /&gt;Either reconfigure it to not echo or read once (as you do) to discard the echo and then read again to read the response.&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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;Complete Kinetis solutions for professional needs, training and support: &lt;A href="http://www.utasker.com/kinetis.html" target="test_blank"&gt;http://www.utasker.com/kinetis.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Kinetis KL25, KL26, KL27, KL28, KL43, KL46, KL82&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://http://www.utasker.com/kinetis/FRDM-KL25Z.html" target="test_blank"&gt;http://http://www.utasker.com/kinetis/FRDM-KL25Z.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/TWR-KL25Z48M.html" target="test_blank"&gt;http://www.utasker.com/kinetis/TWR-KL25Z48M.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/FRDM-KL26Z.html" target="test_blank"&gt;http://www.utasker.com/kinetis/FRDM-KL26Z.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/TEENSY_LC.html" target="test_blank"&gt;http://www.utasker.com/kinetis/TEENSY_LC.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/FRDM-KL27Z.html" target="test_blank"&gt;http://www.utasker.com/kinetis/FRDM-KL27Z.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/Capuccino-KL27.html" target="test_blank"&gt;http://www.utasker.com/kinetis/Capuccino-KL27.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/FRDM-KL28Z.html" target="test_blank"&gt;http://www.utasker.com/kinetis/FRDM-KL28Z.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/FRDM-KL43Z.html" target="test_blank"&gt;http://www.utasker.com/kinetis/FRDM-KL43Z.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/TWR-KL43Z48M.html" target="test_blank"&gt;http://www.utasker.com/kinetis/TWR-KL43Z48M.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/FRDM-KL46Z.html" target="test_blank"&gt;http://www.utasker.com/kinetis/FRDM-KL46Z.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/TWR-KL46Z48M.html" target="test_blank"&gt;http://www.utasker.com/kinetis/TWR-KL46Z48M.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/FRDM-KL82Z.html" target="test_blank"&gt;http://www.utasker.com/kinetis/FRDM-KL82Z.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;SPAN style="color: #000080;"&gt;&lt;EM&gt;uTasker: supporting &amp;gt;1'000 registered Kinetis users get products faster and cheaper to market&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;EM&gt;Request Free emergency remote desk-top consulting at &lt;A href="http://www.utasker.com/services.html" target="test_blank"&gt;http://www.utasker.com/services.html&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Open Source version at &lt;A href="https://github.com/uTasker/uTasker-Kinetis" target="test_blank"&gt;https://github.com/uTasker/uTasker-Kinetis&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2019 17:44:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Some-help-with-a-simple-UART-program/m-p/925144#M53890</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2019-07-16T17:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: Some help with a simple UART program</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Some-help-with-a-simple-UART-program/m-p/925145#M53891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much Mark, echo was indeed turned on on the ESP.&lt;/P&gt;&lt;P&gt;I had no idea that was even an option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2019 18:05:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Some-help-with-a-simple-UART-program/m-p/925145#M53891</guid>
      <dc:creator>vincent_kenbeek</dc:creator>
      <dc:date>2019-07-16T18:05:59Z</dc:date>
    </item>
  </channel>
</rss>

