<?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 Processor Expert I2C_LDD missing flexibility capabilities in Processor Expert Software</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/Processor-Expert-I2C-LDD-missing-flexibility-capabilities/m-p/318542#M2415</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;We are using Processor Expert with IAR and Kinetis K very successfully until now with all LDD drivers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now we need to connect a special I2C device, for which the regular PE driver behavior is not good and we find ourselves in a need to rewrite the PE generated code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The missing capabilities are:&lt;/P&gt;&lt;P&gt;1. In MasterReceiveBlock() and MasterReceiveBlock() we need to send only the address without the data.&lt;/P&gt;&lt;P&gt;Currently there is a check there "if (Size == 0x00U) return ERR_OK;", so if we call this without buffer then also the address is not getting sent.&lt;/P&gt;&lt;P&gt;As a way around it, we just want to disable this check, and continue sending the address also when buffer length is zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. We would like to make an I2C read without sending the address beforehand, and MasterReceiveBlock() always starts by sending the address.&lt;/P&gt;&lt;P&gt;As a way around it, we think of making a different version of the same function in our custom file, and removing the address sending code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What are the preferred solutions for our situation?&lt;/P&gt;&lt;P&gt;Maybe the PE team can improve the I2C_LDD driver to include our requested functionality?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Pavel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Jul 2014 14:14:50 GMT</pubDate>
    <dc:creator>pavelst</dc:creator>
    <dc:date>2014-07-10T14:14:50Z</dc:date>
    <item>
      <title>Processor Expert I2C_LDD missing flexibility capabilities</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Processor-Expert-I2C-LDD-missing-flexibility-capabilities/m-p/318542#M2415</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;We are using Processor Expert with IAR and Kinetis K very successfully until now with all LDD drivers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now we need to connect a special I2C device, for which the regular PE driver behavior is not good and we find ourselves in a need to rewrite the PE generated code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The missing capabilities are:&lt;/P&gt;&lt;P&gt;1. In MasterReceiveBlock() and MasterReceiveBlock() we need to send only the address without the data.&lt;/P&gt;&lt;P&gt;Currently there is a check there "if (Size == 0x00U) return ERR_OK;", so if we call this without buffer then also the address is not getting sent.&lt;/P&gt;&lt;P&gt;As a way around it, we just want to disable this check, and continue sending the address also when buffer length is zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. We would like to make an I2C read without sending the address beforehand, and MasterReceiveBlock() always starts by sending the address.&lt;/P&gt;&lt;P&gt;As a way around it, we think of making a different version of the same function in our custom file, and removing the address sending code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What are the preferred solutions for our situation?&lt;/P&gt;&lt;P&gt;Maybe the PE team can improve the I2C_LDD driver to include our requested functionality?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Pavel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2014 14:14:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Processor-Expert-I2C-LDD-missing-flexibility-capabilities/m-p/318542#M2415</guid>
      <dc:creator>pavelst</dc:creator>
      <dc:date>2014-07-10T14:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Processor Expert I2C_LDD missing flexibility capabilities</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Processor-Expert-I2C-LDD-missing-flexibility-capabilities/m-p/318543#M2416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Pavel:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a workaround, you may modify code in the I2C functions as necessary, and disable code generation *&lt;STRONG&gt;only*&lt;/STRONG&gt; for the I2C_LDD component. Check the next screenshot for reference:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Code_generation.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/45098iA85AFE8E59CB66F8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Code_generation.png" alt="Code_generation.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The disadvantage is that if you want to modify the component settings, then you have to enable Code Generation, and your code changes will be lost.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards!,&lt;BR /&gt;Jorge Gonzalez&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2014 04:07:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Processor-Expert-I2C-LDD-missing-flexibility-capabilities/m-p/318543#M2416</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2014-07-18T04:07:19Z</dc:date>
    </item>
  </channel>
</rss>

