<?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 MicrocontrollersのトピックRe: Can´t receive more than one byte by UART.</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-t-receive-more-than-one-byte-by-UART/m-p/434732#M25280</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Earl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did it and it works. Great.&lt;/P&gt;&lt;P&gt;I had to protect the component from the overwritting in the processor expert generating code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Jul 2015 11:23:04 GMT</pubDate>
    <dc:creator>patricio</dc:creator>
    <dc:date>2015-07-27T11:23:04Z</dc:date>
    <item>
      <title>Can´t receive more than one byte by UART.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-t-receive-more-than-one-byte-by-UART/m-p/434727#M25275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working with the FRDM-KL25Z and CodeWarrior 10.5. I am trying to send and receive several bytes by the UART, but I am not able to do so.&lt;/P&gt;&lt;P&gt;I am already able to receive one byte, but there is no way to receive more than one byte. Please let me show you what I am doing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- I am using a terminal called Docklight to send 10 bytes through RS232. I designed a pcb with a 232 tranceciver, so the FRDM-KL25Z UART pins receive the proper voltage leveIs.&lt;/P&gt;&lt;P&gt;- I check by an oscilloscope that these 10 bytes arrive to the FRDM-KL25Z UART pins.&lt;/P&gt;&lt;P&gt;- Both the terminal and the FRDM-KL25Z are configured with 9600 bauds, 8 data bits, 1 stop bit and no parity.&lt;/P&gt;&lt;P&gt;- I use the AsynchroSerial component. Please find attached its settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to receive the datas by polling, so first I use the method GetCharsInRxBuf() in order to know the number of bytes I receive. And then, I try to charge all these bytes with the method RecvChar into an array. Please find attached the code in a screen capture.&lt;/P&gt;&lt;P&gt;The point is that GetCharsInRxBuf always tells that I receive only 1 byte.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any clue what I am doing wrong? Thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 07:47:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-t-receive-more-than-one-byte-by-UART/m-p/434727#M25275</guid>
      <dc:creator>patricio</dc:creator>
      <dc:date>2015-07-23T07:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Can´t receive more than one byte by UART.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-t-receive-more-than-one-byte-by-UART/m-p/434728#M25276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Aitor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why don't you use the function &lt;STRONG&gt;ASerialLdd1_ReceiveBlock&lt;/STRONG&gt;? I think that it fits better with your application. In fact, the function &lt;STRONG&gt;UART_RecvChar&lt;/STRONG&gt; uses the function &lt;STRONG&gt;ASerialLdd1_ReceiveBlock&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, the component &lt;STRONG&gt;Serial_LDD &lt;/STRONG&gt;can be useful for you. I recommend you to take a look into it. It also includes a function to send or receive a block of data. This component is has a lower level of abstraction so is more efficient.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Earl.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 20:21:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-t-receive-more-than-one-byte-by-UART/m-p/434728#M25276</guid>
      <dc:creator>EarlOrlando</dc:creator>
      <dc:date>2015-07-23T20:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Can´t receive more than one byte by UART.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-t-receive-more-than-one-byte-by-UART/m-p/434729#M25277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Earl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will have a look to your recommendations and see if I get something. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I still don’t understand what I was doing wrong. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aitor Aranzabal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;De: EarlOrlando  &lt;/P&gt;&lt;P&gt;Enviado el: jueves, 23 de julio de 2015 22:22&lt;/P&gt;&lt;P&gt;Para: AITOR ARANZABAL&lt;/P&gt;&lt;P&gt;Asunto: Re:  - Can´t receive more than one byte by UART.&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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;lt;http://jiveon.jivesoftware.com/mpss/c/zwA/PDcDAA/t.1oy/vsj1S9XrS2SqJTesJSaEtw/h0/eqhG5v9o4WV1pCmWaB03cUjBPgRj-2F3GoJUaXSZ409bQ-3D&amp;gt; Freescale Community&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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can´t receive more than one byte by UART. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply from Earl &amp;lt;http://jiveon.jivesoftware.com/mpss/c/zwA/PDcDAA/t.1oy/vsj1S9XrS2SqJTesJSaEtw/h1/eqhG5v9o4WV1pCmWaB03cUjBPgRj-2F3GoJUaXSZ409bSFptD52UNhkZRd210-2FIwQWXO21D1d1BJXlhaAsM4UJCEzuXqJS9olAmWqS5vTZ-2BAY-3D&amp;gt;  Orlando Ramirez Sanchez in Kinetis Microcontrollers - View &amp;lt;http://jiveon.jivesoftware.com/mpss/c/zwA/PDcDAA/t.1oy/vsj1S9XrS2SqJTesJSaEtw/h2/eqhG5v9o4WV1pCmWaB03cUjBPgRj-2F3GoJUaXSZ409bSWu-2FQYmmII2lvY0tnf-2BikHrJzZIRuMazuccgcUMGO7F-2BO2jA26dDrVQB9krc5ou8g-3D&amp;gt;  the full discussion&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 07:52:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-t-receive-more-than-one-byte-by-UART/m-p/434729#M25277</guid>
      <dc:creator>patricio</dc:creator>
      <dc:date>2015-07-24T07:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Can´t receive more than one byte by UART.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-t-receive-more-than-one-byte-by-UART/m-p/434730#M25278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello again, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After playing arround with different possiblities, I was able to receive the 10 bytes. I discarded the polling and I worked with the event OnFullRxBuf(void).&lt;/P&gt;&lt;P&gt;I had to change the "Input buffer size" to 10 in the processor expert component features. Please have a look below. Please remind that I am using AsynchroSerial component.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/54405i4E628A3A1724C3A2/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my application, I will know the number of bytes that I will receive each time, but not always will be 10 bytes. So I would need to change the input buffer size each time. Is it a way to do it by firmware? I mean inserting code. I am having a look in the datasheet of the "KL25 Sub-Family Reference Manual" in order to find the proper register, but no way &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 13:55:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-t-receive-more-than-one-byte-by-UART/m-p/434730#M25278</guid>
      <dc:creator>patricio</dc:creator>
      <dc:date>2015-07-24T13:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: Can´t receive more than one byte by UART.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-t-receive-more-than-one-byte-by-UART/m-p/434731#M25279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Aitor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the file &lt;STRONG&gt;UART.h&lt;/STRONG&gt; under the &lt;STRONG&gt;Generated_Code&lt;/STRONG&gt; folder you will find a macro called &lt;STRONG&gt;UART_INP_BUF_SIZE&lt;/STRONG&gt; which is used in the file &lt;STRONG&gt;UART.c&lt;/STRONG&gt;. This macro is the bytes that the peripheral is expecting so you can convert that macro into a variable and change that variable in every &lt;STRONG&gt;OnFullRxBuf&lt;/STRONG&gt; function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if this information is useful or if I can do anything else for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Earl.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 15:30:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-t-receive-more-than-one-byte-by-UART/m-p/434731#M25279</guid>
      <dc:creator>EarlOrlando</dc:creator>
      <dc:date>2015-07-24T15:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Can´t receive more than one byte by UART.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-t-receive-more-than-one-byte-by-UART/m-p/434732#M25280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Earl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did it and it works. Great.&lt;/P&gt;&lt;P&gt;I had to protect the component from the overwritting in the processor expert generating code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2015 11:23:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-t-receive-more-than-one-byte-by-UART/m-p/434732#M25280</guid>
      <dc:creator>patricio</dc:creator>
      <dc:date>2015-07-27T11:23:04Z</dc:date>
    </item>
  </channel>
</rss>

