<?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>Embedded Software and Tools ClinicのトピックI2C Bootloader Test Application in Python</title>
    <link>https://community.nxp.com/t5/Embedded-Software-and-Tools/I2C-Bootloader-Test-Application-in-Python/m-p/1588388#M337</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm testing i2c bootloader test application in python, I've test successfully in with uart communication.&lt;/P&gt;&lt;P&gt;Now, I need test with i2c, where I see weird python if compare issue.&lt;/P&gt;&lt;P&gt;def sendUnlockCmd(self,size,data):&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;if resp = = self.BL_RESP_OK:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;print("match")&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;else&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;print("no match")&lt;/P&gt;&lt;P&gt;I receive i2c message as response in the resp which prints P(80,0x50) on success and self.BLRESP_OK = 80(0x50).&lt;/P&gt;&lt;P&gt;I received correct value but always braching to else condition. it happens only i2c smbus. Can someone explain why is it fails?&lt;/P&gt;</description>
    <pubDate>Thu, 26 Jan 2023 15:43:31 GMT</pubDate>
    <dc:creator>tarun414</dc:creator>
    <dc:date>2023-01-26T15:43:31Z</dc:date>
    <item>
      <title>I2C Bootloader Test Application in Python</title>
      <link>https://community.nxp.com/t5/Embedded-Software-and-Tools/I2C-Bootloader-Test-Application-in-Python/m-p/1588388#M337</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm testing i2c bootloader test application in python, I've test successfully in with uart communication.&lt;/P&gt;&lt;P&gt;Now, I need test with i2c, where I see weird python if compare issue.&lt;/P&gt;&lt;P&gt;def sendUnlockCmd(self,size,data):&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;if resp = = self.BL_RESP_OK:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;print("match")&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;else&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;print("no match")&lt;/P&gt;&lt;P&gt;I receive i2c message as response in the resp which prints P(80,0x50) on success and self.BLRESP_OK = 80(0x50).&lt;/P&gt;&lt;P&gt;I received correct value but always braching to else condition. it happens only i2c smbus. Can someone explain why is it fails?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 15:43:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Embedded-Software-and-Tools/I2C-Bootloader-Test-Application-in-Python/m-p/1588388#M337</guid>
      <dc:creator>tarun414</dc:creator>
      <dc:date>2023-01-26T15:43:31Z</dc:date>
    </item>
  </channel>
</rss>

