<?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: BUG MQX UART INTERRUPT in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/BUG-MQX-UART-INTERRUPT/m-p/152281#M505</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The code is correct, there is no bug. The parameter passed to the open is a combination of flags resulting to 32-bit number, which is for sure not pointer. The function takes indeed pointer param, but it is for API, compatibility with installing a driver.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Oct 2010 15:18:53 GMT</pubDate>
    <dc:creator>JuroV</dc:creator>
    <dc:date>2010-10-01T15:18:53Z</dc:date>
    <item>
      <title>BUG MQX UART INTERRUPT</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/BUG-MQX-UART-INTERRUPT/m-p/152280#M504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I Think that a found a bug in the file serl_int.c in:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;C:\Program Files\Freescale\Freescale MQX 3.3\mqx\source\io\serial\int&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in line 226/227 is write:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;226: int_io_dev_ptr-&amp;gt;FLAGS = (_mqx_uint)flags;&lt;/P&gt;&lt;P&gt;227: fd_ptr-&amp;gt;FLAGS &amp;nbsp; &amp;nbsp; &amp;nbsp;= (_mqx_uint)flags;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, it's incorrect because "flags" its a pointer to char and not a unsigned int. The correct is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;226: int_io_dev_ptr-&amp;gt;FLAGS = (_mqx_uint)(*flags);&lt;/P&gt;&lt;P&gt;227: fd_ptr-&amp;gt;FLAGS &amp;nbsp; &amp;nbsp; &amp;nbsp;= (_mqx_uint)(*flags);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;The original code may be cause an intermittent behavior of your firmware, because the value of&amp;nbsp;fd_ptr-&amp;gt;FLAGS will be a address of SRAM and may change with each compilation.&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;Thanks&lt;/DIV&gt;&lt;DIV&gt;Thiago Esteves&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Oct 2010 00:24:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/BUG-MQX-UART-INTERRUPT/m-p/152280#M504</guid>
      <dc:creator>ThiagoE</dc:creator>
      <dc:date>2010-10-01T00:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: BUG MQX UART INTERRUPT</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/BUG-MQX-UART-INTERRUPT/m-p/152281#M505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The code is correct, there is no bug. The parameter passed to the open is a combination of flags resulting to 32-bit number, which is for sure not pointer. The function takes indeed pointer param, but it is for API, compatibility with installing a driver.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Oct 2010 15:18:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/BUG-MQX-UART-INTERRUPT/m-p/152281#M505</guid>
      <dc:creator>JuroV</dc:creator>
      <dc:date>2010-10-01T15:18:53Z</dc:date>
    </item>
  </channel>
</rss>

