<?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>Processor Expert Software中的主题 Re: RingBufferUint8 component together with Serial_LDD, and simply use the high level component called AsynchroSerial</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/RingBufferUint8-component-together-with-Serial-LDD-and-simply/m-p/270879#M1759</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I woould just add that &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;on Kinetis MCUs there is recommended to use the LDD component which are newer generation of component that should replace the legacy "high level components" like AsynchroSerial.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: inherit; font-size: 10pt; line-height: 1.5em; font-style: inherit;"&gt;If you'd like to use buffering, the Serial_LDD allows to use your own string buffers. &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Here is a "from scratch" example that processes input by blocks of 10 characters, with interrupts enabled (otherwise you would have to call AS1_Main method of the component in your loop) :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-family: inherit;"&gt;Content in ProcessorExpert.c:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;bool DataReceivedFlg = FALSE;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;char OutData[] = "Hello!";&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;char SerialBuf[10];&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;char Received[10];&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;LDD_TError Error;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;void main(void)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;{&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; . . .&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; /* Start reception of a given number of characters (in this case 10),&amp;nbsp; passing pointer to the buffer */&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; Error = AS1_ReceiveBlock(AS1_DeviceData, &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;SerialBuf&lt;/SPAN&gt;, 10);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; for(;;) {&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (DataReceivedFlg) {&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Do something with the data in Received string here. It only must take shorther than receiving other 10 characters.... */&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* clear flag */&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DataReceivedFlg = FALSE;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* you can for example reply something back */&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Error = AS1_SendBlock(&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;AS1_DeviceData&lt;/STRONG&gt;&lt;/SPAN&gt;, OutData, sizeof(OutData));&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; }&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;Content of Events.c:&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;extern volatile bool DataReceivedFlg;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;void AS1_OnBlockReceived(LDD_TUserData *UserDataPtr)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;{&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; /* just move received data for main loop processing */&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp; memcpy(Received, SerialBuf, sizeof(Received));&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; /* Set DataReceivedFlg flag */&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; DataReceivedFlg = TRUE; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; /* Start reception again */&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; Error = AS1_ReceiveBlock(AS1_DeviceData, &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;SerialBuf&lt;/SPAN&gt;, 10);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;You can see some&amp;nbsp; simple examples on the Typical usage page from from the Serial_LDD component help (you can invoke it using "Help on component" pop-up menu command):&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;To use the printf, there is necessary to add ConsoleIO component to the project which automaticalle (which uses an inherited Serial_LDD) as erich described in his nice tutorial ( &lt;A class="jive-link-external-small" href="http://mcuoneclipse.com/2013/02/07/tutorial-printf-with-and-without-processor-expert/" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #6a737b;"&gt;Tutorial: Printf() with (and without) Processor Expert | MCU on Eclipse ).&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;best regards&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Petr Hradsky&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Processor Expert Support Team&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Jul 2013 07:54:47 GMT</pubDate>
    <dc:creator>Petr_H</dc:creator>
    <dc:date>2013-07-26T07:54:47Z</dc:date>
    <item>
      <title>RingBufferUint8 component together with Serial_LDD, and simply use the high level component called AsynchroSerial</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/RingBufferUint8-component-together-with-Serial-LDD-and-simply/m-p/270874#M1754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I looked at Erich blog, at the &lt;A href="http://mcuoneclipse.com/2012/10/14/tutorial-printf-and-hello-world-with-the-freedom-kl25z-board/"&gt;http://mcuoneclipse.com/2012/10/14/tutorial-printf-and-hello-world-with-the-freedom-kl25z-board/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The blog is very useful, and Erich efforts are not taken as granted.&lt;/P&gt;&lt;P&gt;Thanks a lot for doing all this stuff, for all of us.&lt;/P&gt;&lt;P&gt;(I wanted to reply there, but I don't know how) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A sort question:&lt;/P&gt;&lt;P&gt;Uarts 3,4,5 of K60 don't have buffers, so there is a risk to loose data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the difference between using the new RingBufferUint8 component together with Serial_LDD, and simply use the high level component called AsynchroSerial (That has option to configure Input and Output buffer size) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW: till today I didn’t understand what to use. The LDD components or the high level components ?&amp;nbsp; and why this or the other.&lt;/P&gt;&lt;P&gt;(I don’t have OS)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;P&gt;&amp;nbsp; OM&lt;/P&gt;&lt;H1&gt; &lt;/H1&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Jul 2013 09:35:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/RingBufferUint8-component-together-with-Serial-LDD-and-simply/m-p/270874#M1754</guid>
      <dc:creator>om</dc:creator>
      <dc:date>2013-07-14T09:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: RingBufferUint8 component together with Serial_LDD, and simply use the high level component called AsynchroSerial</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/RingBufferUint8-component-together-with-Serial-LDD-and-simply/m-p/270875#M1755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi OM,&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;"(I wanted to reply there, but I don't know how)"&lt;/P&gt;&lt;P&gt;at the bottom of each article there is a box where you can enter questions or comments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About LDD or non-LDD, you might have a look at &lt;A href="http://mcuoneclipse.com/2012/07/26/there-is-a-time-and-date-for-both-worlds/" title="http://mcuoneclipse.com/2012/07/26/there-is-a-time-and-date-for-both-worlds/"&gt;There is a Time and Date for both Worlds | MCU on Eclipse&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In a nutshell:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;non-LDD is what has been used before the advent of Kinetis/ColdFire+. So if you want to use a simpler interface of want to keep your applications compatible between different architectures (S08, S12, ColdFire,Kinetis, ...), then use the non-LDD version. Because my software needs to run on many different platforms, and I prefer the 'simpler is better' approach, I prefer to use the non-LDD drivers whenever possible.&lt;/LI&gt;&lt;LI&gt;LDD drivers are more designed to work with an environment where you need to pass back and forward device handles (e.g. with MQX). As such, they have an additional device handle in the interface which you need to care of. The good thing with this is that it is very generic. The downside is an additional parameter which mostly is not used in an non-RTOS environment. On one hand the argument is that the device handle makes things better with an RTOS, on the other hand the non-LDD drivers can be easily used with an RTOS (or any RTOS) too. You just need to have the proper protection in place for drivers if they are used by multiple tasks.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The good thing is that with MCU10.3 many of the LDD drivers have now non-LDD wrappers for it: that does not remove the (internal) overhead, but makes it at least usable beyond Kinetis/ColdFire+. The other thing is (as you noted) the LDD versions might not come with things like buffering (the non-LDD has Rx/Tx buffers, as you noticed). I invented the RingBuffer component at the time when there was just the LDD version for Kinetis, and such a ring buffer was required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recommend that you use the non-LDD (high level) components for above reasons. And then you do not need that ring buffer at least for AsynchroSerial, as it has such a ring buffer implemented in the driver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the end: different API's have their pros and cons. Choose what fits you best (or create your own one ;-))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Jul 2013 09:52:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/RingBufferUint8-component-together-with-Serial-LDD-and-simply/m-p/270875#M1755</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2013-07-14T09:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: RingBufferUint8 component together with Serial_LDD, and simply use the high level component called AsynchroSerial</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/RingBufferUint8-component-together-with-Serial-LDD-and-simply/m-p/270876#M1756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;The project with the hi-level AsynchroSerial is working with AS2_SendBlock and AS2_RecvBlock (is this the right way to work with the driver ???) but I can't find why the printf isn't printing to the UART.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I included stdio.h, I saw that printf goes to printftiny (inside) but nothing on the terminal :-(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help, please :-(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;P&gt;&amp;nbsp; OM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Jul 2013 17:49:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/RingBufferUint8-component-together-with-Serial-LDD-and-simply/m-p/270876#M1756</guid>
      <dc:creator>om</dc:creator>
      <dc:date>2013-07-14T17:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: RingBufferUint8 component together with Serial_LDD, and simply use the high level component called AsynchroSerial</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/RingBufferUint8-component-together-with-Serial-LDD-and-simply/m-p/270877#M1757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi OM,&lt;/P&gt;&lt;P&gt;Well, printf() is not something to get start with, as printf() is probably one of the most complicated things for embedded :-( .&lt;/P&gt;&lt;P&gt;Yes, SendBlock() and ReceiveBlock() is what you can use.&lt;/P&gt;&lt;P&gt;Have a look here how printf() is working: &lt;A href="http://mcuoneclipse.com/2013/02/07/tutorial-printf-with-and-without-processor-expert/" title="http://mcuoneclipse.com/2013/02/07/tutorial-printf-with-and-without-processor-expert/"&gt;Tutorial: Printf() with (and without) Processor Expert | MCU on Eclipse&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you can avoid using printf(), then you will be in a better shape.&lt;/P&gt;&lt;P&gt;If you need a command line interface or to print out things on a terminal, you might be better served with something like the 'Shell' component I use. That shell is using the AsynchroSerial component too.&lt;/P&gt;&lt;P&gt;An example project is here: &lt;A href="https://github.com/ErichStyger/mcuoneclipse/tree/master/Examples/FRDM-KL25Z/Freedom_Shell" title="https://github.com/ErichStyger/mcuoneclipse/tree/master/Examples/FRDM-KL25Z/Freedom_Shell"&gt;mcuoneclipse/Examples/FRDM-KL25Z/Freedom_Shell at master · GitHub&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Jul 2013 18:30:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/RingBufferUint8-component-together-with-Serial-LDD-and-simply/m-p/270877#M1757</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2013-07-14T18:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: RingBufferUint8 component together with Serial_LDD, and simply use the high level component called AsynchroSerial</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/RingBufferUint8-component-together-with-Serial-LDD-and-simply/m-p/270878#M1758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erich&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the fast response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just need two uarts, in the final project, but my boss asked me to show to him CLI (Command line interface) till tomorrow morning and I sit here without success :-(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The CLI is just for testing stuff.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I saw already example from freescale called I2C (with console interface), and it run here OK&lt;/P&gt;&lt;P&gt;do you recommend to use shell instead ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just thought to redirect the printouts to one of the COM PORTS, so the driver will stay &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;AsynchroSerial (cause I don't know how to disable it, without completely delete it) and add printing functionality.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;ReceiveBlock()&lt;/SPAN&gt; I need to sit in a loop and read the commands ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Jul 2013 18:46:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/RingBufferUint8-component-together-with-Serial-LDD-and-simply/m-p/270878#M1758</guid>
      <dc:creator>om</dc:creator>
      <dc:date>2013-07-14T18:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: RingBufferUint8 component together with Serial_LDD, and simply use the high level component called AsynchroSerial</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/RingBufferUint8-component-together-with-Serial-LDD-and-simply/m-p/270879#M1759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I woould just add that &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;on Kinetis MCUs there is recommended to use the LDD component which are newer generation of component that should replace the legacy "high level components" like AsynchroSerial.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: inherit; font-size: 10pt; line-height: 1.5em; font-style: inherit;"&gt;If you'd like to use buffering, the Serial_LDD allows to use your own string buffers. &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Here is a "from scratch" example that processes input by blocks of 10 characters, with interrupts enabled (otherwise you would have to call AS1_Main method of the component in your loop) :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-family: inherit;"&gt;Content in ProcessorExpert.c:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;bool DataReceivedFlg = FALSE;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;char OutData[] = "Hello!";&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;char SerialBuf[10];&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;char Received[10];&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;LDD_TError Error;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;void main(void)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;{&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; . . .&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; /* Start reception of a given number of characters (in this case 10),&amp;nbsp; passing pointer to the buffer */&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; Error = AS1_ReceiveBlock(AS1_DeviceData, &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;SerialBuf&lt;/SPAN&gt;, 10);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; for(;;) {&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (DataReceivedFlg) {&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Do something with the data in Received string here. It only must take shorther than receiving other 10 characters.... */&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* clear flag */&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DataReceivedFlg = FALSE;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* you can for example reply something back */&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Error = AS1_SendBlock(&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;AS1_DeviceData&lt;/STRONG&gt;&lt;/SPAN&gt;, OutData, sizeof(OutData));&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; }&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;Content of Events.c:&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;extern volatile bool DataReceivedFlg;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;void AS1_OnBlockReceived(LDD_TUserData *UserDataPtr)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;{&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; /* just move received data for main loop processing */&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp; memcpy(Received, SerialBuf, sizeof(Received));&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; /* Set DataReceivedFlg flag */&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; DataReceivedFlg = TRUE; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; /* Start reception again */&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; Error = AS1_ReceiveBlock(AS1_DeviceData, &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;SerialBuf&lt;/SPAN&gt;, 10);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;You can see some&amp;nbsp; simple examples on the Typical usage page from from the Serial_LDD component help (you can invoke it using "Help on component" pop-up menu command):&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;To use the printf, there is necessary to add ConsoleIO component to the project which automaticalle (which uses an inherited Serial_LDD) as erich described in his nice tutorial ( &lt;A class="jive-link-external-small" href="http://mcuoneclipse.com/2013/02/07/tutorial-printf-with-and-without-processor-expert/" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #6a737b;"&gt;Tutorial: Printf() with (and without) Processor Expert | MCU on Eclipse ).&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;best regards&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Petr Hradsky&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Processor Expert Support Team&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2013 07:54:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/RingBufferUint8-component-together-with-Serial-LDD-and-simply/m-p/270879#M1759</guid>
      <dc:creator>Petr_H</dc:creator>
      <dc:date>2013-07-26T07:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: RingBufferUint8 component together with Serial_LDD, and simply use the high level component called AsynchroSerial</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/RingBufferUint8-component-together-with-Serial-LDD-and-simply/m-p/270880#M1760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Petr,&lt;/P&gt;&lt;P&gt;I have question regarding to the serial_LDD example in "Help on component: pop -up menu". I tried this example with MQX-lite and I got some error due to Link Failed between "extern volatile bool DataReceiveFlg;" in the event.c and "volatile bool DataReceiveFlg = FALSE;" in the mqx_tasks.c. when I removed the "extern", the error solved, but I am not sure both DataReceiveFlg are linked or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any solution for this error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bondan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="serial.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/42340i1F3E30A868EC8C9B/image-size/large?v=v2&amp;amp;px=999" role="button" title="serial.jpg" alt="serial.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 16:39:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/RingBufferUint8-component-together-with-Serial-LDD-and-simply/m-p/270880#M1760</guid>
      <dc:creator>bondansuwandi</dc:creator>
      <dc:date>2013-11-13T16:39:35Z</dc:date>
    </item>
  </channel>
</rss>

