<?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: Why is OnMasterBlockSent not called? in Processor Expert Software</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/Why-is-OnMasterBlockSent-not-called/m-p/274878#M1844</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am also having the same problem on a custom board with KL25. I am able to send slave address+1 byte and after that the I2C interrupt does not fire. The interrupt never goes above sending more than 1 byte. OnMasterBlockSent is never called. There are no errors generated from OnError() function i verified that the error section on the interrupt is not reached confirming the same.&amp;nbsp; what i have observed is&lt;/P&gt;&lt;P&gt;1. The slave address is loaded to I2C Data register.&lt;/P&gt;&lt;P&gt;2. The above step succesfully generates an interrupt&lt;/P&gt;&lt;P&gt;3. The ISR loads the 2nd byte and then no further interrupt is generated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any clue?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 20 Oct 2013 00:44:45 GMT</pubDate>
    <dc:creator>VinGanZ</dc:creator>
    <dc:date>2013-10-20T00:44:45Z</dc:date>
    <item>
      <title>Why is OnMasterBlockSent not called?</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Why-is-OnMasterBlockSent-not-called/m-p/274875#M1841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Codewarrior 10.4&lt;/P&gt;&lt;P&gt;K20 MCU&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am setting up the I2C port using PE. Master Mode. I call I2C1_MasterBlockSend() to send 4 bytes with SendStop = 1. It returns ERR_OK. I have a breakpoint in the OnMasterBlockSent event handler. Never gets there. The event code is being generated, and the Event Mask has the event enabled. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas of what other factor is preventing the event function to be called?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 02:45:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Why-is-OnMasterBlockSent-not-called/m-p/274875#M1841</guid>
      <dc:creator>DustyStew</dc:creator>
      <dc:date>2013-06-05T02:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: Why is OnMasterBlockSent not called?</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Why-is-OnMasterBlockSent-not-called/m-p/274876#M1842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OnMasterBlockSent() event is called in case, when all send data by MasterBlockSend() method were correctly transmitted to a slave device (Slave device send acknowledge on address/data byte) =&amp;gt; it is runtime error type. Runtime type errors are possible to detect by OnError() event &amp;amp; GetError() method. GetError() method returns error code mask.&lt;/P&gt;&lt;P&gt;I think that your problem would be in "acknowledge" from a slave device.&lt;/P&gt;&lt;P&gt;Possible issues: &lt;/P&gt;&lt;P&gt;- slave device is not available on I2C BUS.&lt;/P&gt;&lt;P&gt;- master sent wrong slave address value.&lt;/P&gt;&lt;P&gt;- master bit clock is too fast.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Jiri Rezler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 15:34:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Why-is-OnMasterBlockSent-not-called/m-p/274876#M1842</guid>
      <dc:creator>jiri_rezler</dc:creator>
      <dc:date>2013-06-05T15:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Why is OnMasterBlockSent not called?</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Why-is-OnMasterBlockSent-not-called/m-p/274877#M1843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Jiri. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found a solution. The problem went away when I turned off auto-initialization in PE. While I was calling I2C1_Init() in my code, nevertheless, I gather PE was generating code to do the same. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW another small point, regarding documentation: it is not clear whether the slave address includes the R/W bit. It worked when I set the address for no R/W bit (eg 0x0A not 0x14). The documentation does not make this clear. Ultimately that problem is due to the fact the designers of I2C chose to use a naming convention that included the R/W bit in the "address", breaking with tradition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 17:16:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Why-is-OnMasterBlockSent-not-called/m-p/274877#M1843</guid>
      <dc:creator>DustyStew</dc:creator>
      <dc:date>2013-06-05T17:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: Why is OnMasterBlockSent not called?</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Why-is-OnMasterBlockSent-not-called/m-p/274878#M1844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am also having the same problem on a custom board with KL25. I am able to send slave address+1 byte and after that the I2C interrupt does not fire. The interrupt never goes above sending more than 1 byte. OnMasterBlockSent is never called. There are no errors generated from OnError() function i verified that the error section on the interrupt is not reached confirming the same.&amp;nbsp; what i have observed is&lt;/P&gt;&lt;P&gt;1. The slave address is loaded to I2C Data register.&lt;/P&gt;&lt;P&gt;2. The above step succesfully generates an interrupt&lt;/P&gt;&lt;P&gt;3. The ISR loads the 2nd byte and then no further interrupt is generated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any clue?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Oct 2013 00:44:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Why-is-OnMasterBlockSent-not-called/m-p/274878#M1844</guid>
      <dc:creator>VinGanZ</dc:creator>
      <dc:date>2013-10-20T00:44:45Z</dc:date>
    </item>
  </channel>
</rss>

