<?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 in Processor Expert generated code for s12zvla128 I2C driver in Processor Expert Software</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/Bug-in-Processor-Expert-generated-code-for-s12zvla128-I2C-driver/m-p/1250942#M4641</link>
    <description>&lt;P&gt;Thanks for the sharing.&lt;/P&gt;</description>
    <pubDate>Wed, 24 Mar 2021 07:16:22 GMT</pubDate>
    <dc:creator>ZhangJennie</dc:creator>
    <dc:date>2021-03-24T07:16:22Z</dc:date>
    <item>
      <title>Bug in Processor Expert generated code for s12zvla128 I2C driver</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Bug-in-Processor-Expert-generated-code-for-s12zvla128-I2C-driver/m-p/1250682#M4640</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Microcontroller used for interfacing with sensor: &lt;STRONG&gt;s12zvla128&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Driver Configured using Processor Expert :&amp;nbsp; &lt;STRONG&gt;I2C&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;IDE :&amp;nbsp;&lt;EM&gt;using the&lt;/EM&gt;&lt;STRONG&gt;&lt;EM&gt; CodeWarrior &lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt;IDE&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial black,avant garde"&gt;&lt;STRONG&gt;Issue :&lt;/STRONG&gt; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I2C read operation was incomplete with the generated driver files using the processor expert configuration.&lt;/P&gt;&lt;P&gt;The expected data was not read from the sensor using the i2c_read() operation.&lt;/P&gt;&lt;P&gt;After debugging, it is understood that the below line of code was not getting executed&amp;nbsp;, thus the read operation was incomplete.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;(void)IIC0IBDR; /* Dummy read character */&amp;nbsp;&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial black,avant garde"&gt;&lt;STRONG&gt;&lt;EM&gt;Solution :&amp;nbsp;&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Replace&amp;nbsp;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;(void)IIC0IBDR; /* Dummy read character */&amp;nbsp;&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;with&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;dummy = IIC0IBDR;&amp;nbsp;&amp;nbsp;/* Dummy read character */&amp;nbsp; &amp;nbsp; &lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt;( dummy is an unsigned char variable)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With this modification in the generated driver code , I2c_Read() operation was perfect and could read data from sensor.&lt;/P&gt;&lt;P&gt;I am posting this knowledge, if in case anyone face this issue any time with &lt;A href="mailto:I@C" target="_blank"&gt;I2C&amp;nbsp;&lt;/A&gt;PE configuration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you !!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 20:11:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Bug-in-Processor-Expert-generated-code-for-s12zvla128-I2C-driver/m-p/1250682#M4640</guid>
      <dc:creator>molgyjoseph</dc:creator>
      <dc:date>2021-03-23T20:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in Processor Expert generated code for s12zvla128 I2C driver</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Bug-in-Processor-Expert-generated-code-for-s12zvla128-I2C-driver/m-p/1250942#M4641</link>
      <description>&lt;P&gt;Thanks for the sharing.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 07:16:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Bug-in-Processor-Expert-generated-code-for-s12zvla128-I2C-driver/m-p/1250942#M4641</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2021-03-24T07:16:22Z</dc:date>
    </item>
  </channel>
</rss>

