<?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 LPI2C DRV + FreeRTOS OSIF error in S32 Design Studio</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/LPI2C-DRV-FreeRTOS-OSIF-error/m-p/888702#M4728</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;I currently try to implement my eeporm interface in a project using the FreeRTOS V10.0.1 port in PE. Therefore, I added the LPI2C Peripheral Driver in PE. With this configuration, I can see communication on the I2C lines but the application never ends the blocking LPI2C functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to reproduce the issue in a smaller project. Using only the LPI2C driver, communication is working. This configuration is using the osif_baremetal.c.&lt;/P&gt;&lt;P&gt;As soon as I add FreeRTOS to the configuration, osif_baremetal.h references to osif_freertos.c. From this moment on, I2C communication fails. Anyway, if I set breakpoints inside the OSIF_SemaWait(...) function to get some delay, the interface is working.&lt;/P&gt;&lt;P&gt;My conclusion: The issue is caused by the freertos osif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attached the small project that reproduces the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone please give me a hint how to fix this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and best regards,&lt;/P&gt;&lt;P&gt;Markus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Feb 2019 10:19:34 GMT</pubDate>
    <dc:creator>markus1</dc:creator>
    <dc:date>2019-02-07T10:19:34Z</dc:date>
    <item>
      <title>LPI2C DRV + FreeRTOS OSIF error</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/LPI2C-DRV-FreeRTOS-OSIF-error/m-p/888702#M4728</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;I currently try to implement my eeporm interface in a project using the FreeRTOS V10.0.1 port in PE. Therefore, I added the LPI2C Peripheral Driver in PE. With this configuration, I can see communication on the I2C lines but the application never ends the blocking LPI2C functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to reproduce the issue in a smaller project. Using only the LPI2C driver, communication is working. This configuration is using the osif_baremetal.c.&lt;/P&gt;&lt;P&gt;As soon as I add FreeRTOS to the configuration, osif_baremetal.h references to osif_freertos.c. From this moment on, I2C communication fails. Anyway, if I set breakpoints inside the OSIF_SemaWait(...) function to get some delay, the interface is working.&lt;/P&gt;&lt;P&gt;My conclusion: The issue is caused by the freertos osif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attached the small project that reproduces the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone please give me a hint how to fix this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and best regards,&lt;/P&gt;&lt;P&gt;Markus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2019 10:19:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/LPI2C-DRV-FreeRTOS-OSIF-error/m-p/888702#M4728</guid>
      <dc:creator>markus1</dc:creator>
      <dc:date>2019-02-07T10:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: LPI2C DRV + FreeRTOS OSIF error</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/LPI2C-DRV-FreeRTOS-OSIF-error/m-p/888703#M4729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Markus,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I notice that in your project the scheduler is not started. This is probably the cause for the wrong behavior.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;When starting FreeRTOS, a set of tasks need to be defined and eventually the OS scheduler started as well. From that point, the CPU time is shared only between the tasks, and the full functionality of the OS is available.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have attached a modified main file that should create a task for the I2C and start the scheduler. Please let me know if this does what you are expecting.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best regards,&lt;/P&gt;&lt;P&gt;Ovidiu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2019 13:57:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/LPI2C-DRV-FreeRTOS-OSIF-error/m-p/888703#M4729</guid>
      <dc:creator>ovidiualexandru</dc:creator>
      <dc:date>2019-02-07T13:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: LPI2C DRV + FreeRTOS OSIF error</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/LPI2C-DRV-FreeRTOS-OSIF-error/m-p/888704#M4730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Ovidiu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot for your fast response. This was really a help for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Markus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2019 14:38:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/LPI2C-DRV-FreeRTOS-OSIF-error/m-p/888704#M4730</guid>
      <dc:creator>markus1</dc:creator>
      <dc:date>2019-02-07T14:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: LPI2C DRV + FreeRTOS OSIF error</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/LPI2C-DRV-FreeRTOS-OSIF-error/m-p/888705#M4731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Ovidiu&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;can you help me ?about S32K146 IIC +RTos&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;but i do not send my project to you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I'm in the same issue, but my project is startup&amp;nbsp;&lt;SPAN&gt;scheduler.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;Grayli&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2020 08:15:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/LPI2C-DRV-FreeRTOS-OSIF-error/m-p/888705#M4731</guid>
      <dc:creator>gravity_one</dc:creator>
      <dc:date>2020-02-18T08:15:27Z</dc:date>
    </item>
  </channel>
</rss>

