<?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: Issue with using the LPI2C_DRV_MasterSendDataBlocking  in S32K</title>
    <link>https://community.nxp.com/t5/S32K/Issue-with-using-the-LPI2C-DRV-MasterSendDataBlocking/m-p/906038#M4617</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please call&amp;nbsp;LPI2C_DRV_MasterGetTransferStatus after the blocking transfer and let me know what is the status returned by this function. Based on your logic analyzer capture I suppose the timeout is too small and timeout event occurs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you tried to increase the timeout?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Razvan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Apr 2019 14:24:50 GMT</pubDate>
    <dc:creator>razva_tilimpea</dc:creator>
    <dc:date>2019-04-23T14:24:50Z</dc:date>
    <item>
      <title>Issue with using the LPI2C_DRV_MasterSendDataBlocking</title>
      <link>https://community.nxp.com/t5/S32K/Issue-with-using-the-LPI2C-DRV-MasterSendDataBlocking/m-p/906037#M4616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;Currently i am trying to Control&amp;nbsp; a PMIC using the S32K148 MCU via I2C , the Communication works fine when using the normal&amp;nbsp;LPI2C_DRV_MasterSendData API , but when I use the transmit with Blocking API&amp;nbsp;LPI2C_DRV_MasterSendDataBlocking&amp;nbsp; , the controller goes into an never ending loop and there is no communication.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LPI2C_DRV_MasterSendDataBlocking(INST_LPI2C1,buffer,1,false,1);&lt;BR /&gt; LPI2C_DRV_MasterReceiveDataBlocking(INST_LPI2C1,buffer,TRANSFER_SIZE,true,1);&lt;/P&gt;&lt;P&gt;I understand that the providing the blocking value as 1 would provide a window period of 1ms for the transmission ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there any time constraint on the slave for the acknowledment too.&lt;/P&gt;&lt;P&gt;If not then what could be the reason for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Transmit_Rx.BMP"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80668i5999DB10A7945F18/image-size/large?v=v2&amp;amp;px=999" role="button" title="Transmit_Rx.BMP" alt="Transmit_Rx.BMP" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Transmit_&amp;amp;_Rx_with_Blocking_1.BMP"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80669i0A7BBA27D5C26E9C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Transmit_&amp;amp;_Rx_with_Blocking_1.BMP" alt="Transmit_&amp;amp;_Rx_with_Blocking_1.BMP" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2019 13:17:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Issue-with-using-the-LPI2C-DRV-MasterSendDataBlocking/m-p/906037#M4616</guid>
      <dc:creator>satish_k_singh</dc:creator>
      <dc:date>2019-04-23T13:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with using the LPI2C_DRV_MasterSendDataBlocking</title>
      <link>https://community.nxp.com/t5/S32K/Issue-with-using-the-LPI2C-DRV-MasterSendDataBlocking/m-p/906038#M4617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please call&amp;nbsp;LPI2C_DRV_MasterGetTransferStatus after the blocking transfer and let me know what is the status returned by this function. Based on your logic analyzer capture I suppose the timeout is too small and timeout event occurs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you tried to increase the timeout?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Razvan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2019 14:24:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Issue-with-using-the-LPI2C-DRV-MasterSendDataBlocking/m-p/906038#M4617</guid>
      <dc:creator>razva_tilimpea</dc:creator>
      <dc:date>2019-04-23T14:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with using the LPI2C_DRV_MasterSendDataBlocking</title>
      <link>https://community.nxp.com/t5/S32K/Issue-with-using-the-LPI2C-DRV-MasterSendDataBlocking/m-p/906039#M4618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;yeah we have the timeout error return value is 3 ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;yeah i increase the timeout and tried with the max 0xffffffff value, but i still have the same issue.&lt;/P&gt;&lt;P&gt;could you please let know how can we decide upon the timeout value that needs tobe set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks and best regards!!!&lt;/P&gt;&lt;P&gt;Satish Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2019 18:22:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Issue-with-using-the-LPI2C-DRV-MasterSendDataBlocking/m-p/906039#M4618</guid>
      <dc:creator>satish_k_singh</dc:creator>
      <dc:date>2019-04-23T18:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with using the LPI2C_DRV_MasterSendDataBlocking</title>
      <link>https://community.nxp.com/t5/S32K/Issue-with-using-the-LPI2C-DRV-MasterSendDataBlocking/m-p/906040#M4619</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;It seems that the SCL remains low at the end for both cases. The only difference is that you are sending just one byte&lt;BR /&gt;calling LPI2C_DRV_MasterSendDataBlocking(INST_LPI2C1,buffer,&lt;STRONG&gt;1&lt;/STRONG&gt;,false,1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SCL might be held low by the slave. To check this, you could try disconnect the slave and then look at the SCL signal(if the signal is still low then the problems are caused by the master).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you observe any difference if you use generate stop at the end instead of repeated start: LPI2C_DRV_MasterSendDataBlocking(INST_LPI2C1,buffer,TRANSFER_SIZE,&lt;STRONG&gt;true&lt;/STRONG&gt;,0xFFFF)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards, &lt;BR /&gt;Alina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2019 12:06:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Issue-with-using-the-LPI2C-DRV-MasterSendDataBlocking/m-p/906040#M4619</guid>
      <dc:creator>AlinaB</dc:creator>
      <dc:date>2019-04-24T12:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with using the LPI2C_DRV_MasterSendDataBlocking</title>
      <link>https://community.nxp.com/t5/S32K/Issue-with-using-the-LPI2C-DRV-MasterSendDataBlocking/m-p/906041#M4620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;There is no change with the usage of generate stop , I had one observation ,&amp;nbsp; the clock is released (HIGH) once I suspend or stop the debug .&lt;/P&gt;&lt;P&gt;When the program is suspended the PC points to the &lt;STRONG&gt;Default ISR&lt;/STRONG&gt; as can be seen in the snapshot.&lt;/P&gt;&lt;P&gt;Also while configuring the I2C I had selected the transfer type as Interrupts. Am I missing something.&lt;/P&gt;&lt;P&gt;Do I need to have some kind of interrupt handler for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Clock_Released.BMP"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80919iAA47724AF789BC20/image-size/large?v=v2&amp;amp;px=999" role="button" title="Clock_Released.BMP" alt="Clock_Released.BMP" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Default_Interrupt.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80917i787CEEA1347F7AF0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Default_Interrupt.png" alt="Default_Interrupt.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Transfer_Type.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80920i71BD744B7EA4A973/image-size/large?v=v2&amp;amp;px=999" role="button" title="Transfer_Type.png" alt="Transfer_Type.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2019 09:21:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Issue-with-using-the-LPI2C-DRV-MasterSendDataBlocking/m-p/906041#M4620</guid>
      <dc:creator>satish_k_singh</dc:creator>
      <dc:date>2019-04-25T09:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with using the LPI2C_DRV_MasterSendDataBlocking</title>
      <link>https://community.nxp.com/t5/S32K/Issue-with-using-the-LPI2C-DRV-MasterSendDataBlocking/m-p/906042#M4621</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;Have you tried using the lpi2c_master_s32k148 example?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know what might cause entering the DefaultISR, maybe a bad configuration of SCL or SDA pins. Are you using the internal pull-ups? If yes, I recommend to disable the internal pull-ups and use external resistors (~4.7KOhm each, one for SCL and one for SDA).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I observed that master callback != NULL. Could show me how the master callback handle the events or provide me the&lt;BR /&gt;project that you are using for master side?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards, &lt;BR /&gt;Alina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2019 12:55:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Issue-with-using-the-LPI2C-DRV-MasterSendDataBlocking/m-p/906042#M4621</guid>
      <dc:creator>AlinaB</dc:creator>
      <dc:date>2019-04-25T12:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with using the LPI2C_DRV_MasterSendDataBlocking</title>
      <link>https://community.nxp.com/t5/S32K/Issue-with-using-the-LPI2C-DRV-MasterSendDataBlocking/m-p/906043#M4622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;We currently make use of the external pull up resistor , the callback function&amp;nbsp;extern void &lt;STRONG&gt;lpi2c1_MasterCallback1&lt;/STRONG&gt;(uint8_t instance,lpi2c_master_event_t masterEvent,void *userData); is defined as dummy NULL function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards!!!&lt;/P&gt;&lt;P&gt;Satish Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2019 14:43:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Issue-with-using-the-LPI2C-DRV-MasterSendDataBlocking/m-p/906043#M4622</guid>
      <dc:creator>satish_k_singh</dc:creator>
      <dc:date>2019-04-25T14:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with using the LPI2C_DRV_MasterSendDataBlocking</title>
      <link>https://community.nxp.com/t5/S32K/Issue-with-using-the-LPI2C-DRV-MasterSendDataBlocking/m-p/906044#M4623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Also when I suspend the debug , the it points to the default ISR and the VECTACTIVE byte in the ICSR shows the value active exception number as 3.&lt;/P&gt;&lt;P&gt;dose this mean I need to configure any interrupt handler.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80939iE828A36014524106/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2019 15:00:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Issue-with-using-the-LPI2C-DRV-MasterSendDataBlocking/m-p/906044#M4623</guid>
      <dc:creator>satish_k_singh</dc:creator>
      <dc:date>2019-04-25T15:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with using the LPI2C_DRV_MasterSendDataBlocking</title>
      <link>https://community.nxp.com/t5/S32K/Issue-with-using-the-LPI2C-DRV-MasterSendDataBlocking/m-p/906045#M4624</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;Could you put a breakpoint in LPI2C_DRV_MasterIRQHandler function and see if it reach it? Then step by step to see were exactly programs enters DefaultISR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards, &lt;BR /&gt;Alina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2019 15:27:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Issue-with-using-the-LPI2C-DRV-MasterSendDataBlocking/m-p/906045#M4624</guid>
      <dc:creator>AlinaB</dc:creator>
      <dc:date>2019-04-25T15:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with using the LPI2C_DRV_MasterSendDataBlocking</title>
      <link>https://community.nxp.com/t5/S32K/Issue-with-using-the-LPI2C-DRV-MasterSendDataBlocking/m-p/906046#M4625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;yeah , it reaches the&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;LPI2C_DRV_MasterIRQHandler functionj , the program reaches the&amp;nbsp;&amp;nbsp;osifError = OSIF_SemaWait(&amp;amp;(master-&amp;gt;idleSemaphore), timeout);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/72872i72D96A024FCC00F3/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I understand that it is a problem with the release of the semaphore , have integrated the free Rtos in the current project , so could you please let know what are the main changes to be taken care when using the free RTOS.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Regards!!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Satish&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2019 09:05:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Issue-with-using-the-LPI2C-DRV-MasterSendDataBlocking/m-p/906046#M4625</guid>
      <dc:creator>satish_k_singh</dc:creator>
      <dc:date>2019-04-30T09:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with using the LPI2C_DRV_MasterSendDataBlocking</title>
      <link>https://community.nxp.com/t5/S32K/Issue-with-using-the-LPI2C-DRV-MasterSendDataBlocking/m-p/906047#M4626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From you don't have to change anything in LPI2C driver to use it with FreeRTOS.&lt;/P&gt;&lt;P&gt;Please tale a look over this post:&amp;nbsp;&lt;A _jive_internal="true" href="https://community.nxp.com/thread/497317"&gt;https://community.nxp.com/thread/497317&lt;/A&gt;. Do you initialize and use LPI2C driver in tasks?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this doesn't solve your issue can you send us a project where this behavior is reproducing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Razvan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2019 06:09:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Issue-with-using-the-LPI2C-DRV-MasterSendDataBlocking/m-p/906047#M4626</guid>
      <dc:creator>razva_tilimpea</dc:creator>
      <dc:date>2019-05-02T06:09:14Z</dc:date>
    </item>
  </channel>
</rss>

