<?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: as1_RecvBlock not receiving block</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/as1-RecvBlock-not-receiving-block/m-p/230999#M1192</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;The problem is that the RecvBlock method of the AsynchroSerial component is not intended to be called within OnRxChar event, which is called after reception of every character.&lt;/P&gt;&lt;P&gt;If you'd like to use RecvBlock method, use it from the main routine or from the OnFullRxbuf event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example of the OnFullRxBuf event code from the 'Typical usage' page of the component help. You can access this page using the pop-up menu command 'Help on component' :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; void AS1_OnFullRxBuf(void)&lt;/P&gt;&lt;P&gt;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; word Received;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; byte err;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; err = AS1_RecvBlock((byte*)&amp;amp;message, sizeof(message), &amp;amp;Received);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Petr Hradsky&lt;/P&gt;&lt;P&gt;Processor Expert Support Team&lt;/P&gt;&lt;P&gt;&lt;/P&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>Thu, 31 Jan 2013 15:18:48 GMT</pubDate>
    <dc:creator>Petr_H</dc:creator>
    <dc:date>2013-01-31T15:18:48Z</dc:date>
    <item>
      <title>as1_RecvBlock not receiving block</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/as1-RecvBlock-not-receiving-block/m-p/230998#M1191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;oks&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have to MC9S08DZ128MLL connected by RS232 interface, but one of them has an LCd display attached where all messages send by rs232 are displayed&lt;/P&gt;&lt;P&gt;both have the exact same code&lt;/P&gt;&lt;P&gt;i'm using processor expert libraries&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i called SendChar at the main and it works&lt;/P&gt;&lt;P&gt;i called RecvChar from the OnRxChar interrupt and works&lt;/P&gt;&lt;P&gt;i called SendBlock at the main and it works&lt;/P&gt;&lt;P&gt;but i called RecvBlock from the OnRxChar interrupt and doesnt work&lt;/P&gt;&lt;P&gt;i assume it doesn't work because the interrupt is just for one char and i'm getting a lot of them&lt;/P&gt;&lt;P&gt;but if i cant use OnRxChar, then which other interrupt should i use?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(or maybe i'm messing up pointers?)&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i'll send you my code&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-339075"&gt;myINT-code.txt.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-339075"&gt;myLCD-code.txt.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-339075"&gt;PE-code.txt.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Jan 2013 17:03:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/as1-RecvBlock-not-receiving-block/m-p/230998#M1191</guid>
      <dc:creator>GMVS</dc:creator>
      <dc:date>2013-01-19T17:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: as1_RecvBlock not receiving block</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/as1-RecvBlock-not-receiving-block/m-p/230999#M1192</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;The problem is that the RecvBlock method of the AsynchroSerial component is not intended to be called within OnRxChar event, which is called after reception of every character.&lt;/P&gt;&lt;P&gt;If you'd like to use RecvBlock method, use it from the main routine or from the OnFullRxbuf event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example of the OnFullRxBuf event code from the 'Typical usage' page of the component help. You can access this page using the pop-up menu command 'Help on component' :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; void AS1_OnFullRxBuf(void)&lt;/P&gt;&lt;P&gt;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; word Received;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; byte err;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; err = AS1_RecvBlock((byte*)&amp;amp;message, sizeof(message), &amp;amp;Received);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Petr Hradsky&lt;/P&gt;&lt;P&gt;Processor Expert Support Team&lt;/P&gt;&lt;P&gt;&lt;/P&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>Thu, 31 Jan 2013 15:18:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/as1-RecvBlock-not-receiving-block/m-p/230999#M1192</guid>
      <dc:creator>Petr_H</dc:creator>
      <dc:date>2013-01-31T15:18:48Z</dc:date>
    </item>
  </channel>
</rss>

